diff options
author | Rodeo <[email protected]> | 2013-07-13 18:43:44 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-07-13 18:43:44 +0000 |
commit | 0c5cdc16d8c8cb336f052554c1489f2d5badde72 (patch) | |
tree | be2780f7cee80c8fbc611428d74e71ef26a78976 /libhb/hb.c | |
parent | 8228a6411ed3c76d521dc398ddb5329154786f43 (diff) |
libhb: store and print additional CPU information
Printed in hb_scan(), so that it's present in all Activity Logs (both encode and scan).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5648 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r-- | libhb/hb.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index 0c475abd2..2a9ed1070 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -512,7 +512,7 @@ hb_handle_t * hb_init_dl( int verbose, int update_check ) h->main_thread = hb_thread_init( "libhb", thread_func, h, HB_NORMAL_PRIORITY ); - return h; + return h; } @@ -611,6 +611,17 @@ void hb_scan( hb_handle_t * h, const char * path, int title_index, hb_title_close( &title ); } + /* Print CPU info here so that it's in all scan and encode logs */ + hb_log("hb_scan: CPU count: %i", hb_get_cpu_count()); + if (hb_get_cpu_name() != NULL) + { + hb_log("hb_scan: CPU name: %s", hb_get_cpu_name()); + } + if (hb_get_cpu_platform_name() != NULL) + { + hb_log("hb_scan: CPU type: %s", hb_get_cpu_platform_name()); + } + hb_log( "hb_scan: path=%s, title_index=%d", path, title_index ); h->scan_thread = hb_scan_init( h, &h->scan_die, path, title_index, &h->title_set, preview_count, |