]> git.sesse.net Git - vlc/commitdiff
Add "" around DVD/VCD/CDDA devices... Should help to play .iso and VIDEO_TS folder...
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 22 Mar 2008 20:22:29 +0000 (13:22 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 22 Mar 2008 20:22:29 +0000 (13:22 -0700)
modules/gui/qt4/components/open_panels.cpp

index c187aa7b5948e52983350c670607f58712048944..40b053fa683bb2dcf432fddc4570a2c1a27bcec3 100644 (file)
@@ -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 ) {