Index: libhb/hb.c =================================================================== --- libhb/hb.c (revision 673) +++ libhb/hb.c (working copy) @@ -34,6 +34,9 @@ int paused; hb_lock_t * pause_lock; + + //for dynaflash + int scanCount; }; hb_work_object_t * hb_objects = NULL; @@ -120,8 +123,7 @@ hb_log( "hb_init: starting libhb thread" ); h->die = 0; h->main_thread = hb_thread_init( "libhb", thread_func, h, - HB_NORMAL_PRIORITY ); - + HB_NORMAL_PRIORITY ); return h; } @@ -819,6 +821,8 @@ hb_lock( h->state_lock ); h->state.state = HB_STATE_SCANDONE; hb_unlock( h->state_lock ); + h->scanCount++; + hb_log("Dynaflash, scan count is now %i", h->scanCount); } /* Check if the work thread is done */