From c794b40c49ab93711f72f140f3a621206d4448d8 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 23 Feb 2009 16:02:08 +0100 Subject: qtwrapper: Fix build on macosx --- sys/qtwrapper/audiodecoders.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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 -- cgit v1.2.1