From f1b49bfcadc5367387dd01f3187607ecd5fead41 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 25 Feb 2003 19:52:03 +0000 Subject: Adjust the fixed flag in gst_caps_set_props Original commit message from CVS: Adjust the fixed flag in gst_caps_set_props --- gst/gstcaps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/gstcaps.c b/gst/gstcaps.c index 29e1ca796..c30a7a5ed 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -538,6 +538,11 @@ gst_caps_set_props (GstCaps *caps, GstProps *props) gst_props_replace_sink (&caps->properties, props); + if (props && !GST_PROPS_IS_FIXED (props)) + GST_CAPS_FLAG_UNSET (caps, GST_CAPS_FIXED); + else + GST_CAPS_FLAG_SET (caps, GST_CAPS_FIXED); + return caps; } -- cgit v1.2.3