projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec62833
)
dtmfsrc: Reject empty caps
author
Olivier Crête
<olivier.crete@collabora.co.uk>
Thu, 5 Nov 2009 03:21:35 +0000
(22:21 -0500)
committer
Olivier Crête
<olivier.crete@collabora.co.uk>
Thu, 5 Nov 2009 03:44:26 +0000
(22:44 -0500)
gst/dtmf/gstdtmfsrc.c
patch
|
blob
|
history
diff --git
a/gst/dtmf/gstdtmfsrc.c
b/gst/dtmf/gstdtmfsrc.c
index 20cb43a8e8d34f5563ea87bf2fe9abde879196c2..39699d8409e228f80a905773b57e750c29a32faa 100644
(file)
--- a/
gst/dtmf/gstdtmfsrc.c
+++ b/
gst/dtmf/gstdtmfsrc.c
@@
-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);