Commit 0b2e8550 authored by Erwan Tulou's avatar Erwan Tulou

qt4: two more places where uri-encoded mrl are required

parent 685cd612
...@@ -701,8 +701,10 @@ void DialogsProvider::SDMenuAction( const QString& data ) ...@@ -701,8 +701,10 @@ void DialogsProvider::SDMenuAction( const QString& data )
**/ **/
void DialogsProvider::playMRL( const QString &mrl ) 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 ); PLAYLIST_APPEND | PLAYLIST_GO , PLAYLIST_END, true, false );
free( psz_uri );
RecentsMRL::getInstance( p_intf )->addRecent( mrl ); RecentsMRL::getInstance( p_intf )->addRecent( mrl );
} }
...@@ -1256,9 +1256,11 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play ) ...@@ -1256,9 +1256,11 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
QString s = toNativeSeparators( url.toLocalFile() ); QString s = toNativeSeparators( url.toLocalFile() );
if( s.length() > 0 ) { 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_APPEND | (first ? PLAYLIST_GO: PLAYLIST_PREPARSE),
PLAYLIST_END, true, pl_Unlocked ); PLAYLIST_END, true, pl_Unlocked );
free( psz_uri );
first = false; first = false;
RecentsMRL::getInstance( p_intf )->addRecent( s ); RecentsMRL::getInstance( p_intf )->addRecent( s );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment