Skip to content

gst/src: fix crash when current_caps is NULL

gst_pad_get_current_caps may return NULL and passing that into gst_caps_is_equal may result in fatal critical log due to the "g_return_val_if_fail (GST_IS_CAPS (caps1)" check. Fix by checking for NULL to avoid this.

Merge request reports