ext/ffmpeg/gstffmpegcodecmap.c: The "signed" field in raw audio caps is of boolean...
authorTim-Philipp Müller <tim@centricular.net>
Thu, 21 Dec 2006 12:21:51 +0000 (12:21 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 21 Dec 2006 12:21:51 +0000 (12:21 +0000)
Original commit message from CVS:
* ext/ffmpeg/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.

ChangeLog
ext/ffmpeg/gstffmpegcodecmap.c

index 17dd444..68c5320 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-12-21  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * ext/ffmpeg/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.
+
 2006-12-15  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * configure.ac:
index 61d47eb..d9a7c6c 100644 (file)
@@ -1293,7 +1293,7 @@ gst_ffmpeg_caps_to_smpfmt (const GstCaps * caps,
 
   if (gst_structure_get_int (structure, "width", &width) &&
       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)) {
     if (width == 16 && depth == 16 &&
         endianness == G_BYTE_ORDER && signedness == TRUE) {