Commit 999c862f authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAndrew Eikum <aeikum@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 7ae35a04
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment