[vlmc-devel] Media: Use its getter to fetch its mrl

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


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

Media: Use its getter to fetch its mrl

> https://code.videolan.org/videolan/vlmc/commit/6e94447aad3a65fff66ae9f3fe2c8136fd57bfba
---

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

diff --git a/src/Media/Media.cpp b/src/Media/Media.cpp
index f619668..ec51290 100644
--- a/src/Media/Media.cpp
+++ b/src/Media/Media.cpp
@@ -76,9 +76,7 @@ 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(
-                       qPrintable( QUrl::fromPercentEncoding( QByteArray( m_mlFile->mrl().c_str() ) ) )
-                       ) );
+    m_input.reset( new Backend::MLT::MLTInput( qPrintable( mrl() ) ) );
 }
 
 QString



More information about the Vlmc-devel mailing list