From d07b7ac539f4b6581b24cbdf2c97f5ea36b08d0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 21 Dec 2006 12:30:11 +0000 Subject: [PATCH] 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) --- ChangeLog | 8 ++++++++ gst/ffmpegcolorspace/gstffmpegcodecmap.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index aa48c19..a43b95d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-12-21 Tim-Philipp Müller + + * 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 * tests/check/elements/audioresample.c: (cleanup_audioresample): diff --git a/gst/ffmpegcolorspace/gstffmpegcodecmap.c b/gst/ffmpegcolorspace/gstffmpegcodecmap.c index 93a2204..b6b3ac0 100644 --- a/gst/ffmpegcolorspace/gstffmpegcodecmap.c +++ b/gst/ffmpegcolorspace/gstffmpegcodecmap.c @@ -472,7 +472,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) { -- 2.7.4