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
add015be
Commit
add015be
authored
Feb 07, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logger: make the logger a new object type
parent
514d4fcb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/misc/messages.c
src/misc/messages.c
+3
-2
No files found.
src/misc/messages.c
View file @
add015be
...
...
@@ -48,6 +48,7 @@
struct
vlc_logger_t
{
VLC_COMMON_MEMBERS
vlc_rwlock_t
lock
;
vlc_log_cb
log
;
void
*
sys
;
...
...
@@ -389,7 +390,7 @@ static void vlc_vaLogDiscard(void *d, int type, const vlc_log_t *item,
*/
int
vlc_LogPreinit
(
libvlc_int_t
*
vlc
)
{
vlc_logger_t
*
logger
=
malloc
(
sizeof
(
*
logger
)
);
vlc_logger_t
*
logger
=
vlc_custom_create
(
vlc
,
sizeof
(
*
logger
),
"logger"
);
libvlc_priv
(
vlc
)
->
logger
=
logger
;
...
...
@@ -502,5 +503,5 @@ void vlc_LogDeinit(libvlc_int_t *vlc)
}
vlc_rwlock_destroy
(
&
logger
->
lock
);
fre
e
(
logger
);
vlc_object_releas
e
(
logger
);
}
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