[vlc-commits] demux: ps: use VLC_DEMUX_

Francois Cartegnie git at videolan.org
Fri Jul 15 13:27:18 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jul 15 13:26:33 2016 +0200| [2a08b71625458a2571927198b76a86a9f45463e0] | committer: Francois Cartegnie

demux: ps: use VLC_DEMUX_

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

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

diff --git a/modules/demux/mpeg/ps.c b/modules/demux/mpeg/ps.c
index 444d32c..0bf671b 100644
--- a/modules/demux/mpeg/ps.c
+++ b/modules/demux/mpeg/ps.c
@@ -301,7 +301,7 @@ static int Demux( demux_t *p_demux )
     i_ret = ps_pkt_resynch( p_demux->s, &i_code );
     if( i_ret < 0 )
     {
-        return 0;
+        return VLC_DEMUXER_EOF;
     }
     else if( i_ret == 0 )
     {
@@ -309,7 +309,7 @@ static int Demux( demux_t *p_demux )
             msg_Warn( p_demux, "garbage at input, trying to resync..." );
 
         p_sys->b_lost_sync = true;
-        return 1;
+        return VLC_DEMUXER_SUCCESS;
     }
 
     if( p_sys->b_lost_sync ) msg_Warn( p_demux, "found sync code" );
@@ -323,7 +323,7 @@ static int Demux( demux_t *p_demux )
 
     if( ( p_pkt = ps_pkt_read( p_demux->s, i_code ) ) == NULL )
     {
-        return 0;
+        return VLC_DEMUXER_EOF;
     }
 
     switch( i_code )
@@ -456,7 +456,7 @@ static int Demux( demux_t *p_demux )
     }
 
     demux_UpdateTitleFromStream( p_demux );
-    return 1;
+    return VLC_DEMUXER_SUCCESS;
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list