dtmfsrc: Reject empty caps

This commit is contained in:
Olivier Crête 2009-11-04 22:21:35 -05:00
parent ec62833ee5
commit f01e6c6f89

View file

@ -814,6 +814,9 @@ gst_dtmf_src_negotiate (GstBaseSrc * basesrc)
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_SRC_PAD
(basesrc)));
if (gst_caps_is_empty (caps))
return FALSE;
gst_caps_truncate (caps);
s = gst_caps_get_structure (caps, 0);