summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-03-26 16:25:08 (GMT)
committerEdward Hervey <bilboed@bilboed.com>2009-03-31 13:15:29 (GMT)
commitca662eb57a64b9d74448f523ecca64ef83fa627b (patch)
treed4a594f07e37ae3c80d9151b5aaef7cf70f822d8
parent322d0b0fd8ef77ff754ef52810b98b0795d204df (diff)
capsfilter. Always calls _suggest, even with NULL caps. Fixes #574805
-rw-r--r--plugins/elements/gstcapsfilter.c10
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: