mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
pad: avoid setting NULL caps on pads
This commit is contained in:
parent
53e4d1a007
commit
887838aefe
1 changed files with 1 additions and 1 deletions
|
@ -2715,7 +2715,7 @@ gst_pad_set_caps (GstPad * pad, GstCaps * caps)
|
|||
gboolean res = TRUE;
|
||||
|
||||
g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
|
||||
g_return_val_if_fail (caps == NULL || gst_caps_is_fixed (caps), FALSE);
|
||||
g_return_val_if_fail (caps != NULL && gst_caps_is_fixed (caps), FALSE);
|
||||
|
||||
event = gst_event_new_caps (caps);
|
||||
|
||||
|
|
Loading…
Reference in a new issue