[vlc-devel] commit: Qt: try to debug and solve the dshow-vdev issue. ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Sat Mar 14 17:12:41 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Mar 14 17:12:19 2009 +0100| [bab3d856240588a33e0a74545eed11a7d997a30f] | committer: Jean-Baptiste Kempf
Qt: try to debug and solve the dshow-vdev issue.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bab3d856240588a33e0a74545eed11a7d997a30f
---
modules/gui/qt4/components/open_panels.cpp | 6 +++---
modules/gui/qt4/dialogs/open.cpp | 6 +++++-
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index f73ac4c..4251cec 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -1057,8 +1057,8 @@ void CaptureOpenPanel::updateMRL()
break;
case DSHOW_DEVICE:
fileList << "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;
@@ -1252,7 +1252,7 @@ void CaptureOpenPanel::advancedDialog()
case CONFIG_ITEM_FILE:
case CONFIG_ITEM_DIRECTORY:
case CONFIG_ITEM_MODULE:
- tempMRL += QString("=\"%1\"").arg( qobject_cast<VStringConfigControl *>(control)->getValue() );
+ tempMRL += QString("=%1").arg( qobject_cast<VStringConfigControl *>(control)->getValue() );
break;
case CONFIG_ITEM_INTEGER:
tempMRL += QString("=%1").arg( qobject_cast<VIntConfigControl *>(control)->getValue() );
diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp
index 5fcd28d..297fd8b 100644
--- a/modules/gui/qt4/dialogs/open.cpp
+++ b/modules/gui/qt4/dialogs/open.cpp
@@ -36,6 +36,8 @@
#include <QRegExp>
#include <QMenu>
+#define DEBUG_QT 1
+
OpenDialog *OpenDialog::instance = NULL;
OpenDialog* OpenDialog::getInstance( QWidget *parent, intf_thread_t *p_intf,
@@ -359,7 +361,9 @@ void OpenDialog::finish( bool b_enqueue = false )
if( !qs.isEmpty() )
{
input_item_AddOption( p_input, qtu( qs ), VLC_INPUT_OPTION_TRUSTED );
- // msg_Err( p_intf, "Here %s", qtu( qs ));
+#ifdef DEBUG_QT
+ msg_Warn( p_intf, "Input option: %s", qtu( qs ) );
+#endif
}
}
}
More information about the vlc-devel
mailing list