vlc/vlc-3.0 | branch: master | Francois Cartegnie <[email protected]> | Thu Jul 11 10:09:20 2019 +0200| [83845f362e0cd415c99500e2d984d0a7fea51168] | committer: Francois Cartegnie
demux: asf: ignore non seekable flag if there's an index (cherry picked from commit adafc7d317003803388ec6f38a19b18a4e2a35b6) > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=83845f362e0cd415c99500e2d984d0a7fea51168 --- modules/demux/asf/asf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c index 6038a49e97..60c604be22 100644 --- a/modules/demux/asf/asf.c +++ b/modules/demux/asf/asf.c @@ -513,7 +513,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) case DEMUX_SET_POSITION: if ( p_sys->p_fp && - ! ( p_sys->p_fp->i_flags & ASF_FILE_PROPERTIES_SEEKABLE ) ) + ! ( p_sys->p_fp->i_flags & ASF_FILE_PROPERTIES_SEEKABLE ) && !p_sys->b_index ) return VLC_EGENERIC; SeekPrepare( p_demux ); @@ -537,7 +537,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) case DEMUX_CAN_SEEK: if ( p_sys->p_fp && - ! ( p_sys->p_fp->i_flags & ASF_FILE_PROPERTIES_SEEKABLE ) ) + ! ( p_sys->p_fp->i_flags & ASF_FILE_PROPERTIES_SEEKABLE ) && !p_sys->b_index ) { bool *pb_bool = va_arg( args, bool * ); *pb_bool = false; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
