winegstreamer: Release the IAsyncReader on disconnection.

This allows "Zero Escape: Nine Hours, Nine Persons, Nine Doors" to start.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-07-23 19:29:22 -05:00 committed by Alexandre Julliard
parent 5ea1287e08
commit e707578007
2 changed files with 5 additions and 2 deletions

View file

@ -1147,9 +1147,9 @@ START_TEST(mediadet)
test_COM_sg_enumpins();
ret = DeleteFileW(test_avi_filename);
todo_wine ok(ret, "Failed to delete file, error %u.\n", GetLastError());
ok(ret, "Failed to delete file, error %u.\n", GetLastError());
ret = DeleteFileW(test_sound_avi_filename);
todo_wine ok(ret, "Failed to delete file, error %u.\n", GetLastError());
ok(ret, "Failed to delete file, error %u.\n", GetLastError());
CoUninitialize();
}

View file

@ -1598,6 +1598,9 @@ static void gstdemux_sink_disconnect(struct strmbase_sink *iface)
mark_wine_thread();
GST_RemoveOutputPins(filter);
IAsyncReader_Release(filter->reader);
filter->reader = NULL;
}
static const struct strmbase_sink_ops sink_ops =