From 26343f3df922a3db76aa985fa1b1354460073660 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Sat, 22 Mar 2008 13:22:29 -0700 Subject: [PATCH] Add "" around DVD/VCD/CDDA devices... Should help to play .iso and VIDEO_TS folder with spaces in it. Watch that for any regressions. --- modules/gui/qt4/components/open_panels.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp index c187aa7b59..40b053fa68 100644 --- a/modules/gui/qt4/components/open_panels.cpp +++ b/modules/gui/qt4/components/open_panels.cpp @@ -337,9 +337,9 @@ void DiscOpenPanel::updateMRL() /* DVD */ if( ui.dvdRadioButton->isChecked() ) { if( !ui.dvdsimple->isChecked() ) - mrl = "dvd://"; + mrl = "\"dvd://"; else - mrl = "dvdsimple://"; + mrl = "\"dvdsimple://"; mrl += ui.deviceCombo->currentText(); emit methodChanged( "dvdnav-caching" ); @@ -352,7 +352,7 @@ void DiscOpenPanel::updateMRL() /* VCD */ } else if ( ui.vcdRadioButton->isChecked() ) { - mrl = "vcd://" + ui.deviceCombo->currentText(); + mrl = "\"vcd://" + ui.deviceCombo->currentText(); emit methodChanged( "vcd-caching" ); if( ui.titleSpin->value() > 0 ) { @@ -361,12 +361,14 @@ void DiscOpenPanel::updateMRL() /* CDDA */ } else { - mrl = "cdda://" + ui.deviceCombo->currentText(); + mrl = "\"cdda://" + ui.deviceCombo->currentText(); if( ui.titleSpin->value() > 0 ) { QString("@%1").arg( ui.titleSpin->value() ); } } + mrl += "\""; + if ( ui.dvdRadioButton->isChecked() || ui.vcdRadioButton->isChecked() ) { if ( ui.audioSpin->value() >= 0 ) { -- 2.39.2