[vlc-commits] messages: skip "external" logger indirection for early log
Rémi Denis-Courmont
git at videolan.org
Wed Feb 27 18:03:07 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb 27 18:48:06 2019 +0200| [99460d959477d263fdd6ff00587a10e4c6c0d536] | committer: Rémi Denis-Courmont
messages: skip "external" logger indirection for early log
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=99460d959477d263fdd6ff00587a10e4c6c0d536
---
src/misc/messages.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/misc/messages.c b/src/misc/messages.c
index 58b45cfd8c..83c8272083 100644
--- a/src/misc/messages.c
+++ b/src/misc/messages.c
@@ -471,8 +471,10 @@ int vlc_LogPreinit(libvlc_int_t *vlc)
vlc->obj.logger = logger;
struct vlc_logger *early = vlc_LogEarlyOpen(logger);
- if (early != NULL)
- vlc_LogSet(vlc, early->ops, early->sys);
+ if (early != NULL) {
+ vlc_LogSwitch(logger, early);
+ vlc_LogSpam(VLC_OBJECT(vlc));
+ }
return 0;
}
More information about the vlc-commits
mailing list