[vlc-commits] Qt4: correct v4l2-standard values (fix #5500)

Rémi Denis-Courmont git at videolan.org
Tue Nov 1 17:12:08 CET 2011


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov  1 18:11:45 2011 +0200| [f446b78142ba85b20f5f7ce515ae4459e4640423] | committer: Rémi Denis-Courmont

Qt4: correct v4l2-standard values (fix #5500)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=f446b78142ba85b20f5f7ce515ae4459e4640423
---

 modules/gui/qt4/components/open_panels.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index b32108e..27c0c78 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -1140,7 +1140,8 @@ void CaptureOpenPanel::updateMRL()
     case V4L2_DEVICE:
         fileList << "v4l2://" + v4l2VideoDevice->text();
         mrl += " :input-slave=alsa://" + v4l2AudioDevice->text();
-        mrl += " :v4l2-standard=" + QString::number( v4l2StdBox->currentIndex() );
+        mrl += " :v4l2-standard=" + QString::number( v4l2StdBox->itemData(
+                                        v4l2StdBox->currentIndex() ).toInt() );
         break;
     case JACK_DEVICE:
         mrl = "jack://";



More information about the vlc-commits mailing list