From: Richard Kettlewell Date: Wed, 9 Jun 2010 19:23:09 +0000 (+0100) Subject: Don't keep audio files open except when they are actually being read X-Git-Tag: branchpoint-5.1~77 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/fdb4e27ac67437dd655dc4b70613b977eeabccb1?hp=-c Don't keep audio files open except when they are actually being read right that moment ("hands-off reading"). Automatically rescan when anything is mounted or unmounted. Both are intended to improve compatibility with removable storage. --- fdb4e27ac67437dd655dc4b70613b977eeabccb1 diff --combined plugins/Makefile.am index 3626991,410f5ae..76d7923 --- a/plugins/Makefile.am +++ b/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