Commit 3094599a authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: subtitle: use VLC_DEMUX

parent bdcb125e
...@@ -727,7 +727,7 @@ static int Demux( demux_t *p_demux ) ...@@ -727,7 +727,7 @@ static int Demux( demux_t *p_demux )
int64_t i_maxdate; int64_t i_maxdate;
if( p_sys->subtitles.i_current >= p_sys->subtitles.i_count ) 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" );; 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 ) 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 ) ...@@ -771,7 +771,7 @@ static int Demux( demux_t *p_demux )
/* */ /* */
p_sys->i_next_demux_date = 0; p_sys->i_next_demux_date = 0;
return 1; return VLC_DEMUXER_SUCCESS;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment