[vlc-commits] Qt4: remove unnecessary path to URL conversion

Rémi Denis-Courmont git at videolan.org
Mon Aug 20 19:36:12 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 20 19:51:40 2012 +0300| [595db21adb1035a72a84e4f9ac7c541c5b4b6ee7] | committer: Rémi Denis-Courmont

Qt4: remove unnecessary path to URL conversion

Recent entries are already MRLs.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=595db21adb1035a72a84e4f9ac7c541c5b4b6ee7
---

 modules/gui/qt4/dialogs_provider.cpp |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp
index 600c0d4..7e339b4 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -758,12 +758,7 @@ void DialogsProvider::SDMenuAction( const QString& data )
  **/
 void DialogsProvider::playMRL( const QString &mrl )
 {
-    char *uri = make_URI( qtu( mrl ), NULL );
-    if( unlikely( uri == NULL ) )
-        return;
-
-    playlist_Add( THEPL, uri, NULL,
-           PLAYLIST_APPEND | PLAYLIST_GO , PLAYLIST_END, true, false );
+    playlist_Add( THEPL, qtu(mrl), NULL,
+                  PLAYLIST_APPEND | PLAYLIST_GO , PLAYLIST_END, true, false );
     RecentsMRL::getInstance( p_intf )->addRecent( mrl );
-    free( uri );
 }



More information about the vlc-commits mailing list