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:
parent
5ea1287e08
commit
e707578007
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue