[vlmc-devel] Media: Fix returning percent-encoded title

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


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Mar  7 21:54:32 2017 -0600| [8cc34ea14d47a5d4037318e6c111f773df2e0fb6] | committer: Yikai Lu

Media: Fix returning percent-encoded title

> https://code.videolan.org/videolan/vlmc/commit/8cc34ea14d47a5d4037318e6c111f773df2e0fb6
---

 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 ec51290..fdf7e55 100644
--- a/src/Media/Media.cpp
+++ b/src/Media/Media.cpp
@@ -88,7 +88,7 @@ Media::mrl() const
 QString
 Media::title() const
 {
-    return QString::fromStdString( m_mlMedia->title() );
+    return QUrl::fromPercentEncoding( QByteArray( m_mlMedia->title().c_str() ) );
 }
 
 qint64



More information about the Vlmc-devel mailing list