pad: avoid setting NULL caps on pads

This commit is contained in:
Wim Taymans 2011-05-16 19:04:35 +02:00
parent 53e4d1a007
commit 887838aefe

View file

@ -2715,7 +2715,7 @@ gst_pad_set_caps (GstPad * pad, GstCaps * caps)
gboolean res = TRUE; gboolean res = TRUE;
g_return_val_if_fail (GST_IS_PAD (pad), FALSE); 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); event = gst_event_new_caps (caps);