From c0322416f63ef6e5d5e2fadba8e1f1be2da7856e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 21 Dec 2006 12:21:51 +0000 Subject: [PATCH] ext/ffmpeg/gstffmpegcodecmap.c: The "signed" field in raw audio caps is of boolean type, trying to extract the value ... 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 | 6 ++++++ ext/ffmpeg/gstffmpegcodecmap.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 17dd4442da..68c5320c0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-12-21 Tim-Philipp Müller + + * 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 * configure.ac: diff --git a/ext/ffmpeg/gstffmpegcodecmap.c b/ext/ffmpeg/gstffmpegcodecmap.c index 61d47eb28b..d9a7c6c6eb 100644 --- a/ext/ffmpeg/gstffmpegcodecmap.c +++ b/ext/ffmpeg/gstffmpegcodecmap.c @@ -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) {