[mythtv-commits] Ticket #2460: Add proper cout buffered logging of libavcodec

MythTV mythtv at cvs.mythtv.org
Mon Sep 25 13:55:07 UTC 2006

#2460: Add proper cout buffered logging of libavcodec
 Reporter:  paulx at andreassen.com.au  |       Owner:  ijr    
     Type:  patch                    |      Status:  new    
 Priority:  minor                    |   Milestone:  unknown
Component:  mythtv                   |     Version:  0.20   
 Severity:  medium                   |  
 I got this idea from mythtv/programs/mythtranscode/mpeg2fix.cpp. By using
 the av_log_set_callback we can set how the libavcodec library displays its
 information and error messages.  Even what level of message to display too
 or not at all.

 The biggest downside seem to be where to put it.  I put it in the
 mythtv/libs/libmyth/mythcontext.cpp file.  While used everywhere
 libavcodec is used, it is also used when libavcodec isn't.  This requires
 libavutil beening linked into mythuitest, mythbrowser and mtd.

Ticket URL: <http://cvs.mythtv.org/trac/ticket/2460>
MythTV <http://www.mythtv.org/>

More information about the mythtv-commits mailing list