[vlc-commits] audiounit_ios: remove unnecessary casts
Thomas Guillem
git at videolan.org
Fri Feb 24 11:41:11 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 24 09:52:15 2017 +0100| [e0e0e7cb50ed6a20daffb36271be5f6cc63ddda2] | committer: Thomas Guillem
audiounit_ios: remove unnecessary casts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0e0e7cb50ed6a20daffb36271be5f6cc63ddda2
---
modules/audio_output/audiounit_ios.m | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/audio_output/audiounit_ios.m b/modules/audio_output/audiounit_ios.m
index 5be4101..c1d4025 100644
--- a/modules/audio_output/audiounit_ios.m
+++ b/modules/audio_output/audiounit_ios.m
@@ -195,7 +195,7 @@ static int TimeGet(audio_output_t *p_aout, mtime_t *delay)
* Don't print anything during normal playback, calling blocking function from
* this callback is not allowed.
*****************************************************************************/
-static OSStatus RenderCallback(vlc_object_t *p_obj,
+static OSStatus RenderCallback(void *p_data,
AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
@@ -206,7 +206,7 @@ static OSStatus RenderCallback(vlc_object_t *p_obj,
VLC_UNUSED(inBusNumber);
VLC_UNUSED(inNumberFrames);
- audio_output_t * p_aout = (audio_output_t *)p_obj;
+ audio_output_t * p_aout = p_data;
struct aout_sys_t * p_sys = p_aout->sys;
int bytesRequested = ioData->mBuffers[0].mDataByteSize;
@@ -325,7 +325,7 @@ static int StartAnalog(audio_output_t *p_aout, audio_sample_format_t *fmt)
aout_FormatPrepare(fmt);
/* set the IOproc callback */
- callback.inputProc = (AURenderCallback) RenderCallback;
+ callback.inputProc = RenderCallback;
callback.inputProcRefCon = p_aout;
status = AudioUnitSetProperty(p_sys->au_unit,
More information about the vlc-commits
mailing list