From b878069ef78dcac0658cdd5908c4ce835e63f509 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 19 Apr 2010 20:35:36 +0200 Subject: [PATCH] caps: Do not allow fixating empty caps Passing empty caps to gst_pad_fixate_caps() is invalid, as empty caps cannot be fixated. --- gst/gstpad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/gstpad.c b/gst/gstpad.c index abe3a2d..17fc0cc 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -2420,6 +2420,7 @@ gst_pad_fixate_caps (GstPad * pad, GstCaps * caps) g_return_if_fail (GST_IS_PAD (pad)); g_return_if_fail (caps != NULL); + g_return_if_fail (!gst_caps_is_empty (caps)); if (gst_caps_is_fixed (caps)) return; -- 2.7.4