Zebediah Figura : winegstreamer: Wait for GST_EVENT_CAPS instead of data.

Alexandre Julliard julliard at winehq.org
Mon Feb 26 13:42:20 CST 2018


Module: wine
Branch: master
Commit: 999c862f4f5838f0a4e3d98f52bcc1668835e25f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=999c862f4f5838f0a4e3d98f52bcc1668835e25f

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu Feb 22 15:31:19 2018 -0600

winegstreamer: Wait for GST_EVENT_CAPS instead of data.

Some decoders and files fail to find any valid frames during test-play, so
don't wait for data we might never receive.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winegstreamer/gstdemux.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index b6b02a1..9e35e3d 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -321,6 +321,7 @@ static gboolean setcaps_sink(GstPad *pad, GstCaps *caps)
         return FALSE;
     FreeMediaType(pin->pmt);
     *pin->pmt = amt;
+    SetEvent(pin->caps_event);
     return TRUE;
 }
 
@@ -617,8 +618,6 @@ static GstFlowReturn got_data_sink(GstPad *pad, GstObject *parent, GstBuffer *bu
 
     if (This->initial) {
         gst_buffer_unref(buf);
-        TRACE("Triggering %p %p\n", pad, pin->caps_event);
-        SetEvent(pin->caps_event);
         return GST_FLOW_OK;
     }
 




More information about the wine-cvs mailing list