vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sat Feb  7 
19:28:45 2015 +0200| [8b0dd8cfdff0d9697fb44e7849764c9274965adb] | committer: 
Rémi Denis-Courmont

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().)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b0dd8cfdff0d9697fb44e7849764c9274965adb
---

 src/libvlc.c        |    5 +-
 src/libvlc.h        |   13 +--
 src/misc/messages.c |  297 ++++++++++++++++++++++++++++++++++++++++-----------
 3 files changed, 246 insertions(+), 69 deletions(-)

Diff:   
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=8b0dd8cfdff0d9697fb44e7849764c9274965adb
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to