Commit c79a5875 authored by Rémi Duraffort's avatar Rémi Duraffort

auhal: fix inverted logic (and potential NULL pointer deref).

parent fa2beada
...@@ -1281,7 +1281,7 @@ static OSStatus RenderCallbackAnalog( vlc_object_t *_p_aout, ...@@ -1281,7 +1281,7 @@ static OSStatus RenderCallbackAnalog( vlc_object_t *_p_aout,
AudioConvertHostTimeToNanos( host_time.mHostTime ) / 1000; AudioConvertHostTimeToNanos( host_time.mHostTime ) / 1000;
//- ((mtime_t) 1000000 / p_aout->format.i_rate * 31 ); // 31 = Latency in Frames. retrieve somewhere //- ((mtime_t) 1000000 / p_aout->format.i_rate * 31 ); // 31 = Latency in Frames. retrieve somewhere
if( ioData == NULL && ioData->mNumberBuffers < 1 ) if( ioData == NULL || ioData->mNumberBuffers < 1 )
{ {
msg_Err( p_aout, "no iodata or buffers"); msg_Err( p_aout, "no iodata or buffers");
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment