[vlc-commits] demux: tta: use VLC_DEMUXER_

Francois Cartegnie git at videolan.org
Thu May 3 13:59:37 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May  3 11:33:41 2018 +0200| [955f648770c49a0462ba9ffb88fd5af37c5a5934] | committer: Francois Cartegnie

demux: tta: use VLC_DEMUXER_

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=955f648770c49a0462ba9ffb88fd5af37c5a5934
---

 modules/demux/tta.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/demux/tta.c b/modules/demux/tta.c
index 7853180581..4d2d91c9a4 100644
--- a/modules/demux/tta.c
+++ b/modules/demux/tta.c
@@ -202,11 +202,12 @@ static int Demux( demux_t *p_demux )
     block_t     *p_data;
 
     if( p_sys->i_currentframe >= p_sys->i_totalframes )
-        return 0;
+        return VLC_DEMUXER_EOF;
 
     p_data = vlc_stream_Block( p_demux->s,
                                p_sys->pi_seektable[p_sys->i_currentframe] );
-    if( p_data == NULL ) return 0;
+    if( p_data == NULL )
+        return VLC_DEMUXER_EOF;
     p_data->i_dts = p_data->i_pts = VLC_TS_0 + (int64_t)(INT64_C(1000000) * p_sys->i_currentframe) * TTA_FRAMETIME;
 
     p_sys->i_currentframe++;
@@ -215,7 +216,7 @@ static int Demux( demux_t *p_demux )
     if( p_sys->p_es )
         es_out_Send( p_demux->out, p_sys->p_es, p_data );
 
-    return 1;
+    return VLC_DEMUXER_SUCCESS;
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list