[vlc-commits] demux: xa: use VLC_DEMUXER_
Francois Cartegnie
git at videolan.org
Thu May 3 13:59:42 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 3 13:49:59 2018 +0200| [9aad3df8fc97ba04ee6bc124e926f7df541ae6da] | committer: Francois Cartegnie
demux: xa: use VLC_DEMUXER_
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9aad3df8fc97ba04ee6bc124e926f7df541ae6da
---
modules/demux/xa.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/modules/demux/xa.c b/modules/demux/xa.c
index b62c04d9bd..85e960b0d8 100644
--- a/modules/demux/xa.c
+++ b/modules/demux/xa.c
@@ -169,15 +169,14 @@ static int Demux( demux_t *p_demux )
if( p_sys->i_data_size > 0 &&
(i_offset - HEADER_LENGTH) >= p_sys->i_data_size )
{
- /* EOF */
- return 0;
+ return VLC_DEMUXER_EOF;
}
p_block = vlc_stream_Block( p_demux->s, p_sys->i_frame_size * i_frames );
if( p_block == NULL )
{
msg_Warn( p_demux, "cannot read data" );
- return 0;
+ return VLC_DEMUXER_EOF;
}
i_frames = p_block->i_buffer / p_sys->i_frame_size;
@@ -187,7 +186,7 @@ static int Demux( demux_t *p_demux )
date_Increment( &p_sys->pts, i_frames * FRAME_LENGTH );
- return 1;
+ return VLC_DEMUXER_SUCCESS;
}
/*****************************************************************************
More information about the vlc-commits
mailing list