From: Jean-Baptiste Kempf Date: Sat, 15 Mar 2008 18:46:54 +0000 (-0700) Subject: Fix DShow capture names with spaces, spotted by Andre Weber. X-Git-Tag: 0.9.0-test0~2072 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=31927c895c0f13237bf734cbae39f915bb2b3786;p=vlc Fix DShow capture names with spaces, spotted by Andre Weber. Fix Apple iSight on windows :D --- diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp index 61798d28f7..a9f27f461d 100644 --- a/modules/gui/qt4/components/open_panels.cpp +++ b/modules/gui/qt4/components/open_panels.cpp @@ -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;