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

Tristan Matthews tmatth at videolan.org
Sat Jul 25 18:49:53 CEST 2015


---
 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) )
-- 
2.4.6




More information about the vlc-devel mailing list