Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
9d660f1e
Commit
9d660f1e
authored
Aug 18, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: apply message verbosity filtering
parent
debf34b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
modules/gui/ncurses.c
modules/gui/ncurses.c
+7
-3
No files found.
modules/gui/ncurses.c
View file @
9d660f1e
...
@@ -194,6 +194,7 @@ struct intf_sys_t
...
@@ -194,6 +194,7 @@ struct intf_sys_t
msg_subscription_t
*
p_sub
;
// message bank subscription
msg_subscription_t
*
p_sub
;
// message bank subscription
msg_item_t
*
msgs
[
50
];
// ring buffer
msg_item_t
*
msgs
[
50
];
// ring buffer
int
i_msgs
;
int
i_msgs
;
int
i_verbosity
;
vlc_mutex_t
msg_lock
;
vlc_mutex_t
msg_lock
;
/* Search Box context */
/* Search Box context */
...
@@ -1819,6 +1820,10 @@ static void MsgCallback(msg_cb_data_t *data, const msg_item_t *msg)
...
@@ -1819,6 +1820,10 @@ static void MsgCallback(msg_cb_data_t *data, const msg_item_t *msg)
{
{
intf_sys_t
*
p_sys
=
data
->
p_sys
;
intf_sys_t
*
p_sys
=
data
->
p_sys
;
if
(
p_sys
->
i_verbosity
<
0
||
p_sys
->
i_verbosity
<
(
msg
->
i_type
-
VLC_MSG_ERR
))
return
;
vlc_mutex_lock
(
&
p_sys
->
msg_lock
);
vlc_mutex_lock
(
&
p_sys
->
msg_lock
);
if
(
p_sys
->
msgs
[
p_sys
->
i_msgs
])
if
(
p_sys
->
msgs
[
p_sys
->
i_msgs
])
...
@@ -1893,11 +1898,10 @@ static int Open(vlc_object_t *p_this)
...
@@ -1893,11 +1898,10 @@ static int Open(vlc_object_t *p_this)
msg_cb_data
->
p_sys
=
p_sys
;
msg_cb_data
->
p_sys
=
p_sys
;
vlc_mutex_init
(
&
p_sys
->
msg_lock
);
vlc_mutex_init
(
&
p_sys
->
msg_lock
);
vlc_mutex_init
(
&
p_sys
->
pl_lock
);
vlc_mutex_init
(
&
p_sys
->
pl_lock
);
p_sys
->
i_msgs
=
0
;
memset
(
p_sys
->
msgs
,
0
,
sizeof
p_sys
->
msgs
);
memset
(
p_sys
->
msgs
,
0
,
sizeof
p_sys
->
msgs
);
p_sys
->
i_msgs
=
0
;
p_sys
->
i_verbosity
=
var_InheritInteger
(
p_intf
,
"verbose"
);
p_sys
->
p_sub
=
msg_Subscribe
(
p_intf
->
p_libvlc
,
MsgCallback
,
msg_cb_data
);
p_sys
->
p_sub
=
msg_Subscribe
(
p_intf
->
p_libvlc
,
MsgCallback
,
msg_cb_data
);
msg_SubscriptionSetVerbosity
(
p_sys
->
p_sub
,
var_GetInteger
(
p_intf
->
p_libvlc
,
"verbose"
));
p_sys
->
i_box_type
=
BOX_PLAYLIST
;
p_sys
->
i_box_type
=
BOX_PLAYLIST
;
p_sys
->
b_plidx_follow
=
true
;
p_sys
->
b_plidx_follow
=
true
;
...
...
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