diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2003-02-25 19:52:03 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2003-02-25 19:52:03 +0000 |
commit | f1b49bfcadc5367387dd01f3187607ecd5fead41 (patch) | |
tree | 98986b3037ac510b2392a5e0f5bb3e2017c07f6e | |
parent | faa67ac4af357bac72f0ce8e8d90d227cf284803 (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.c | 5 |
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; } |