[vlc-commits] demux: adaptive: disable preparse for adaptive

Francois Cartegnie git at videolan.org
Sat Mar 17 20:32:23 CET 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Mar 16 11:41:20 2018 +0100| [27eae15cd49535969029d5c492a066d08bad5da4] | committer: Francois Cartegnie

demux: adaptive: disable preparse for adaptive

(cherry picked from commit ab79addbfdc6b5d91fd256a15848742238d0dfac)

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

 modules/demux/adaptive/adaptive.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/adaptive.cpp b/modules/demux/adaptive/adaptive.cpp
index 05dea53c14..3cab4dd13b 100644
--- a/modules/demux/adaptive/adaptive.cpp
+++ b/modules/demux/adaptive/adaptive.cpp
@@ -140,7 +140,7 @@ static int Open(vlc_object_t *p_obj)
 {
     demux_t *p_demux = (demux_t*) p_obj;
 
-    if(!p_demux->s->psz_url)
+    if(!p_demux->s->psz_url || p_demux->s->b_preparsing)
         return VLC_EGENERIC;
 
     std::string mimeType;



More information about the vlc-commits mailing list