[vlc-commits] demux: pva: use VLC_DEMUXER_
Francois Cartegnie
git at videolan.org
Thu May 3 10:46:56 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 3 10:45:43 2018 +0200| [3e410e9fb7ee003c6a46d0a21c80c7dff67c21f6] | committer: Francois Cartegnie
demux: pva: use VLC_DEMUXER_
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3e410e9fb7ee003c6a46d0a21c80c7dff67c21f6
---
modules/demux/pva.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/demux/pva.c b/modules/demux/pva.c
index 1c26da8020..e9b09294a3 100644
--- a/modules/demux/pva.c
+++ b/modules/demux/pva.c
@@ -153,19 +153,19 @@ static int Demux( demux_t *p_demux )
if( vlc_stream_Peek( p_demux->s, &p_peek, 8 ) < 8 )
{
msg_Warn( p_demux, "eof ?" );
- return 0;
+ return VLC_DEMUXER_EOF;
}
if( p_peek[0] != 'A' || p_peek[1] != 'V' || p_peek[4] != 0x55 )
{
msg_Warn( p_demux, "lost synchro" );
if( ReSynch( p_demux ) )
{
- return -1;
+ return VLC_DEMUXER_EGENERIC;
}
if( vlc_stream_Peek( p_demux->s, &p_peek, 8 ) < 8 )
{
msg_Warn( p_demux, "eof ?" );
- return 0;
+ return VLC_DEMUXER_EOF;
}
}
@@ -278,10 +278,10 @@ static int Demux( demux_t *p_demux )
default:
msg_Warn( p_demux, "unknown id=0x%x", p_peek[2] );
if( vlc_stream_Read( p_demux->s, NULL, i_size + 8 ) < i_size + 8 )
- return 0;
+ return VLC_DEMUXER_EOF;
break;
}
- return 1;
+ return VLC_DEMUXER_SUCCESS;
}
/*****************************************************************************
More information about the vlc-commits
mailing list