gst/ffmpegcolorspace/gstffmpegcodecmap.c: The "signed" field in raw audio caps is of boolean type, trying to extract ...

Original commit message from CVS:
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_caps_to_smpfmt):
The "signed" field in raw audio caps is of boolean type, trying to
extract the value with _get_int() will fail (fix to keep in sync with
the copy in gst-ffmpeg)
This commit is contained in:
Tim-Philipp Müller 2006-12-21 12:30:11 +00:00
parent 5f8d6ab7a0
commit d07b7ac539
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2006-12-21 Tim-Philipp Müller <tim at centricular dot net>
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_caps_to_smpfmt):
The "signed" field in raw audio caps is of boolean type, trying to
extract the value with _get_int() will fail (fix to keep in sync with
the copy in gst-ffmpeg)
2006-12-21 Stefan Kost <ensonic@users.sf.net> 2006-12-21 Stefan Kost <ensonic@users.sf.net>
* tests/check/elements/audioresample.c: (cleanup_audioresample): * tests/check/elements/audioresample.c: (cleanup_audioresample):

View file

@ -472,7 +472,7 @@ gst_ffmpeg_caps_to_smpfmt (const GstCaps * caps,
if (gst_structure_get_int (structure, "width", &width) && if (gst_structure_get_int (structure, "width", &width) &&
gst_structure_get_int (structure, "depth", &depth) && gst_structure_get_int (structure, "depth", &depth) &&
gst_structure_get_int (structure, "signed", &signedness) && gst_structure_get_boolean (structure, "signed", &signedness) &&
gst_structure_get_int (structure, "endianness", &endianness)) { gst_structure_get_int (structure, "endianness", &endianness)) {
if (width == 16 && depth == 16 && if (width == 16 && depth == 16 &&
endianness == G_BYTE_ORDER && signedness == TRUE) { endianness == G_BYTE_ORDER && signedness == TRUE) {