[vlc-commits] demux: voc: use VLC_DEMUXER_

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


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May  3 12:14:40 2018 +0200| [647fb394c749b46faee2aafcd717b2353ccbe15a] | committer: Francois Cartegnie

demux: voc: use VLC_DEMUXER_

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

 modules/demux/voc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/demux/voc.c b/modules/demux/voc.c
index 839b18c094..6a00758a3a 100644
--- a/modules/demux/voc.c
+++ b/modules/demux/voc.c
@@ -480,8 +480,8 @@ static int Demux( demux_t *p_demux )
         if( i_offset >= p_sys->i_block_end )
         {
             if( ReadBlockHeader( p_demux ) != VLC_SUCCESS )
-                return 0;
-            return 1;
+                return VLC_DEMUXER_EOF;
+            return VLC_DEMUXER_SUCCESS;
         }
 
         i_read_frames = ( p_sys->i_block_end - i_offset )
@@ -496,7 +496,7 @@ static int Demux( demux_t *p_demux )
         if( p_block == NULL )
         {
             msg_Warn( p_demux, "cannot read data" );
-            return 0;
+            return VLC_DEMUXER_EOF;
         }
     }
     else
@@ -519,7 +519,7 @@ static int Demux( demux_t *p_demux )
     es_out_SetPCR( p_demux->out, p_block->i_pts );
     es_out_Send( p_demux->out, p_sys->p_es, p_block );
 
-    return 1;
+    return VLC_DEMUXER_SUCCESS;
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list