[vlc-commits] demux: wav: use VLC_DEMUXER_
Francois Cartegnie
git at videolan.org
Thu May 3 13:59:41 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 3 13:45:41 2018 +0200| [e9b0bfdb8b7b45483e2dfe297e78f47d1e4b84eb] | committer: Francois Cartegnie
demux: wav: use VLC_DEMUXER_
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e9b0bfdb8b7b45483e2dfe297e78f47d1e4b84eb
---
modules/demux/wav.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/demux/wav.c b/modules/demux/wav.c
index 5c4083c2fd..997ff0b996 100644
--- a/modules/demux/wav.c
+++ b/modules/demux/wav.c
@@ -454,7 +454,7 @@ static int Demux( demux_t *p_demux )
{
int64_t i_end = p_sys->i_data_pos + p_sys->i_data_size;
if ( i_pos >= i_end )
- return 0; /* EOF */
+ return VLC_DEMUXER_EOF; /* EOF */
/* Don't read past data chunk boundary */
if ( i_end < i_pos + i_read_size )
@@ -464,7 +464,7 @@ static int Demux( demux_t *p_demux )
if( ( p_block = vlc_stream_Block( p_demux->s, i_read_size ) ) == NULL )
{
msg_Warn( p_demux, "cannot read data" );
- return 0;
+ return VLC_DEMUXER_EOF;
}
p_block->i_dts =
@@ -483,7 +483,7 @@ static int Demux( demux_t *p_demux )
date_Increment( &p_sys->pts, p_sys->i_frame_samples );
- return 1;
+ return VLC_DEMUXER_SUCCESS;
}
/*****************************************************************************
More information about the vlc-commits
mailing list