[vlc-devel] [PATCH 0/2] Libvlc formatted log callback

Jérémy VIGNELLES jeremy.vignelles at dev3i.fr
Mon May 20 22:58:39 CEST 2019


This is a second approach to a formatted log callback that can be consumed in any language.

While I tried to not break anything in the previous patchset, I'm proposing some breaking changes
here, in order to avoid having a context that must be freed.

However, it didn't feel right to introduce a formatted log callback into libvlc_instance_t, while
trying at all costs to keep the libvlc_log_set. This is why I took the decision to remove
libvlc_log_set altogether.

Jérémy VIGNELLES (2):
  libvlc: replaced libvlc_log_set with a formatted log callback
  test: libvlc: Added a formatted log callback test

 include/vlc/libvlc.h  | 25 ++++++++++++-------------
 lib/libvlc.sym        |  2 +-
 lib/libvlc_internal.h |  3 ++-
 lib/log.c             | 29 +++++++++++++++++++----------
 test/libvlc/core.c    | 24 ++++++++++++++++++++++++
 5 files changed, 58 insertions(+), 25 deletions(-)

-- 
2.20.1



More information about the vlc-devel mailing list