aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* block signals when writing db to ensure db isn't corruptedWarren Dukes2004-04-134-0/+14
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@730 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* when doing signal functions (like sigaction) make sure it wasn't interrupted ↵Warren Dukes2004-04-136-14/+31
| | | | | by a signal (errno==EINTR) git-svn-id: https://svn.musicpd.org/mpd/trunk@729 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* add --only-update-db command line optionWarren Dukes2004-04-131-1/+14
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@728 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* rename all ascii/utf8 stuff to latin1/utf8Warren Dukes2004-04-135-31/+27
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@718 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* plug a potential memory leakWarren Dukes2004-04-131-1/+4
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@713 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* lots of fsCharset, utf8/ascii converting clean-up and robustness stuffWarren Dukes2004-04-137-40/+152
| | | | | | | 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
* fix a small booboo and add some debugging stuffWarren Dukes2004-04-132-3/+5
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@708 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* add my own utf8/ascii converters and utf8 validatorWarren Dukes2004-04-134-2/+132
| | | | | | 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
* volatile fun-nessWarren Dukes2004-04-125-33/+33
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@705 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* forgetting to increment playlist version after reading the dbWarren Dukes2004-04-122-0/+2
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@704 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* cleanup interface between interface.[ch] and command.[ch]Warren Dukes2004-04-123-53/+92
| | | | | | 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
* minor little tweak on reporting update statusWarren Dukes2004-04-121-1/+3
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@700 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* more volatile stuffWarren Dukes2004-04-112-6/+6
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@699 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* add volatile qualifiers to some shared mem buffer stuff, to enusre compilerWarren Dukes2004-04-113-20/+20
| | | | | doesn't optimize out order sensitive stuff git-svn-id: https://svn.musicpd.org/mpd/trunk@698 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* clean up signal handling using a polling method, from the genius that is ↵Warren Dukes2004-04-1111-89/+110
| | | | | mackstann git-svn-id: https://svn.musicpd.org/mpd/trunk@697 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* we no longer need to block signals in tag.c, since update is now doneWarren Dukes2004-04-111-22/+0
| | | | | in a seperate process git-svn-id: https://svn.musicpd.org/mpd/trunk@696 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* ok, fix some bug due to a child process dieing before the parent canWarren Dukes2004-04-113-6/+22
| | | | | 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
* incremental updates and command-list/update kung fuWarren Dukes2004-04-115-61/+217
| | | | | this needs some serious cleaning up and testing git-svn-id: https://svn.musicpd.org/mpd/trunk@692 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* more software volume tweeksWarren Dukes2004-04-111-2/+2
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@684 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* adjust scaling of software volumeWarren Dukes2004-04-115-19/+18
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@681 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* do while(wait3) for sighandlerWarren Dukes2004-04-111-2/+2
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@680 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* add --disable-audio configure optionWarren Dukes2004-04-114-7/+19
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@679 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* fix some snafoosWarren Dukes2004-04-113-4/+2
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@678 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* don't stop playlist on finishPlaylist()[DWarren Dukes2004-04-111-1/+0
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@677 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* update job id stuffWarren Dukes2004-04-112-3/+13
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@673 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* updating_db in status and some ideas for the TODO that i've already forgottenWarren Dukes2004-04-113-0/+10
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@669 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* make "update" command background/non-blockingWarren Dukes2004-04-117-26/+111
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@665 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* add --only-create-db option from msellsWarren Dukes2004-04-116-5/+27
| | | | | have SIGHUP cause rereading db file git-svn-id: https://svn.musicpd.org/mpd/trunk@663 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* work in prep of using msells/sbh's non-blocking update methodWarren Dukes2004-04-102-8/+96
| | | | | | | Here, i've made readDirectoryDB detect when stuff is deleted, added and updated. So after a update, and we call redDirectoryDB, we update the db instead of just adding stuff w/o "updating" and "deleting" stuff as neccessary. git-svn-id: https://svn.musicpd.org/mpd/trunk@659 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* ideas on how to make readDirectoryInfo and readSongInfo deal with alreadyWarren Dukes2004-04-102-0/+48
| | | | | | existing db stuff, and implement a new List function that will be very useful: insertInListBeforeNode() git-svn-id: https://svn.musicpd.org/mpd/trunk@657 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* don't report an error about not able to open device in audioErrorWarren Dukes2004-04-071-1/+0
| | | | | also, update TODO with ideas about non-blocking update git-svn-id: https://svn.musicpd.org/mpd/trunk@632 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* make default max playlist length be 16384. bumped up from 4096Warren Dukes2004-04-041-1/+1
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@602 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* when converting from bps -> kbps, divide by 1000, not 1024Warren Dukes2004-04-036-6/+6
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@592 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* use EXIT_SUCCESS and EXIT_FAILUREWarren Dukes2004-04-0215-87/+87
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@591 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* for alsa mixer default to Master element, not the first elementWarren Dukes2004-04-011-33/+25
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@583 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* move sys/types.h include in utils.c, so it works for FreeBSD, from MDRWarren Dukes2004-04-011-1/+1
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@581 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* need to include utils.h for my_usleepWarren Dukes2004-04-011-0/+1
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@579 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* use our own portable version of usleep using select()Warren Dukes2004-04-0111-23/+40
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@578 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* use 16-bit signed ints for storing positions in the ring bufferWarren Dukes2004-04-012-4/+9
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@576 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* lets cleanup some file type detection and not call stat() so muchWarren Dukes2004-03-314-60/+32
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@575 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* fix for loading playlists on platforms where char is unsigned (like PPC)Warren Dukes2004-03-311-1/+3
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@560 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* cleanup reading from interface, when argArrayLength returned by buffer2arrayWarren Dukes2004-03-312-3/+19
| | | | | is 0, we weren't dealing with this well at all! git-svn-id: https://svn.musicpd.org/mpd/trunk@559 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* forgot a ;Warren Dukes2004-03-271-1/+1
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@507 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* just to be carfile, make sure to null terminate when using strncpyWarren Dukes2004-03-273-2/+19
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@506 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* close audio device on pause, after we say we have paused, makes pause seemWarren Dukes2004-03-262-9/+2
| | | | | more responsive git-svn-id: https://svn.musicpd.org/mpd/trunk@504 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* put backWarren Dukes2004-03-251-1/+0
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@488 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* bsd seems to want sys/time.hWarren Dukes2004-03-251-0/+1
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@487 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* minor fix ups for typesWarren Dukes2004-03-251-4/+6
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@460 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* fix and detect differences between faad2 1.1 and 2.0Warren Dukes2004-03-253-14/+54
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@459 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* calculate song length more accuratelyWarren Dukes2004-03-241-1/+8
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@444 09075e82-0dd4-0310-85a5-a0d7c8717e4f