Commit fb182fe6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: use OpenDialog::getOptions() where appropriate

parent 801dec3d
...@@ -229,7 +229,7 @@ OpenDialog::~OpenDialog() ...@@ -229,7 +229,7 @@ OpenDialog::~OpenDialog()
QString OpenDialog::getMRL( bool b_all ) QString OpenDialog::getMRL( bool b_all )
{ {
if( itemsMRL.count() == 0 ) return ""; if( itemsMRL.count() == 0 ) return "";
return b_all ? itemsMRL[0] + ui.advancedLineInput->text() return b_all ? itemsMRL[0] + getOptions()
: itemsMRL[0]; : itemsMRL[0];
} }
...@@ -373,7 +373,7 @@ void OpenDialog::enqueue( bool b_enqueue ) ...@@ -373,7 +373,7 @@ void OpenDialog::enqueue( bool b_enqueue )
p_input = input_item_New( qtu( itemsMRL[i] ), NULL ); p_input = input_item_New( qtu( itemsMRL[i] ), NULL );
/* Take options from the UI, not from what we stored */ /* Take options from the UI, not from what we stored */
QStringList optionsList = ui.advancedLineInput->text().split( " :" ); QStringList optionsList = getOptions().split( " :" );
/* Insert options */ /* Insert options */
for( int j = 0; j < optionsList.count(); j++ ) for( int j = 0; j < optionsList.count(); j++ )
...@@ -415,7 +415,7 @@ void OpenDialog::stream( bool b_transcode_only ) ...@@ -415,7 +415,7 @@ void OpenDialog::stream( bool b_transcode_only )
/* Dbg and send :D */ /* Dbg and send :D */
msg_Dbg( p_intf, "MRL passed to the Sout: %s", qtu( soutMRL ) ); msg_Dbg( p_intf, "MRL passed to the Sout: %s", qtu( soutMRL ) );
THEDP->streamingDialog( this, soutMRL, b_transcode_only, THEDP->streamingDialog( this, soutMRL, b_transcode_only,
ui.advancedLineInput->text().split( " :" ) ); getOptions().split( " :" ) );
} }
/* Update the MRL items from the panels */ /* Update the MRL items from the panels */
......
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