[vlc-commits] demux: h26x: use VLC_DEMUXER_

Francois Cartegnie git at videolan.org
Tue Aug 2 22:54:09 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Aug  2 22:44:50 2016 +0200| [cb44478675256b721cb0f7aae3fc0786dfa6452c] | committer: Francois Cartegnie

demux: h26x: use VLC_DEMUXER_

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

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

diff --git a/modules/demux/mpeg/h26x.c b/modules/demux/mpeg/h26x.c
index 23a8a61..0adb3b5 100644
--- a/modules/demux/mpeg/h26x.c
+++ b/modules/demux/mpeg/h26x.c
@@ -410,7 +410,7 @@ static int Demux( demux_t *p_demux)
     p_block_in = vlc_stream_Block( p_demux->s, H26X_PACKET_SIZE );
     if( p_block_in == NULL )
     {
-        return 0;
+        return VLC_DEMUXER_EOF;
     }
 
     while( (p_block_out = p_sys->p_packetizer->pf_packetize( p_sys->p_packetizer, &p_block_in )) )
@@ -462,7 +462,7 @@ static int Demux( demux_t *p_demux)
             p_block_out = p_next;
         }
     }
-    return 1;
+    return VLC_DEMUXER_SUCCESS;
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list