summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2003-02-25 19:52:03 +0000
committerWim Taymans <wim.taymans@gmail.com>2003-02-25 19:52:03 +0000
commitf1b49bfcadc5367387dd01f3187607ecd5fead41 (patch)
tree98986b3037ac510b2392a5e0f5bb3e2017c07f6e
parentfaa67ac4af357bac72f0ce8e8d90d227cf284803 (diff)
Adjust the fixed flag in gst_caps_set_props
Original commit message from CVS: Adjust the fixed flag in gst_caps_set_props
-rw-r--r--gst/gstcaps.c5
1 files changed, 5 insertions, 0 deletions
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;
}