/**
* Simple open
***/
-QStringList DialogsProvider::showSimpleOpen( QString help,
+QStringList DialogsProvider::showSimpleOpen( const QString& help,
int filters,
- QString path )
+ const QString& path )
{
QString fileTypes = "";
if( filters & EXT_FILTER_MEDIA ) {
foreach( const QString &file, files )
{
playlist_Add( THEPL, qtu( toNativeSeparators( file ) ), NULL,
- go ? ( PLAYLIST_APPEND | ( i ? 0 : PLAYLIST_GO ) |
- ( i ? PLAYLIST_PREPARSE : 0 ) )
+ go ? ( PLAYLIST_APPEND | ( i ? PLAYLIST_PREPARSE : PLAYLIST_GO ) )
: ( PLAYLIST_APPEND | PLAYLIST_PREPARSE ),
- PLAYLIST_END,
- pl ? true : false, false );
+ PLAYLIST_END, pl, pl_Unlocked );
RecentsMRL::getInstance( p_intf )->addRecent(
toNativeSeparators( file ) );
i++;
if (!dir.isEmpty() )
{
- QString mrl = dir.endsWith( "VIDEO_TS", Qt::CaseInsensitive ) ?
- "dvd://" : "directory://" + toNativeSeparators( dir );
+ QString mrl = (dir.endsWith( "VIDEO_TS", Qt::CaseInsensitive ) ?
+ "dvd://" : "directory://")
+ + toNativeSeparators( dir );
input_item_t *p_input = input_item_New( THEPL, qtu( mrl ), NULL );
/* FIXME: playlist_AddInput() can fail */
msg_Warn( p_intf, "Impossible to recognise the file type. "
"Defaulting to XSPF" );
psz_module = psz_xspf;
- file.append( ".xpsf" );
+ file.append( ".xspf" );
}
playlist_Export( THEPL, qtu( toNativeSeparators( file ) ),
****************************************************************************/
void DialogsProvider::streamingDialog( QWidget *parent,
- QString mrl,
+ const QString& mrl,
bool b_transcode_only,
QStringList options )
{
func->doFunc( p_intf );
}
-void DialogsProvider::SDMenuAction( QString data )
+void DialogsProvider::SDMenuAction( const QString& data )
{
char *psz_sd = strdup( qtu( data ) );
if( !playlist_IsServicesDiscoveryLoaded( THEPL, psz_sd ) )