[vlc-commits] qt4: fix build for Qt < 5.3

Tristan Matthews git at videolan.org
Thu Jul 30 00:33:43 CEST 2015


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Sat Jul 25 12:49:53 2015 -0400| [419861b397d9cfc67d0e2965952918ab34e827d7] | committer: Jean-Baptiste Kempf

qt4: fix build for Qt < 5.3

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/gui/qt4/dialogs/messages.cpp b/modules/gui/qt4/dialogs/messages.cpp
index d23007f..1bb777c 100644
--- a/modules/gui/qt4/dialogs/messages.cpp
+++ b/modules/gui/qt4/dialogs/messages.cpp
@@ -340,7 +340,7 @@ void MessagesDialog::MsgCallback( void *self, int type, const vlc_log_t *item,
 {
     MessagesDialog *dialog = (MessagesDialog *)self;
     char *str;
-    int verbosity = dialog->verbosity;
+    int verbosity = dialog->verbosity.load();
 
     if( verbosity < 0 || verbosity < (type - VLC_MSG_ERR)
      || unlikely(vasprintf( &str, format, ap ) == -1) )



More information about the vlc-commits mailing list