Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d2571e64
Commit
d2571e64
authored
Jun 26, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt: use QAtomicInt
parent
b5bfeaef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
modules/gui/qt4/dialogs/messages.cpp
modules/gui/qt4/dialogs/messages.cpp
+2
-2
modules/gui/qt4/dialogs/messages.hpp
modules/gui/qt4/dialogs/messages.hpp
+2
-2
No files found.
modules/gui/qt4/dialogs/messages.cpp
View file @
d2571e64
...
...
@@ -146,7 +146,7 @@ MessagesDialog::~MessagesDialog()
void
MessagesDialog
::
changeVerbosity
(
int
i_verbosity
)
{
atomic_store
(
&
this
->
verbosity
,
i_verbosity
)
;
verbosity
=
i_verbosity
;
}
void
MessagesDialog
::
updateConfig
()
...
...
@@ -340,7 +340,7 @@ void MessagesDialog::MsgCallback( void *self, int type, const vlc_log_t *item,
{
MessagesDialog
*
dialog
=
(
MessagesDialog
*
)
self
;
char
*
str
;
int
verbosity
=
atomic_load
(
&
dialog
->
verbosity
)
;
int
verbosity
=
dialog
->
verbosity
;
if
(
verbosity
<
0
||
verbosity
<
(
type
-
VLC_MSG_ERR
)
||
unlikely
(
vasprintf
(
&
str
,
format
,
ap
)
==
-
1
)
)
...
...
modules/gui/qt4/dialogs/messages.hpp
View file @
d2571e64
...
...
@@ -28,8 +28,8 @@
#include "util/singleton.hpp"
#include "ui/messages_panel.h"
#include <stdarg.h>
#include <vlc_atomic.h>
#include <QMutex>
#include <QAtomicInt>
class
QPushButton
;
class
QTreeWidget
;
...
...
@@ -49,7 +49,7 @@ private:
void
sinkMessage
(
const
MsgEvent
*
);
bool
matchFilter
(
const
QString
&
);
atomic_i
nt
verbosity
;
QAtomicI
nt
verbosity
;
static
void
MsgCallback
(
void
*
,
int
,
const
vlc_log_t
*
,
const
char
*
,
va_list
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment