[PATCH v3 3/4] winegstreamer: Also wait for the no-more-pads signal when pausing the filter.
Zebediah Figura
z.figura12 at gmail.com
Tue Dec 3 10:14:51 CST 2019
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/winegstreamer/gstdemux.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 9eddf78ced..c9a32e35a9 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -1431,8 +1431,17 @@ static HRESULT WINAPI GST_Run(IBaseFilter *iface, REFERENCE_TIME tStart)
}
EnterCriticalSection(&This->filter.csFilter);
+
+ if (This->no_more_pads_event)
+ ResetEvent(This->no_more_pads_event);
+
gst_element_set_state(This->container, GST_STATE_PLAYING);
+ /* Make sure that all of our pads are connected before returning, lest we
+ * e.g. try to seek and fail. */
+ if (This->no_more_pads_event)
+ WaitForSingleObject(This->no_more_pads_event, INFINITE);
+
for (i = 0; i < This->cStreams; i++) {
hr = BaseOutputPinImpl_Active(&This->ppPins[i]->pin);
if (SUCCEEDED(hr)) {
--
2.24.0
More information about the wine-devel
mailing list