diff log.h @ 923:13c95c3e8449 libavutil

Make it possible for a log context to keep track of its parent context. This is usefull to keep track and display relations where things are a bit more complex (like AVProtocols or demuxers used by demuxers and such)
author michael
date Wed, 19 May 2010 22:50:39 +0000
parents 2acb0b1891c0
children e34e8d654ded
line wrap: on
line diff
--- a/log.h	Wed May 19 22:45:04 2010 +0000
+++ b/log.h	Wed May 19 22:50:39 2010 +0000
@@ -62,6 +62,14 @@
      * 0 means there is no such variable
      */
     int log_level_offset_offset;
+
+    /**
+     * Offset in the structure where a pointer to the parent context for loging is stored.
+     * for example a decoder that uses eval.c could pass its AVCodecContext to eval as such
+     * parent context. And a av_log() implementation could then display the parent context
+     * can be NULL of course
+     */
+    int parent_log_context_offset;
 } AVClass;
 
 /* av_log API */