Commit 36a7dd93 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Do not return GST_FLOW_NOT_LINKED if the DirectShow pin is not connected.

This is a fatal error condition for GStreamer, but should not cause errors for DirectShow. Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent b3e2009b
......@@ -878,18 +878,12 @@ static GstFlowReturn got_data_sink(GstPad *pad, GstObject *parent, GstBuffer *bu
TRACE("pad %p, pin %p, buffer %p.\n", pad, pin, buffer);
if (filter->initial)
if (filter->initial || !pin->pin.pin.peer)
{
gst_buffer_unref(buffer);
return GST_FLOW_OK;
}
if (!pin->pin.pin.peer)
{
gst_buffer_unref(buffer);
return GST_FLOW_NOT_LINKED;
}
stream_event.type = PARSER_EVENT_BUFFER;
stream_event.u.buffer = buffer;
/* Transfer our reference to the buffer to the thread. */
......
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