From: Erwan Tulou Date: Wed, 26 Aug 2009 10:57:55 +0000 (+0200) Subject: qt4: two more places where uri-encoded mrl are required X-Git-Tag: 1.1.0-ff~3874 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0b2e85503a319bc912beb20b1027df03a2c360a8;p=vlc qt4: two more places where uri-encoded mrl are required --- diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp index 91ab27dbe0..40b8513669 100644 --- a/modules/gui/qt4/dialogs_provider.cpp +++ b/modules/gui/qt4/dialogs_provider.cpp @@ -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 ); } diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp index 9ec55888e8..1807f3c5a1 100644 --- a/modules/gui/qt4/main_interface.cpp +++ b/modules/gui/qt4/main_interface.cpp @@ -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 ); }