mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
dtmfsrc: Reject empty caps
This commit is contained in:
parent
ec62833ee5
commit
f01e6c6f89
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue