Commit 1e1e6eaf authored by Olivier Crête's avatar Olivier Crête 👻

streamscombiner: Set the current pad based on latest setcaps

parent 403c92da
......@@ -154,8 +154,14 @@ gst_stream_combiner_sink_setcaps (GstPad * pad, GstCaps * caps)
GST_DEBUG_OBJECT (peer, "Setting caps");
res = gst_pad_set_caps (peer, caps);
gst_object_unref (peer);
STREAMS_LOCK (stream_combiner);
if (res)
stream_combiner->current = pad;
STREAMS_UNLOCK (stream_combiner);
} else
GST_WARNING_OBJECT (stream_combiner, "sourcepad has no peer !");
return res;
}
......
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