chiark / gitweb /
Don't keep audio files open except when they are actually being read
authorRichard Kettlewell <rjk@greenend.org.uk>
Wed, 9 Jun 2010 19:23:09 +0000 (20:23 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Wed, 9 Jun 2010 19:23:09 +0000 (20:23 +0100)
right that moment ("hands-off reading").

Automatically rescan when anything is mounted or unmounted.

Both are intended to improve compatibility with removable storage.

1  2 
plugins/Makefile.am

@@@ -23,9 -23,7 +23,10 @@@ AM_CPPFLAGS=-I${top_srcdir}/li
  notify_la_SOURCES=notify.c
  notify_la_LDFLAGS=-module
  
 -disorder_tracklength_la_SOURCES=tracklength.c mad.c madshim.h ../lib/wav.h ../lib/wav.c ../lib/hreader.h ../lib/hreader.c
 +disorder_tracklength_la_SOURCES=tracklength.c tracklength.h   \
 +tracklength-mp3.c tracklength-ogg.c tracklength-wav.c         \
- tracklength-flac.c mad.c madshim.h ../lib/wav.h ../lib/wav.c
++tracklength-flac.c mad.c madshim.h ../lib/wav.h ../lib/wav.c  \
++../lib/hreader.h ../lib/hreader.c
  disorder_tracklength_la_LDFLAGS=-module
  disorder_tracklength_la_LIBADD=$(LIBVORBISFILE) $(LIBMAD) $(LIBFLAC) -lm