]> git.sesse.net Git - vlc/commit
messages: split logger initialization in two phases
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 7 Feb 2015 17:28:45 +0000 (19:28 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 8 Feb 2015 09:07:20 +0000 (11:07 +0200)
commit8b0dd8cfdff0d9697fb44e7849764c9274965adb
tree2a74e6abcd90af28061d82cadb7e968436861723
parent7360dc22426f916c5221715e580ee76f8d319b7c
messages: split logger initialization in two phases

To initialize logging, we typically need configuration and command line
parameters. And using modules would also be nice. But we also want to
emit log messages while initializing the configuration and the modules
bank. This is a catch-22.

To work around the problem, we store the early log messages in a
temporary list, and drain the list later once logging is configured.

(Also fix a minor integer overflow involving atoi().)
src/libvlc.c
src/libvlc.h
src/misc/messages.c