[vlc-commits] demux: subtitle: use VLC_DEMUX
Francois Cartegnie
git at videolan.org
Tue Jan 24 16:49:44 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jan 24 16:10:58 2017 +0100| [3094599a9e88b1f993a08ed191ccbed933a8fab1] | committer: Francois Cartegnie
demux: subtitle: use VLC_DEMUX
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3094599a9e88b1f993a08ed191ccbed933a8fab1
---
modules/demux/subtitle.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index da8b8f8..c2e7746 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -727,7 +727,7 @@ static int Demux( demux_t *p_demux )
int64_t i_maxdate;
if( p_sys->subtitles.i_current >= p_sys->subtitles.i_count )
- return 0;
+ return VLC_DEMUXER_EOF;
i_maxdate = p_sys->i_next_demux_date - var_GetInteger( p_demux->obj.parent, "spu-delay" );;
if( i_maxdate <= 0 && p_sys->subtitles.i_current < p_sys->subtitles.i_count )
@@ -771,7 +771,7 @@ static int Demux( demux_t *p_demux )
/* */
p_sys->i_next_demux_date = 0;
- return 1;
+ return VLC_DEMUXER_SUCCESS;
}
More information about the vlc-commits
mailing list