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@gmail.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2018-02-22 15:31:19 -06:00 committed by Alexandre Julliard
parent 7ae35a04f4
commit 999c862f4f
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}