[gst-cvs] gstreamer: capsfilter. Always calls _suggest, even with NULL caps. Fixes #574805

Edward Hervey bilboed at kemper.freedesktop.org
Tue Mar 31 06:10:35 PDT 2009


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

Author: Edward Hervey <bilboed at bilboed.com>
Date:   Thu Mar 26 17:25:08 2009 +0100

capsfilter. Always calls _suggest, even with NULL caps. Fixes #574805

---

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

diff --git a/plugins/elements/gstcapsfilter.c b/plugins/elements/gstcapsfilter.c
index afa1ff5..3442ff3 100644
--- a/plugins/elements/gstcapsfilter.c
+++ b/plugins/elements/gstcapsfilter.c
@@ -200,12 +200,12 @@ gst_capsfilter_set_property (GObject * object, guint prop_id,
       }
       GST_OBJECT_UNLOCK (GST_BASE_TRANSFORM_SINK_PAD (object));
 
-      if (suggest) {
-        GST_DEBUG_OBJECT (capsfilter, "suggest new caps %" GST_PTR_FORMAT,
-            suggest);
-        gst_base_transform_suggest (GST_BASE_TRANSFORM (object), suggest, 0);
+      GST_DEBUG_OBJECT (capsfilter, "suggesting new caps %" GST_PTR_FORMAT,
+          suggest);
+      gst_base_transform_suggest (GST_BASE_TRANSFORM (object), suggest, 0);
+      if (suggest)
         gst_caps_unref (suggest);
-      }
+
       break;
     }
     default:





More information about the Gstreamer-commits mailing list