[vlmc-devel] Media: Fix not creating a valid producer from mrl given by medialibrary

Yikai Lu git at videolan.org
Mon Mar 6 00:09:00 CET 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Mar  5 16:59:55 2017 -0600| [28ecfdf5231ceeb741c6d3c38c9e5c4a507bfc78] | committer: Yikai Lu

Media: Fix not creating a valid producer from mrl given by medialibrary

> https://code.videolan.org/videolan/vlmc/commit/28ecfdf5231ceeb741c6d3c38c9e5c4a507bfc78
---

 src/Media/Media.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Media/Media.cpp b/src/Media/Media.cpp
index cde058d..3b49386 100644
--- a/src/Media/Media.cpp
+++ b/src/Media/Media.cpp
@@ -76,7 +76,9 @@ Media::Media( medialibrary::MediaPtr media, const QUuid& uuid /* = QUuid() */ )
     }
     if ( m_mlFile == nullptr )
         vlmcFatal( "No file representing media %s", media->title().c_str(), "was found" );
-    m_input.reset( new Backend::MLT::MLTInput( m_mlFile->mrl().c_str() ) );
+    m_input.reset( new Backend::MLT::MLTInput(
+                       qPrintable( QUrl::fromPercentEncoding( QByteArray( m_mlFile->mrl().c_str() ) ) )
+                       ) );
 }
 
 QString



More information about the Vlmc-devel mailing list