Commit 26343f3d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Add "" around DVD/VCD/CDDA devices... Should help to play .iso and VIDEO_TS...

Add "" around DVD/VCD/CDDA devices... Should help to play .iso and VIDEO_TS folder with spaces in it. Watch that for any regressions.
parent 4df31211
...@@ -337,9 +337,9 @@ void DiscOpenPanel::updateMRL() ...@@ -337,9 +337,9 @@ void DiscOpenPanel::updateMRL()
/* DVD */ /* DVD */
if( ui.dvdRadioButton->isChecked() ) { if( ui.dvdRadioButton->isChecked() ) {
if( !ui.dvdsimple->isChecked() ) if( !ui.dvdsimple->isChecked() )
mrl = "dvd://"; mrl = "\"dvd://";
else else
mrl = "dvdsimple://"; mrl = "\"dvdsimple://";
mrl += ui.deviceCombo->currentText(); mrl += ui.deviceCombo->currentText();
emit methodChanged( "dvdnav-caching" ); emit methodChanged( "dvdnav-caching" );
...@@ -352,7 +352,7 @@ void DiscOpenPanel::updateMRL() ...@@ -352,7 +352,7 @@ void DiscOpenPanel::updateMRL()
/* VCD */ /* VCD */
} else if ( ui.vcdRadioButton->isChecked() ) { } else if ( ui.vcdRadioButton->isChecked() ) {
mrl = "vcd://" + ui.deviceCombo->currentText(); mrl = "\"vcd://" + ui.deviceCombo->currentText();
emit methodChanged( "vcd-caching" ); emit methodChanged( "vcd-caching" );
if( ui.titleSpin->value() > 0 ) { if( ui.titleSpin->value() > 0 ) {
...@@ -361,12 +361,14 @@ void DiscOpenPanel::updateMRL() ...@@ -361,12 +361,14 @@ void DiscOpenPanel::updateMRL()
/* CDDA */ /* CDDA */
} else { } else {
mrl = "cdda://" + ui.deviceCombo->currentText(); mrl = "\"cdda://" + ui.deviceCombo->currentText();
if( ui.titleSpin->value() > 0 ) { if( ui.titleSpin->value() > 0 ) {
QString("@%1").arg( ui.titleSpin->value() ); QString("@%1").arg( ui.titleSpin->value() );
} }
} }
mrl += "\"";
if ( ui.dvdRadioButton->isChecked() || ui.vcdRadioButton->isChecked() ) if ( ui.dvdRadioButton->isChecked() || ui.vcdRadioButton->isChecked() )
{ {
if ( ui.audioSpin->value() >= 0 ) { if ( ui.audioSpin->value() >= 0 ) {
......
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