From 167cc7aa759cea3698b43ccbeb223cdfcdee037d Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 11 Nov 2016 20:21:13 +0100 Subject: [PATCH] libhb: remove scanCount variable from hb_handle_s, it's not needed anymore since MacGui use multiple libhb instances. --- libhb/hb.c | 11 +++-------- 1 file 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 */ -- 2.40.0