[vlc-commits] audioqueue: compilation and compiler wanring fixes
Felix Paul Kühne
git at videolan.org
Mon Nov 19 16:21:41 CET 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Nov 19 16:21:09 2012 +0100| [bf47f37a1a935dbb5c744c35286d910fe8dbbc75] | committer: Felix Paul Kühne
audioqueue: compilation and compiler wanring fixes
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf47f37a1a935dbb5c744c35286d910fe8dbbc75
---
modules/audio_output/audioqueue.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/modules/audio_output/audioqueue.c b/modules/audio_output/audioqueue.c
index 76eafe4..7c327a9 100644
--- a/modules/audio_output/audioqueue.c
+++ b/modules/audio_output/audioqueue.c
@@ -79,10 +79,9 @@ vlc_module_end ()
* Open: open the audio device
*****************************************************************************/
-static int Start( audio_output_t *aout, audio_sample_format_t *restrict fmt )
+static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
{
- audio_output_t *p_aout = (audio_output_t *)p_this;
- aout_sys_t *p_sys = aout->sys;
+ aout_sys_t *p_sys = p_aout->sys;
OSStatus status = 0;
@@ -110,7 +109,7 @@ static int Start( audio_output_t *aout, audio_sample_format_t *restrict fmt )
// This will be used for boosting the audio without the need of a mixer (floating-point conversion is expensive on ARM)
// AudioQueueSetParameter(p_sys->audioQueue, kAudioQueueParam_Volume, 12.0); // Defaults to 1.0
- msg_Dbg(p_aout, "New AudioQueue output created (status = %i)", status);
+ msg_Dbg(p_aout, "New AudioQueue output created (status = %li)", status);
// Allocate buffers for the AudioQueue, and pre-fill them.
for (int i = 0; i < NUMBER_OF_BUFFERS; ++i) {
@@ -129,7 +128,7 @@ static int Start( audio_output_t *aout, audio_sample_format_t *restrict fmt )
p_aout->flush = aout_PacketFlush;
aout_SoftVolumeStart(p_aout);
- msg_Dbg(p_aout, "Starting AudioQueue (status = %i)", status);
+ msg_Dbg(p_aout, "Starting AudioQueue (status = %li)", status);
status = AudioQueueStart(p_sys->audioQueue, NULL);
return VLC_SUCCESS;
More information about the vlc-commits
mailing list