[vlmc-devel] commit: Media: Fixing MRL for Image type. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Thu Nov 4 13:28:15 CET 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Nov  1 18:46:02 2010 +0100| [7b50bc9f90c6bed8eed1d6d0a5c991cfe2970c9f] | committer: Hugo Beauzée-Luyssen 

Media: Fixing MRL for Image type.

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

 src/Media/Media.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Media/Media.cpp b/src/Media/Media.cpp
index 53adbf4..d0dcd89 100644
--- a/src/Media/Media.cpp
+++ b/src/Media/Media.cpp
@@ -295,10 +295,10 @@ Media::setFilePath( const QString &filePath )
     m_fileInfo = new QFileInfo( filePath );
     m_fileName = m_fileInfo->fileName();
     setFileType();
-//    if ( m_fileType == Media::Video || m_fileType == Media::Audio )
+    if ( m_fileType != Media::Image )
         m_mrl = "file:///" + QUrl::toPercentEncoding( filePath, "/" );
-//    else
-//        m_mrl = "fake:///" + QUrl::toPercentEncoding( filePath, "/" );
+    else
+        m_mrl = "fake:///" + filePath; //It seems the url encoding part is handled internally by VLC.
     if ( m_vlcMedia )
         delete m_vlcMedia;
     m_vlcMedia = new LibVLCpp::Media( m_mrl );



More information about the Vlmc-devel mailing list