[vlc-devel] [PATCH 13/48] hls: mungle path

Hugo Beauzée-Luyssen beauze.h at gmail.com
Mon Jan 9 16:16:22 CET 2012


From: Luc Saillard <luc.saillard at sfr.com>

---
 modules/stream_filter/httplive.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 9788c7d..931ff96 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1999,6 +1999,12 @@ static int Open(vlc_object_t *p_this)
         goto fail_thread;
     }
 
+    /* We don't want the m3u playlist module to be called to demux our stream,
+     * so remove the extension of the path */
+    char *psz_ext = strrchr ( s->psz_path, '.' );
+    if (psz_ext)
+        psz_ext[0] = 0;
+
     return VLC_SUCCESS;
 
 fail_thread:
-- 
1.7.8.3




More information about the vlc-devel mailing list