[vlc-commits] Qt: fix audio menu crash

Jean-Baptiste Kempf git at videolan.org
Fri Jan 17 17:40:26 CET 2014


vlc/vlc-2.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jan 17 17:36:31 2014 +0100| [fd311785f2b64404fa312345b9d4415a65ecc257] | committer: Jean-Baptiste Kempf

Qt: fix audio menu crash

Close #9674

(cherry picked from commit 987d6cf967cc70752493428496a16d4c62c56044)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index d956ee2..621fed3 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -604,7 +604,8 @@ QMenu *VLCMenuBar::AudioMenu( intf_thread_t *p_intf, QMenu * current )
     if( current->isEmpty() )
     {
         addActionWithSubmenu( current, "audio-es", qtr( "Audio &Track" ) );
-        audioDeviceMenu = current->addMenu( qtr( "Audio &Device" ) );
+        audioDeviceMenu = new QMenu( qtr( "Audio &Device" ) );
+        current->addMenu( audioDeviceMenu );
         addActionWithSubmenu( current, "stereo-mode", qtr( "&Stereo Mode" ) );
         current->addSeparator();
 



More information about the vlc-commits mailing list