[vlmc-devel] Media: Fix returning wrong mrl

Yikai Lu git at videolan.org
Wed Mar 8 05:11:10 CET 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Mar  7 21:50:05 2017 -0600| [bcd0500d77a18c069d58795c76c3e42ee43199df] | committer: Yikai Lu

Media: Fix returning wrong mrl

> https://code.videolan.org/videolan/vlmc/commit/bcd0500d77a18c069d58795c76c3e42ee43199df
---

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

diff --git a/src/Media/Media.cpp b/src/Media/Media.cpp
index 3b49386..f619668 100644
--- a/src/Media/Media.cpp
+++ b/src/Media/Media.cpp
@@ -84,7 +84,7 @@ Media::Media( medialibrary::MediaPtr media, const QUuid& uuid /* = QUuid() */ )
 QString
 Media::mrl() const
 {
-    return QString::fromStdString( m_mlFile->mrl() );
+    return QUrl::fromPercentEncoding( QByteArray( m_mlFile->mrl().c_str() ) );
 }
 
 QString



More information about the Vlmc-devel mailing list