Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
9ee42fca
Commit
9ee42fca
authored
Mar 18, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logger: use vlc_LogSet()
parent
aa1a821d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
modules/misc/logger.c
modules/misc/logger.c
+2
-3
No files found.
modules/misc/logger.c
View file @
9ee42fca
...
...
@@ -74,7 +74,6 @@
*****************************************************************************/
struct
intf_sys_t
{
msg_subscription_t
sub
;
FILE
*
p_file
;
const
char
*
footer
;
};
...
...
@@ -298,7 +297,7 @@ static int Open( vlc_object_t *p_this )
fputs
(
header
,
p_sys
->
p_file
);
}
vlc_
Subscribe
(
&
p_
sys
->
sub
,
cb
,
p_intf
);
vlc_
LogSet
(
p_
intf
->
p_libvlc
,
cb
,
p_intf
);
return
VLC_SUCCESS
;
}
...
...
@@ -311,7 +310,7 @@ static void Close( vlc_object_t *p_this )
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
/* Flush the queue and unsubscribe from the message queue */
vlc_
Unsubscribe
(
&
p_
sys
->
sub
);
vlc_
LogSet
(
p_
intf
->
p_libvlc
,
NULL
,
NULL
);
/* Close the log file */
#ifdef HAVE_SYSLOG_H
...
...
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