diff options
author | Damiano Galassi <[email protected]> | 2016-11-11 20:21:13 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-11-11 20:21:13 +0100 |
commit | 167cc7aa759cea3698b43ccbeb223cdfcdee037d (patch) | |
tree | 378b4596e008667c7ca04e3d19245da106f83d93 | |
parent | 4acece393cf1f3bcdb0dc40668c67c173ed8ffe0 (diff) |
libhb: remove scanCount variable from hb_handle_s, it's not needed anymore since MacGui use multiple libhb instances.
-rw-r--r-- | libhb/hb.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index dfe41c113..32e824633 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -55,9 +55,7 @@ struct hb_handle_s int paused; hb_lock_t * pause_lock; - /* For MacGui active queue - increments each time the scan thread completes*/ - int scanCount; + volatile int scan_die; /* Stash of persistent data between jobs, for stuff @@ -1988,11 +1986,8 @@ static void thread_func( void * _h ) hb_list_count( h->title_set.list_title ) ); } hb_lock( h->state_lock ); - h->state.state = HB_STATE_SCANDONE; //originally state.state - hb_unlock( h->state_lock ); - /*we increment this sessions scan count by one for the MacGui - to trigger a new source being set */ - h->scanCount++; + h->state.state = HB_STATE_SCANDONE; + hb_unlock( h->state_lock ); } /* Check if the work thread is done */ |