[vlc-commits] Qt: fix changing audio device

Rémi Denis-Courmont git at videolan.org
Wed Oct 21 19:43:31 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Oct 21 20:42:58 2015 +0300| [7ac70075128318c51bbc1c0190482642f7a9226c] | committer: Rémi Denis-Courmont

Qt: fix changing audio device

Change the audio device when the corresponding action is triggered, not
when it is modified... This completely broke ALSA playback.

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

 modules/gui/qt4/menus.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 9b27f32..f7f84eb 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -1556,7 +1556,7 @@ void VLCMenuBar::updateAudioDevice( intf_thread_t * p_intf, audio_output_t *p_ao
             action->setChecked( true );
         actionGroup->addAction( action );
         current->addAction( action );
-        CONNECT(action, changed(), THEMIM->menusAudioMapper, map());
+        CONNECT(action, triggered(), THEMIM->menusAudioMapper, map());
         THEMIM->menusAudioMapper->setMapping(action, ids[i]);
         free( ids[i] );
         free( names[i] );



More information about the vlc-commits mailing list