From: Wim Taymans Date: Mon, 23 May 2011 14:53:01 +0000 (+0200) Subject: transform: reset reconfigure state X-Git-Tag: RELEASE-0.11.0~245 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35cc371363f6f0fa8cfc966fa2b89a319bd84288;p=platform%2Fupstream%2Fgstreamer.git transform: reset reconfigure state When we negotiate new caps, reset the reconfigure state. --- diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index 6eb2373..4382122 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -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);