OSDN Git Service
(root)
/
handbrake-jp
/
handbrake-jp-git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove depreciated cpu count from the api
[handbrake-jp/handbrake-jp-git.git]
/
libhb
/
hb.c
diff --git
a/libhb/hb.c
b/libhb/hb.c
index
60b0bcc
..
46720c1
100644
(file)
--- a/
libhb/hb.c
+++ b/
libhb/hb.c
@@
-40,8
+40,6
@@
struct hb_handle_s
int work_error;
hb_thread_t * work_thread;
int work_error;
hb_thread_t * work_thread;
- int cpu_count;
-
hb_lock_t * state_lock;
hb_state_t state;
hb_lock_t * state_lock;
hb_state_t state;
@@
-331,10
+329,6
@@
hb_handle_t * hb_init( int verbose, int update_check )
*/
hb_buffer_pool_init();
*/
hb_buffer_pool_init();
- /* CPU count detection */
- hb_log( "hb_init: checking cpu count" );
- h->cpu_count = hb_get_cpu_count();
-
h->list_title = hb_list_init();
h->jobs = hb_list_init();
h->list_title = hb_list_init();
h->jobs = hb_list_init();
@@
-435,10
+429,6
@@
hb_handle_t * hb_init_dl( int verbose, int update_check )
}
}
}
}
- /* CPU count detection */
- hb_log( "hb_init: checking cpu count" );
- h->cpu_count = hb_get_cpu_count();
-
h->list_title = hb_list_init();
h->jobs = hb_list_init();
h->current_job = NULL;
h->list_title = hb_list_init();
h->jobs = hb_list_init();
h->current_job = NULL;
@@
-1496,8
+1486,7
@@
void hb_start( hb_handle_t * h )
h->paused = 0;
h->work_die = 0;
h->paused = 0;
h->work_die = 0;
- h->work_thread = hb_work_init( h->jobs, h->cpu_count,
- &h->work_die, &h->work_error, &h->current_job );
+ h->work_thread = hb_work_init( h->jobs, &h->work_die, &h->work_error, &h->current_job );
}
/**
}
/**