Commit cafc7687 authored by Jean-Paul Saman's avatar Jean-Paul Saman

oss: return NULL iso 0 when pointer is expected.

parent 5a1b6873
......@@ -307,7 +307,7 @@ static block_t* GrabAudio( demux_t *p_demux )
if( !p_block )
{
msg_Warn( p_demux, "cannot get block" );
return 0;
return NULL;
}
p_sys->p_block = p_block;
......@@ -315,10 +315,10 @@ static block_t* GrabAudio( demux_t *p_demux )
i_read = read( p_sys->i_fd, p_block->p_buffer,
p_sys->i_max_frame_size );
if( i_read <= 0 ) return 0;
if( i_read <= 0 ) return NULL;
p_block->i_buffer = i_read;
p_sys->p_block = 0;
p_sys->p_block = NULL;
/* Correct the date because of kernel buffering */
i_correct = i_read;
......
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