[vlc-commits] demux: ts: add fastseek
Francois Cartegnie
git at videolan.org
Wed Nov 9 20:58:38 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 9 20:26:32 2016 +0100| [e2805ca8ebbbf5b78fc91d84d9eda73f592698f0] | committer: Francois Cartegnie
demux: ts: add fastseek
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e2805ca8ebbbf5b78fc91d84d9eda73f592698f0
---
modules/demux/mpeg/ts.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 52a0105..c4944e8 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -889,12 +889,13 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case DEMUX_SET_POSITION:
f = (double) va_arg( args, double );
+ b_bool = (int) va_arg( args, int ); /* precise */
if(!p_sys->b_canseek)
break;
if( p_sys->b_access_control &&
- !p_sys->b_force_seek_per_percent && p_pmt )
+ !p_sys->b_force_seek_per_percent && b_bool && p_pmt )
{
time_t i_time, i_length;
if( !EITCurrentEventTime( p_pmt, p_sys, &i_time, &i_length ) &&
@@ -907,7 +908,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
}
}
- if( !p_sys->b_force_seek_per_percent && p_pmt &&
+ if( !p_sys->b_force_seek_per_percent && b_bool && p_pmt &&
p_pmt->pcr.i_first > -1 && p_pmt->i_last_dts > VLC_TS_INVALID &&
p_pmt->pcr.i_current > -1 )
{
More information about the vlc-commits
mailing list