mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
gst/law/mulaw-decode.c: We can only do caps intersection if the othercaps are non-empty and not
Original commit message from CVS: * gst/law/mulaw-decode.c: (mulawdec_getcaps): We can only do caps intersection if the othercaps are non-empty and not ANY. Else we return the pad template (base_caps).
This commit is contained in:
parent
d35441766f
commit
b0c86b554c
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-05-17 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* gst/law/mulaw-decode.c: (mulawdec_getcaps):
|
||||
We can only do caps intersection if the othercaps are non-empty and not
|
||||
ANY. Else we return the pad template (base_caps).
|
||||
|
||||
2006-05-17 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain):
|
||||
|
|
|
@ -72,6 +72,11 @@ mulawdec_getcaps (GstPad * pad)
|
|||
GValue irate = { 0 }, ichans = {
|
||||
0};
|
||||
|
||||
if (gst_caps_is_empty (othercaps) || gst_caps_is_any (othercaps)) {
|
||||
gst_caps_unref (othercaps);
|
||||
goto done;
|
||||
}
|
||||
|
||||
structure = gst_caps_get_structure (othercaps, 0);
|
||||
orate = gst_structure_get_value (structure, "rate");
|
||||
ochans = gst_structure_get_value (structure, "channels");
|
||||
|
|
Loading…
Reference in a new issue