Commit 7b50bc9f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Media: Fixing MRL for Image type.

parent bd193be3
...@@ -295,10 +295,10 @@ Media::setFilePath( const QString &filePath ) ...@@ -295,10 +295,10 @@ Media::setFilePath( const QString &filePath )
m_fileInfo = new QFileInfo( filePath ); m_fileInfo = new QFileInfo( filePath );
m_fileName = m_fileInfo->fileName(); m_fileName = m_fileInfo->fileName();
setFileType(); setFileType();
// if ( m_fileType == Media::Video || m_fileType == Media::Audio ) if ( m_fileType != Media::Image )
m_mrl = "file:///" + QUrl::toPercentEncoding( filePath, "/" ); m_mrl = "file:///" + QUrl::toPercentEncoding( filePath, "/" );
// else else
// m_mrl = "fake:///" + QUrl::toPercentEncoding( filePath, "/" ); m_mrl = "fake:///" + filePath; //It seems the url encoding part is handled internally by VLC.
if ( m_vlcMedia ) if ( m_vlcMedia )
delete m_vlcMedia; delete m_vlcMedia;
m_vlcMedia = new LibVLCpp::Media( m_mrl ); m_vlcMedia = new LibVLCpp::Media( m_mrl );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment