[vlc-commits] demux: rawaud: use VLC_DEMUXER_
Francois Cartegnie
git at videolan.org
Thu May 3 13:59:30 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 3 10:49:01 2018 +0200| [12cbf1ad939f6d98ef0058fc14004e9b3e130fab] | committer: Francois Cartegnie
demux: rawaud: use VLC_DEMUXER_
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=12cbf1ad939f6d98ef0058fc14004e9b3e130fab
---
modules/demux/rawaud.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/modules/demux/rawaud.c b/modules/demux/rawaud.c
index a5b36b2428..8f0a07bf5e 100644
--- a/modules/demux/rawaud.c
+++ b/modules/demux/rawaud.c
@@ -246,10 +246,7 @@ static int Demux( demux_t *p_demux )
p_block = vlc_stream_Block( p_demux->s, p_sys->i_frame_size );
if( p_block == NULL )
- {
- /* EOF */
- return 0;
- }
+ return VLC_DEMUXER_EOF;
p_block->i_dts = p_block->i_pts = VLC_TS_0 + date_Get( &p_sys->pts );
@@ -258,7 +255,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