mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
pad: Don't allow fixating ANY caps and remove FIXME
This commit is contained in:
parent
7c8617ea82
commit
9b2a8b8480
1 changed files with 1 additions and 3 deletions
|
@ -2379,9 +2379,7 @@ gst_pad_fixate_caps (GstPad * pad, GstCaps * caps)
|
||||||
g_return_if_fail (GST_IS_PAD (pad));
|
g_return_if_fail (GST_IS_PAD (pad));
|
||||||
g_return_if_fail (caps != NULL);
|
g_return_if_fail (caps != NULL);
|
||||||
g_return_if_fail (!gst_caps_is_empty (caps));
|
g_return_if_fail (!gst_caps_is_empty (caps));
|
||||||
/* FIXME-0.11: do not allow fixating any-caps
|
g_return_if_fail (!gst_caps_is_any (caps));
|
||||||
* g_return_if_fail (!gst_caps_is_any (caps));
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (gst_caps_is_fixed (caps) || gst_caps_is_any (caps))
|
if (gst_caps_is_fixed (caps) || gst_caps_is_any (caps))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue