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
39bd1d86
Commit
39bd1d86
authored
Feb 10, 2015
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Feb 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logger/android: use "verbose" var
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
e105c631
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
modules/logger/android.c
modules/logger/android.c
+11
-3
No files found.
modules/logger/android.c
View file @
39bd1d86
...
...
@@ -36,11 +36,15 @@
static
const
int
ptr_width
=
2
*
/* hex digits */
sizeof
(
uintptr_t
);
static
void
AndroidPrintMsg
(
void
*
d
,
int
type
,
const
vlc_log_t
*
p_item
,
static
void
AndroidPrintMsg
(
void
*
opaque
,
int
type
,
const
vlc_log_t
*
p_item
,
const
char
*
format
,
va_list
ap
)
{
int
prio
;
char
*
format2
;
int
verbose
=
(
intptr_t
)
opaque
;
if
(
verbose
<
type
)
return
;
int
canc
=
vlc_savecancel
();
...
...
@@ -69,8 +73,12 @@ static void AndroidPrintMsg(void *d, int type, const vlc_log_t *p_item,
static
vlc_log_cb
Open
(
vlc_object_t
*
obj
,
void
**
sysp
)
{
VLC_UNUSED
(
obj
);
VLC_UNUSED
(
sysp
);
int
verbosity
=
var_InheritInteger
(
obj
,
"verbose"
);
if
(
verbosity
<
0
)
return
NULL
;
*
sysp
=
(
void
*
)(
uintptr_t
)
verbosity
;
return
AndroidPrintMsg
;
}
...
...
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