[vlmc-devel] VLCSource: Fix MRL for files

Hugo Beauzée-Luyssen git at videolan.org
Mon Feb 24 01:59:13 CET 2014


vlmc | branch: ibackend | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 24 02:01:50 2014 +0200| [87ce86edff1f6937acee2bf2474bce3192eee44c] | committer: Hugo Beauzée-Luyssen

VLCSource: Fix MRL for files

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=87ce86edff1f6937acee2bf2474bce3192eee44c
---

 src/Backend/VLC/VLCSource.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Backend/VLC/VLCSource.cpp b/src/Backend/VLC/VLCSource.cpp
index 2269e05..0a11651 100644
--- a/src/Backend/VLC/VLCSource.cpp
+++ b/src/Backend/VLC/VLCSource.cpp
@@ -33,7 +33,7 @@ VLCSource::VLCSource( VLCBackend* backend, const QString& path )
     : m_backend( backend )
     , m_isParsed( false )
 {
-    m_media = new LibVLCpp::Media( backend->vlcInstance(), path );
+    m_media = new LibVLCpp::Media( backend->vlcInstance(), "file://" + path );
 }
 
 VLCSource::~VLCSource()



More information about the Vlmc-devel mailing list