Skip to content
Snippets Groups Projects
Commit 999c862f authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard
Browse files

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