summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-10-09 00:16:14 +0000
committerjbrjake <[email protected]>2008-10-09 00:16:14 +0000
commit45307049935e7f3a991957d35f699bb00a288a5b (patch)
tree982b2af1c3a6ab45c5af29b6ffcd208bf4d7a64f /libhb/hb.c
parenta6f41219f1a6251da2ae5d31202b88adcce1ffc2 (diff)
Adds an hb_deep_log() function for multiple levels of debugging verbosity. Level 1 displays when hb_log does (job->verbose == 1) and is now meant for logging that helps in tech support. Level 2 adds memory-related logging like freed buffers, and level 3 is for granular stuff that displays once per sample, frame, packet, etc. The debug level continues to be set when hb_init() is called.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1819 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index 390e566d2..06b489306 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -69,11 +69,10 @@ hb_handle_t * hb_init_real( int verbose, int update_check )
hb_handle_t * h = calloc( sizeof( hb_handle_t ), 1 );
uint64_t date;
- /* See hb_log() in common.c */
- if( verbose > HB_DEBUG_NONE )
- {
+ /* See hb_deep_log() and hb_log() in common.c */
+ global_verbosity_level = verbose;
+ if( verbose )
putenv( "HB_DEBUG=1" );
- }
/* Check for an update on the website if asked to */
h->build = -1;