vlc | branch: master | Thomas Guillem <tho...@gllm.fr> | Fri Oct 14 16:37:57 
2016 +0200| [80e5cad877573a2fc3a64a62c3a6930462fcec2d] | committer: Thomas 
Guillem

adaptive: s->psz_url can be NULL

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

 modules/demux/adaptive/adaptive.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/adaptive/adaptive.cpp 
b/modules/demux/adaptive/adaptive.cpp
index 3ad44fc..518c520 100644
--- a/modules/demux/adaptive/adaptive.cpp
+++ b/modules/demux/adaptive/adaptive.cpp
@@ -134,6 +134,9 @@ static int Open(vlc_object_t *p_obj)
 {
     demux_t *p_demux = (demux_t*) p_obj;
 
+    if(!p_demux->s->psz_url)
+        return VLC_EGENERIC;
+
     std::string mimeType;
 
     char *psz_mime = stream_ContentType(p_demux->s);

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to