[vlc-commits] demux: mkv: Demux: return VLC_DEMUXER_EGENERIC on error
Filip Roséen
git at videolan.org
Mon Jul 16 12:46:35 CEST 2018
vlc | branch: master | Filip Roséen <filip at atch.se> | Mon Jul 16 05:19:49 2018 +0200| [6d83d2a6d59092892a9db4fcc4b462ea45fb945d] | committer: Steve Lhomme
demux: mkv: Demux: return VLC_DEMUXER_EGENERIC on error
VLC_DEMUXER_EOF is not correct if we abort due to an error.
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6d83d2a6d59092892a9db4fcc4b462ea45fb945d
---
modules/demux/mkv/mkv.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index efd6587912..407bc50013 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -753,7 +753,7 @@ static int Demux( demux_t *p_demux)
{
msg_Err( p_demux, "invalid track number" );
delete block;
- return VLC_DEMUXER_EOF;
+ return VLC_DEMUXER_EGENERIC;
}
mkv_track_t &track = *p_track;
@@ -801,7 +801,7 @@ static int Demux( demux_t *p_demux)
if( es_out_SetPCR( p_demux->out, i_pcr ) )
{
msg_Err( p_demux, "ES_OUT_SET_PCR failed, aborting." );
- return VLC_DEMUXER_EOF;
+ return VLC_DEMUXER_EGENERIC;
}
p_sys->i_pcr = i_pcr;
More information about the vlc-commits
mailing list