2012/1/16 wl2776 <[email protected]>: > Yes, y > Tr3wory wrote >> >> Can't I just set some pointer in a context or somewhere else what I >> can use in the callback like in most other callback driven library? >> > > Yes, you can. > Generally, you call av_log(/*log level*/, /* context pointer */, "message", > /*other arguments*/ ); > Default log callback casts context pointer from void * to AVClass * and > extracts all necessary information from it. > You can create your own variable of type AVClass and pass its pointer to the > log.
I suggest topicstarter needs to identify log calls that come from inside of libs, not his own loggings. But logging facility is not meant to provide such identification with corresponding task, unfortunately. -- Andrey Utkin _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
