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:
31832d3
)
caps: Do not allow fixating empty caps
author
Benjamin Otte
<otte@redhat.com>
Mon, 19 Apr 2010 18:35:36 +0000
(20:35 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 29 Apr 2010 20:41:36 +0000
(22:41 +0200)
Passing empty caps to gst_pad_fixate_caps() is invalid, as empty caps
cannot be fixated.
gst/gstpad.c
patch
|
blob
|
history
diff --git
a/gst/gstpad.c
b/gst/gstpad.c
index
abe3a2d
..
17fc0cc
100644
(file)
--- 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;