[vlc-commits] demux: mp4: really don't probe segments if not seekable

Francois Cartegnie git at videolan.org
Thu Dec 18 22:39:56 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Dec 12 14:38:28 2014 +0100| [0d4fd66b2dd0521fdc5e788859ee6a1a978a73aa] | committer: Francois Cartegnie

demux: mp4: really don't probe segments if not seekable

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

 modules/demux/mp4/mp4.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 42a5f70..dc8684d 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -612,12 +612,12 @@ static int Open( vlc_object_t * p_this )
                or if that file is just ready to append fragments */
             ProbeFragments( p_demux, false );
             p_sys->b_fragmented = !!MP4_BoxCount( p_sys->p_root, "/moof" );
+
+            if ( p_sys->b_fragmented && !p_sys->i_overall_duration )
+                ProbeFragments( p_demux, true );
         }
         else
             p_sys->b_fragmented = true;
-
-        if ( p_sys->b_fragmented && !p_sys->i_overall_duration )
-            ProbeFragments( p_demux, true );
     }
 
     if ( !p_sys->moovfragment.p_moox )



More information about the vlc-commits mailing list