]> git.sesse.net Git - vlc/commitdiff
Fix DShow capture names with spaces, spotted by Andre Weber.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 15 Mar 2008 18:46:54 +0000 (11:46 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 15 Mar 2008 18:51:08 +0000 (11:51 -0700)
Fix Apple iSight on windows :D

modules/gui/qt4/components/open_panels.cpp

index 61798d28f750615dbf17f778b579a381a518c577..a9f27f461db40ffb1caf0fd2021559f00e326f1f 100644 (file)
@@ -940,8 +940,8 @@ void CaptureOpenPanel::updateMRL()
         break;
     case DSHOW_DEVICE:
         mrl = "dshow://";
-        mrl += " :dshow-vdev=" + QString("%1").arg( vdevDshowW->getValue() );
-        mrl += " :dshow-adev=" + QString("%1").arg( adevDshowW->getValue() );
+        mrl+= " :dshow-vdev=" + QString("\"%1\"").arg( vdevDshowW->getValue() );
+        mrl+= " :dshow-adev=" + QString("\"%1\"").arg( adevDshowW->getValue() );
         if( dshowVSizeLine->isModified() )
             mrl += " :dshow-size=" + dshowVSizeLine->text();
         break;