[vlc-commits] demux: asf: ignore non seekable flag if there's an index

Francois Cartegnie git at videolan.org
Thu Jul 11 10:16:11 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jul 11 10:09:20 2019 +0200| [adafc7d317003803388ec6f38a19b18a4e2a35b6] | committer: Francois Cartegnie

demux: asf: ignore non seekable flag if there's an index

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=adafc7d317003803388ec6f38a19b18a4e2a35b6
---

 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 523f0420e3..d9f359fcd3 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -510,7 +510,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 );
@@ -534,7 +534,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;



More information about the vlc-commits mailing list