mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
transform: reset reconfigure state
When we negotiate new caps, reset the reconfigure state.
This commit is contained in:
parent
1cb7523efa
commit
35cc371363
1 changed files with 7 additions and 2 deletions
|
@ -1234,12 +1234,17 @@ gst_base_transform_setcaps (GstBaseTransform * trans, GstPad * pad,
|
|||
if (!(ret = gst_base_transform_configure_caps (trans, incaps, outcaps)))
|
||||
goto failed_configure;
|
||||
|
||||
GST_OBJECT_LOCK (trans->sinkpad);
|
||||
GST_OBJECT_FLAG_UNSET (trans->srcpad, GST_PAD_NEED_RECONFIGURE);
|
||||
trans->priv->reconfigure = FALSE;
|
||||
GST_OBJECT_UNLOCK (trans->sinkpad);
|
||||
|
||||
/* we know this will work, we implement the setcaps */
|
||||
gst_pad_set_caps (otherpad, othercaps);
|
||||
gst_pad_push_event (otherpad, gst_event_new_caps (othercaps));
|
||||
|
||||
if (pad == trans->srcpad && trans->priv->pad_mode == GST_ACTIVATE_PULL) {
|
||||
/* FIXME hm? */
|
||||
ret &= gst_pad_set_caps (otherpeer, othercaps);
|
||||
ret &= gst_pad_push_event (otherpeer, gst_event_new_caps (othercaps));
|
||||
if (!ret) {
|
||||
GST_INFO_OBJECT (trans, "otherpeer setcaps(%" GST_PTR_FORMAT ") failed",
|
||||
othercaps);
|
||||
|
|
Loading…
Reference in a new issue