[gst-cvs] gstreamer: capsfilter: Add GAP flag support

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Jun 23 03:58:51 PDT 2009


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

Author: Chad Hanna <channa at ligo.caltech.edu>
Date:   Tue Jun 23 12:56:59 2009 +0200

capsfilter: Add GAP flag support

capsfilter doesn't actually touch the data so we don't want the GAP flag to
be unset by basetransform.

Fixes bug #586566.

---

 plugins/elements/gstcapsfilter.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/plugins/elements/gstcapsfilter.c b/plugins/elements/gstcapsfilter.c
index 3442ff3..1a02b84 100644
--- a/plugins/elements/gstcapsfilter.c
+++ b/plugins/elements/gstcapsfilter.c
@@ -122,6 +122,8 @@ gst_capsfilter_class_init (GstCapsFilterClass * klass)
 static void
 gst_capsfilter_init (GstCapsFilter * filter, GstCapsFilterClass * g_class)
 {
+  GstBaseTransform *trans = GST_BASE_TRANSFORM (filter);
+  gst_base_transform_set_gap_aware (trans, TRUE);
   filter->filter_caps = gst_caps_new_any ();
 }
 





More information about the Gstreamer-commits mailing list