Adjust the fixed flag in gst_caps_set_props
authorWim Taymans <wim.taymans@gmail.com>
Tue, 25 Feb 2003 19:52:03 +0000 (19:52 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 25 Feb 2003 19:52:03 +0000 (19:52 +0000)
Original commit message from CVS:
Adjust the fixed flag in gst_caps_set_props

gst/gstcaps.c

index 29e1ca7..c30a7a5 100644 (file)
@@ -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;
 }