]> git.sesse.net Git - vlc/commitdiff
qt4: two more places where uri-encoded mrl are required
authorErwan Tulou <erwan10@videolan.org>
Wed, 26 Aug 2009 10:57:55 +0000 (12:57 +0200)
committerErwan Tulou <erwan10@videolan.org>
Wed, 26 Aug 2009 11:05:15 +0000 (13:05 +0200)
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/main_interface.cpp

index 91ab27dbe01e88a4dc7f60996a567c0ac3167a2b..40b8513669a5258d399384c2b68c171f32eca5c4 100644 (file)
@@ -701,8 +701,10 @@ void DialogsProvider::SDMenuAction( const QString& data )
  **/
 void DialogsProvider::playMRL( const QString &mrl )
 {
-    playlist_Add( THEPL, qtu( mrl ) , NULL,
+    char* psz_uri = make_URI( qtu(mrl) );
+    playlist_Add( THEPL, psz_uri, NULL,
            PLAYLIST_APPEND | PLAYLIST_GO , PLAYLIST_END, true, false );
+    free( psz_uri );
 
     RecentsMRL::getInstance( p_intf )->addRecent( mrl );
 }
index 9ec55888e899fd4b52f0824c487caa3ad8c955c5..1807f3c5a1eb3dced4282abed71a194793c9f8c7 100644 (file)
@@ -1256,9 +1256,11 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
         QString s = toNativeSeparators( url.toLocalFile() );
 
         if( s.length() > 0 ) {
-            playlist_Add( THEPL, qtu(s), NULL,
+            char* psz_uri = make_URI( qtu(s) );
+            playlist_Add( THEPL, psz_uri, NULL,
                           PLAYLIST_APPEND | (first ? PLAYLIST_GO: PLAYLIST_PREPARSE),
                           PLAYLIST_END, true, pl_Unlocked );
+            free( psz_uri );
             first = false;
             RecentsMRL::getInstance( p_intf )->addRecent( s );
         }