From 31927c895c0f13237bf734cbae39f915bb2b3786 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Sat, 15 Mar 2008 11:46:54 -0700 Subject: [PATCH] Fix DShow capture names with spaces, spotted by Andre Weber. Fix Apple iSight on windows :D --- modules/gui/qt4/components/open_panels.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5