Commit Graph

1454 Commits

Author SHA1 Message Date
Warren Dukes c4d2b8dc1c only write db in initMp3Directory() when stuff is updated
git-svn-id: https://svn.musicpd.org/mpd/trunk@781 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-16 00:48:47 +00:00
Warren Dukes 2e420db19c remove directory mtime from db!
also, only reReadDB and write DB on update if something was actually updated

git-svn-id: https://svn.musicpd.org/mpd/trunk@780 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-16 00:41:56 +00:00
Warren Dukes 5ea8e2d65b don't stat() the db to get the modtime everytime, instead store it when we read the db
git-svn-id: https://svn.musicpd.org/mpd/trunk@779 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-15 23:36:41 +00:00
Warren Dukes be3e2f08c9 todo udpates
git-svn-id: https://svn.musicpd.org/mpd/trunk@778 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-15 20:15:41 +00:00
Warren Dukes 3ea87a52c6 round crossfade for status
git-svn-id: https://svn.musicpd.org/mpd/trunk@775 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-15 16:16:19 +00:00
Warren Dukes 0b7d9b2dec no point in tallying stats on writeDirectoryDB anymore
git-svn-id: https://svn.musicpd.org/mpd/trunk@774 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-15 15:25:06 +00:00
Warren Dukes 55789de546 todo rearranging
git-svn-id: https://svn.musicpd.org/mpd/trunk@773 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-15 05:10:05 +00:00
Warren Dukes 7f29bb1a8d log cycling and a few cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@772 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-15 05:07:04 +00:00
Warren Dukes df3af7d4f1 clean up a little bit main() code
git-svn-id: https://svn.musicpd.org/mpd/trunk@771 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-15 03:26:15 +00:00
Warren Dukes 794799eaf4 don't updatedb on sighup if db is being updated
git-svn-id: https://svn.musicpd.org/mpd/trunk@768 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14 23:08:28 +00:00
Warren Dukes c68dda4742 git-svn-id: https://svn.musicpd.org/mpd/trunk@767 09075e82-0dd4-0310-85a5-a0d7c8717e4f 2004-04-14 22:25:03 +00:00
Warren Dukes 4ae945b10d update todo
git-svn-id: https://svn.musicpd.org/mpd/trunk@766 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14 21:57:37 +00:00
Warren Dukes 549344d38a add vim shiznit to end of all source files
git-svn-id: https://svn.musicpd.org/mpd/trunk@750 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14 14:53:41 +00:00
Warren Dukes 87e87e12d3 todo updates
git-svn-id: https://svn.musicpd.org/mpd/trunk@749 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14 14:28:37 +00:00
Warren Dukes 99f5dab7c3 one more thing for todo
git-svn-id: https://svn.musicpd.org/mpd/trunk@746 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14 05:32:42 +00:00
Warren Dukes 2a24a94ba7 ok, finished incremental update!
now just need to polish up a few things with update

git-svn-id: https://svn.musicpd.org/mpd/trunk@745 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14 05:26:32 +00:00
Warren Dukes ba1d3302e2 silly shank, use functions you already have\!
git-svn-id: https://svn.musicpd.org/mpd/trunk@744 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14 03:04:49 +00:00
Warren Dukes 8fa2084703 pseduo-code for creating new entries in db for incremental update
git-svn-id: https://svn.musicpd.org/mpd/trunk@743 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14 02:55:19 +00:00
Warren Dukes 32b62ade7b incremental update can now recognize if you pass it a deleted path
git-svn-id: https://svn.musicpd.org/mpd/trunk@742 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14 02:35:29 +00:00
Warren Dukes 700093adcc add copyright notices to new files
git-svn-id: https://svn.musicpd.org/mpd/trunk@739 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 19:59:03 +00:00
Warren Dukes e4ef4ea6aa make some code look neater
git-svn-id: https://svn.musicpd.org/mpd/trunk@738 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 19:55:00 +00:00
Warren Dukes 72e06e05a1 fix some misc chld signal handling for update process
git-svn-id: https://svn.musicpd.org/mpd/trunk@737 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 19:52:15 +00:00
Warren Dukes 1f0f1b2892 add a error msg for playerSeek()
git-svn-id: https://svn.musicpd.org/mpd/trunk@736 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 19:27:22 +00:00
Warren Dukes b5bdc71d2c have update process ignore signals when writing db
git-svn-id: https://svn.musicpd.org/mpd/trunk@735 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 19:24:05 +00:00
Warren Dukes 860f8bda71 ok, rework myfprintf so it uses write() and never use any file stream
print functions.  this way we can always know wtf is going on!
also, remove some places where we were using fprintf and printf instead of
myfprintf

git-svn-id: https://svn.musicpd.org/mpd/trunk@734 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 19:08:38 +00:00
Warren Dukes 5a50fa7147 block signals when writing db to ensure db isn't corrupted
git-svn-id: https://svn.musicpd.org/mpd/trunk@730 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 17:08:31 +00:00
Warren Dukes acf0e147c2 when doing signal functions (like sigaction) make sure it wasn't interrupted by a signal (errno==EINTR)
git-svn-id: https://svn.musicpd.org/mpd/trunk@729 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 16:46:11 +00:00
Warren Dukes 00c25b772e add --only-update-db command line option
git-svn-id: https://svn.musicpd.org/mpd/trunk@728 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 16:22:59 +00:00
Warren Dukes 43c2576934 todo...mhmmm
git-svn-id: https://svn.musicpd.org/mpd/trunk@727 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 15:52:16 +00:00
Warren Dukes 0eef3bd94d todo: don't have children write to logs, that's very naughty
git-svn-id: https://svn.musicpd.org/mpd/trunk@726 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 15:49:54 +00:00
Warren Dukes 8c96c2d363 rename all ascii/utf8 stuff to latin1/utf8
git-svn-id: https://svn.musicpd.org/mpd/trunk@718 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 13:52:16 +00:00
Warren Dukes 4920ee719a plug a potential memory leak
git-svn-id: https://svn.musicpd.org/mpd/trunk@713 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 05:19:45 +00:00
Warren Dukes 20be66a944 clean up finished stuff from todo
git-svn-id: https://svn.musicpd.org/mpd/trunk@712 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 05:05:06 +00:00
Warren Dukes 1004890e25 lots of fsCharset, utf8/ascii converting clean-up and robustness stuff
Also, if fsCharsetToUtf8 can't convert to valid UTF-8, then don't add
it to the db, this way clients don't have to worry about weirdness and it
will force ppl to convert it.

git-svn-id: https://svn.musicpd.org/mpd/trunk@711 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 04:59:57 +00:00
Warren Dukes 0927c61533 todo idea updates
git-svn-id: https://svn.musicpd.org/mpd/trunk@710 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 02:59:18 +00:00
Warren Dukes d88501f4bb todo ideas: utf8 fallback stuff when iconv doesn't work
git-svn-id: https://svn.musicpd.org/mpd/trunk@709 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 02:45:13 +00:00
Warren Dukes f765c26275 fix a small booboo and add some debugging stuff
git-svn-id: https://svn.musicpd.org/mpd/trunk@708 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 02:38:09 +00:00
Warren Dukes 375e3ffed4 add my own utf8/ascii converters and utf8 validator
validate all mpd tags on import, if they are invalid, assume they are ascii
and convert to utf8

git-svn-id: https://svn.musicpd.org/mpd/trunk@707 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 02:20:46 +00:00
Warren Dukes 6bc445d00f volatile fun-ness
git-svn-id: https://svn.musicpd.org/mpd/trunk@705 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-12 18:51:16 +00:00
Warren Dukes 57742785b4 forgetting to increment playlist version after reading the db
git-svn-id: https://svn.musicpd.org/mpd/trunk@704 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-12 14:19:06 +00:00
Warren Dukes b68417a643 cleanup interface between interface.[ch] and command.[ch]
primarily move all buffer2array stuff from interface.c to command.c
and write a new command function explicitly for dealing with commandLists

git-svn-id: https://svn.musicpd.org/mpd/trunk@701 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-12 01:44:52 +00:00
Warren Dukes f74991b9fd minor little tweak on reporting update status
git-svn-id: https://svn.musicpd.org/mpd/trunk@700 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-12 00:41:53 +00:00
Warren Dukes bbf84374a5 more volatile stuff
git-svn-id: https://svn.musicpd.org/mpd/trunk@699 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 23:44:37 +00:00
Warren Dukes 26f72edc46 add volatile qualifiers to some shared mem buffer stuff, to enusre compiler
doesn't optimize out order sensitive stuff

git-svn-id: https://svn.musicpd.org/mpd/trunk@698 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 23:37:18 +00:00
Warren Dukes ae33b348af clean up signal handling using a polling method, from the genius that is mackstann
git-svn-id: https://svn.musicpd.org/mpd/trunk@697 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 23:07:43 +00:00
Warren Dukes 063affb047 we no longer need to block signals in tag.c, since update is now done
in a seperate process

git-svn-id: https://svn.musicpd.org/mpd/trunk@696 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 21:43:23 +00:00
Warren Dukes 0a326a4323 mackstann's idea for polling signals
git-svn-id: https://svn.musicpd.org/mpd/trunk@695 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 20:14:10 +00:00
Warren Dukes abc075c431 ok, fix some bug due to a child process dieing before the parent can
even assign pid, thus we need to block CHLD signal around fork();

git-svn-id: https://svn.musicpd.org/mpd/trunk@694 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 18:27:12 +00:00
Warren Dukes c1ab52dcb9 update with new update stuff
git-svn-id: https://svn.musicpd.org/mpd/trunk@693 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 17:42:47 +00:00
Warren Dukes fc7a264e4d incremental updates and command-list/update kung fu
this needs some serious cleaning up and testing

git-svn-id: https://svn.musicpd.org/mpd/trunk@692 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 17:37:47 +00:00