[gst-cvs] gstreamer: basetransform: reevaluate proxy_alloc when reconfigured

Wim Taymans wtay at kemper.freedesktop.org
Mon Jun 14 07:24:52 PDT 2010


Module: gstreamer
Branch: master
Commit: f80a824a2f2ba3d85e25585871acb60a4ad802dd
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=f80a824a2f2ba3d85e25585871acb60a4ad802dd

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Mon Jun 14 16:20:18 2010 +0200

basetransform: reevaluate proxy_alloc when reconfigured

When we reconfigure the transform element, make sure we reevaluate the proxying
of buffer_alloc the next time around.

Fixes #621332

---

 libs/gst/base/gstbasetransform.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c
index 3ba4290..97faa73 100644
--- a/libs/gst/base/gstbasetransform.c
+++ b/libs/gst/base/gstbasetransform.c
@@ -709,6 +709,11 @@ gst_base_transform_configure_caps (GstBaseTransform * trans, GstCaps * in,
     ret = klass->set_caps (trans, in, out);
   }
 
+  GST_OBJECT_LOCK (trans);
+  /* make sure we reevaluate how the buffer_alloc works wrt to proxy allocating
+   * the buffer. */
+  trans->priv->suggest_pending = TRUE;
+  GST_OBJECT_UNLOCK (trans);
   trans->negotiated = ret;
 
   return ret;





More information about the Gstreamer-commits mailing list