summaryrefslogtreecommitdiffstats
path: root/sys/qtwrapper/audiodecoders.c
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-02-23 16:02:08 +0100
committerEdward Hervey <bilboed@bilboed.com>2009-02-23 16:02:08 +0100
commitc794b40c49ab93711f72f140f3a621206d4448d8 (patch)
treec543237a4adff90287d69d01c8d6107dcf1f03ce /sys/qtwrapper/audiodecoders.c
parentc2c1941ffc80af60ece77d23ff428031742436f9 (diff)
downloadgst-plugins-bad-c794b40c49ab93711f72f140f3a621206d4448d8.tar.gz
gst-plugins-bad-c794b40c49ab93711f72f140f3a621206d4448d8.tar.bz2
gst-plugins-bad-c794b40c49ab93711f72f140f3a621206d4448d8.zip
qtwrapper: Fix build on macosx
Diffstat (limited to 'sys/qtwrapper/audiodecoders.c')
-rw-r--r--sys/qtwrapper/audiodecoders.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/qtwrapper/audiodecoders.c b/sys/qtwrapper/audiodecoders.c
index 3f010398..49be93c6 100644
--- a/sys/qtwrapper/audiodecoders.c
+++ b/sys/qtwrapper/audiodecoders.c
@@ -306,7 +306,7 @@ static void
aac_parse_codec_data (GstBuffer * codec_data, gint * channels)
{
guint8 *data = GST_BUFFER_DATA (codec_data);
- int codec_channels;
+ guint codec_channels;
if (GST_BUFFER_SIZE (codec_data) < 2) {
GST_WARNING ("Cannot parse codec_data for channel count");
@@ -317,7 +317,7 @@ aac_parse_codec_data (GstBuffer * codec_data, gint * channels)
if (*channels != codec_channels) {
GST_INFO ("Overwriting channels %d with %d", *channels, codec_channels);
- *channels = codec_channels;
+ *channels = (gint) codec_channels;
} else {
GST_INFO ("Retaining channel count %d", codec_channels);
}
@@ -447,7 +447,7 @@ open_decoder (QTWrapperAudioDecoder * qtwrapper, GstCaps * caps,
/* QuickTime/iTunes creates AAC files with the wrong channel count in the header,
so parse that out of the codec data if we can.
*/
- aac_parse_codec_data (codec_data, (guint *) & channels);
+ aac_parse_codec_data (codec_data, &channels);
}
/* If the quicktime demuxer gives us a full esds atom, use that instead of