Change behavior of skip to previous song to start the current song from
the beginning, if it is playing for more than 3 seconds
local audio: do not add pcm_buf_threshold to pcm_pos (leads to wrong
position in Remote)
Lower the priority of the thread so forked-daapd may still respond
during file scan on low power devices
Remove EVLOOP_ONCE calls in filescanner
These calls generate error messages when the loop is already running, which
will be the case when using init-rescan or full-rescan. The only purpose
of these calls seems to be to check for exit signals from the main thread
during a startup bulk scan, where the loop is not running yet. However, we
can check for an exit signal by just setting/checking scan_exit.

This commit also removes the unused filescanner_status().
Don't try to login to Spotify if the filescanner got an exit signal
Fix bug where LastFM session key in db was ignored
Add a function in filescanner.c to enumerate certain file types
Fixes bug where init-rescan and full-rescan would run twice because
two inotify events get triggered by eg 'touch xxx.init-rescan'
Fix filescanner bugs:
- stop init-rescan/full-rescan from running twice
- set thread priority to batch
- don't request libevent to loop when the loop is already running
Add condition for FreeBSD, ignore SCHED_BATCH in filescanner.c
Merge pull request #41 from chme/skipprev

rfc: Change behavior of skip to previous song
Use STOB() in player.c since it is defined right in player.h
Fix ALSA audio problem where threshold will not be reset because
commit 7462290 decreased the value of pcm_pos
Protect against uinitialized var if query is empty
Fix FreeBSD sound timing problems
timer_delete() instead of close() for FreeBSD timer
Drop special FreeBSD stream period
Forgot an include
Fix malplaced declaration
Delete event after disarming timer (maybe not necessary, but for safety)
A note about AirPlay video