Max Kellermann 
							
						 
					 
					
						
						
							
						
						8dc92ad284 
					 
					
						
						
							
							log: deprecated "error_file" option  
						
						... 
						
						
						
						Removed the "error_file" option.  There is only one log file now.  If
a user wants to see only the errors, he should configure a log_level. 
						
						
					 
					
						2008-12-28 19:48:52 +01:00 
						 
				 
			
				
					
						
							
							
								Viliam Mateicka 
							
						 
					 
					
						
						
							
						
						d838a1ad24 
					 
					
						
						
							
							decoder: new plugin using modplug library  
						
						
						
						
					 
					
						2008-12-28 17:11:18 +01:00 
						 
				 
			
				
					
						
							
							
								Pauli Virtanen 
							
						 
					 
					
						
						
							
						
						65b18644e1 
					 
					
						
						
							
							Add RVA2 tag support to MPD  
						
						... 
						
						
						
						This patch adds RVA2 (relative volume adjustment) tag
support to mpd, as a fallback if no replaygain tags are
found. The code is almost directly from madplay (GPL).
RVA2 tags are generated for example by the "normalize" utility.
Updated by: Avuton Olrich <avuton@gmail.com > 
						
						
					 
					
						2008-12-28 13:02:34 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						ed9668f638 
					 
					
						
						
							
							notify: use GLib locking  
						
						... 
						
						
						
						Use GLib locking (GMutex, GCond) instead of pthread because GLib is
more portable, e.g. on mingw32. 
						
						
					 
					
						2008-12-27 20:56:06 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						e8c44782d0 
					 
					
						
						
							
							output_control: no static "notify" initialization  
						
						... 
						
						
						
						Don't use NOTIFY_INITIALIZER to initialize audio_output_client_notify. 
						
						
					 
					
						2008-12-27 20:53:52 +01:00 
						 
				 
			
				
					
						
							
							
								Viliam Mateicka 
							
						 
					 
					
						
						
							
						
						b2fc0ee274 
					 
					
						
						
							
							cmdline: fixed option_no_createdb usage  
						
						
						
						
					 
					
						2008-12-27 20:16:32 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						83fc948008 
					 
					
						
						
							
							cmdline: use g_build_filename() for ~/.mpdconf  
						
						... 
						
						
						
						Build the path with g_build_filename().  Also use g_get_home_dir() and
g_file_test(). 
						
						
					 
					
						2008-12-27 19:46:43 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						f5ff00bba4 
					 
					
						
						
							
							cmdline: use GLib's option parser  
						
						... 
						
						
						
						Eliminate duplicated code.  The GLib code is much more mature than
MPD's custom parser. 
						
						
					 
					
						2008-12-27 19:36:03 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						357712c8f3 
					 
					
						
						
							
							cmdline: use gboolean instead of int  
						
						... 
						
						
						
						Prepare for the migration to the GLib option parser, which uses
gboolean for flags. 
						
						
					 
					
						2008-12-27 19:35:30 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						786bb8cc33 
					 
					
						
						
							
							moved command line parser to cmdline.c  
						
						
						
						
					 
					
						2008-12-27 19:03:33 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						cc3b6c2f5b 
					 
					
						
						
							
							audiofile: don't close onput stream in libaudiofile destroy()  
						
						... 
						
						
						
						The input_stream object should only be closed by the MPD core
(i.e. decoder_thread.c / decoder_run()).  A decoder plugin which
attempts to close it will result in a segmentation fault. 
						
						
					 
					
						2008-12-27 14:34:51 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						0fe0425dee 
					 
					
						
						
							
							disable archive API without plugins  
						
						... 
						
						
						
						When there are no archive plugins, we do not need the archive API at
all.  Drop all its overhead. 
						
						
					 
					
						2008-12-27 14:33:41 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						9220e0edff 
					 
					
						
						
							
							Merge branch 'experimental' of git://git.musicpd.org/metyl/mpd  
						
						... 
						
						
						
						Conflicts:
	configure.ac
	src/ls.h
	src/output/shout_plugin.c 
						
						
					 
					
						2008-12-27 13:34:51 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						1bd3cde062 
					 
					
						
						
							
							playlist: fix stored playlist modifications with absolute paths  
						
						... 
						
						
						
						When save_absolute_paths_in_playlists was enabled in mpd.conf, MPD
broke all playlists when manipulated using the "playlistdelete"
command.  The reason was that map_directory_child_fs() was used, which
doesn't accept slashes in the file name.  Use the new map_uri_fs()
function instead. 
						
						
					 
					
						2008-12-24 22:04:24 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						a94e59ca21 
					 
					
						
						
							
							stored_playlist: fix integer overflow in length estimation  
						
						... 
						
						
						
						With a large maximum playlist length, the integer multiplication
"playlist_max_length * MPD_PATH_MAX" may overflow.  Change that to a
division.  This was not a dangerous bug, since it was only used for
a quick estimate. 
						
						
					 
					
						2008-12-24 17:40:41 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						7f98ba24c7 
					 
					
						
						
							
							ffmpeg: case AV_NOPTS_VALUE to int64_t  
						
						... 
						
						
						
						The old code casted it to a 32 bit integer, which cut off bits.
AVFormatContext.duration is a int64_t, so use this type. 
						
						
					 
					
						2008-12-24 11:56:53 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						82ef85a309 
					 
					
						
						
							
							ffmpeg: don't assign "0" to pointer  
						
						... 
						
						
						
						Use NULL instead.  Found by sparse. 
						
						
					 
					
						2008-12-24 11:49:37 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						fefd3d6fb7 
					 
					
						
						
							
							Makefile.am: fix sparse invocation  
						
						... 
						
						
						
						Added missing includes. 
						
						
					 
					
						2008-12-24 11:49:09 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						fc723803a4 
					 
					
						
						
							
							mp3: "tag" argument is unused when libid3tag is disabled  
						
						... 
						
						
						
						Add G_GNUC_UNUSED attributes. 
						
						
					 
					
						2008-12-24 11:07:58 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						4716ef1014 
					 
					
						
						
							
							listen: "port" argument is unused when TCP support is disabled  
						
						... 
						
						
						
						Add a G_GNUC_UNUSED attribute. 
						
						
					 
					
						2008-12-24 11:07:58 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						0d9d82a932 
					 
					
						
						
							
							pcm_utils: check pcm_convert()==0  
						
						... 
						
						
						
						It is illegal to pass an empty audio buffer around.  pcm_resample()
sometimes seems to result in 0 samples, maybe related to
libsamplerate.  To work around that problem, add special checks after
both pcm_convert() invocations.  Removed the pcm_resample()==0 checks
from pcm_convert(). 
						
						
					 
					
						2008-12-24 03:08:39 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						d2d11d70a8 
					 
					
						
						
							
							client: always attempt to flush deferred buffers  
						
						... 
						
						
						
						When a response is very long (e.g. a large playlist > 100k songs),
most of it will end up in the deferred buffers.  Filling the deferred
queue is very expensive currently, because a new buffer is allocated
for every client_write() operation.  This may lead to long delays, and
the client might give up and disconnect meanwhile.  This patch makes
MPD attempt to flush the deferred queue as often as possible, to work
around this problem.  Due to the MPD 0.14 code freeze, we should not
optimize the buffering code now. 
						
						
					 
					
						2008-12-24 03:00:08 +01:00 
						 
				 
			
				
					
						
							
							
								Viliam Mateicka 
							
						 
					 
					
						
						
							
						
						d96cda95a1 
					 
					
						
						
							
							shout: fixed bad error message printout  
						
						
						
						
					 
					
						2008-12-23 18:05:25 +01:00 
						 
				 
			
				
					
						
							
							
								Viliam Mateicka 
							
						 
					 
					
						
						
							
						
						4674d0442a 
					 
					
						
						
							
							shout: fixed bad error message printout  
						
						
						
						
					 
					
						2008-12-23 18:00:37 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						3b2a752d0e 
					 
					
						
						
							
							Merge branch 'http_buffer_remove' of git://git.musicpd.org/avuton/mpd  
						
						
						
						
					 
					
						2008-12-21 19:40:06 +01:00 
						 
				 
			
				
					
						
							
							
								Avuton Olrich 
							
						 
					 
					
						
						
							
						
						e75e40085f 
					 
					
						
						
							
							Remove obsolete http_buffer* stuff that went away with the new curl backend.  
						
						
						
						
					 
					
						2008-12-20 22:16:02 -08:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						bfaaf425c2 
					 
					
						
						
							
							log: map log level "SECURE" to GLib's "INFO"  
						
						... 
						
						
						
						Make "secure" a log level different from "default".  "secure" should be
right between "default" and "verbose".  Map "default" to Glib's
"MESSAGE" log level. 
						
						
					 
					
						2008-12-20 17:26:49 +01:00 
						 
				 
			
				
					
						
							
							
								Emanuele Giaquinta 
							
						 
					 
					
						
						
							
						
						213c021eac 
					 
					
						
						
							
							Remove useless statement.  
						
						
						
						
					 
					
						2008-12-17 16:49:33 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						5d56b6ced8 
					 
					
						
						
							
							player_control: check if errored_song is set  
						
						... 
						
						
						
						getPlayerErrorStr() assumes that pc.errored_song is set when an error
occured.  Since the song may have been deleted meanwhile, add a NULL
check. 
						
						
					 
					
						2008-12-17 16:46:12 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						13192546a8 
					 
					
						
						
							
							playlist: clear pc.errored_song on delete  
						
						... 
						
						
						
						When a (remote) song is deleted from the playlist, there may still be
a reference to it in pc.errored_song.  Clear this reference. 
						
						
					 
					
						2008-12-17 16:45:49 +01:00 
						 
				 
			
				
					
						
							
							
								Emanuele Giaquinta 
							
						 
					 
					
						
						
							
						
						25c04a97d3 
					 
					
						
						
							
							Remove useless computation. After the pthread_cond_wait loop there are at least MIN(od->bufferSize, size) free bytes in the buffer. Thus MIN(od->bufferSize - od->len, size) is always equal to MIN(od->bufferSize, size).  
						
						
						
						
					 
					
						2008-12-17 15:56:43 +01:00 
						 
				 
			
				
					
						
							
							
								Emanuele Giaquinta 
							
						 
					 
					
						
						
							
						
						c584d6b087 
					 
					
						
						
							
							Remove useless statement, curpos is initialized at the beginning of the loop.  
						
						
						
						
					 
					
						2008-12-17 15:56:43 +01:00 
						 
				 
			
				
					
						
							
							
								Emanuele Giaquinta 
							
						 
					 
					
						
						
							
						
						c36a6b0aee 
					 
					
						
						
							
							Factor computation.  
						
						
						
						
					 
					
						2008-12-17 15:56:43 +01:00 
						 
				 
			
				
					
						
							
							
								Emanuele Giaquinta 
							
						 
					 
					
						
						
							
						
						a4f0c7b457 
					 
					
						
						
							
							Use MIN.  
						
						
						
						
					 
					
						2008-12-17 15:56:43 +01:00 
						 
				 
			
				
					
						
							
							
								Emanuele Giaquinta 
							
						 
					 
					
						
						
							
						
						df80ae86ee 
					 
					
						
						
							
							Call CloseComponent after AudioUnitUninitialize.  
						
						
						
						
					 
					
						2008-12-17 15:56:43 +01:00 
						 
				 
			
				
					
						
							
							
								Viliam Mateicka 
							
						 
					 
					
						
						
							
						
						37796699cf 
					 
					
						
						
							
							archiveapi: archive plugin for ISO files  
						
						
						
						
					 
					
						2008-12-16 21:48:26 +01:00 
						 
				 
			
				
					
						
							
							
								Viliam Mateicka 
							
						 
					 
					
						
						
							
						
						ddcf0a4078 
					 
					
						
						
							
							archiveapi: archive plugin for ZIP files  
						
						
						
						
					 
					
						2008-12-16 21:46:11 +01:00 
						 
				 
			
				
					
						
							
							
								Viliam Mateicka 
							
						 
					 
					
						
						
							
						
						98fd9b7da8 
					 
					
						
						
							
							archiveapi: archive plugin for BZ2 files  
						
						
						
						
					 
					
						2008-12-16 21:45:59 +01:00 
						 
				 
			
				
					
						
							
							
								Viliam Mateicka 
							
						 
					 
					
						
						
							
						
						77946a901f 
					 
					
						
						
							
							update: adding archive updating related code  
						
						
						
						
					 
					
						2008-12-16 21:42:42 +01:00 
						 
				 
			
				
					
						
							
							
								Viliam Mateicka 
							
						 
					 
					
						
						
							
						
						455b39fa26 
					 
					
						
						
							
							song: adding support for songs in archives  
						
						
						
						
					 
					
						2008-12-16 21:42:42 +01:00 
						 
				 
			
				
					
						
							
							
								Viliam Mateicka 
							
						 
					 
					
						
						
							
						
						4d604a7540 
					 
					
						
						
							
							ls: adding get_archive_by_suffix() function  
						
						
						
						
					 
					
						2008-12-16 21:42:42 +01:00 
						 
				 
			
				
					
						
							
							
								Viliam Mateicka 
							
						 
					 
					
						
						
							
						
						c73ebac4af 
					 
					
						
						
							
							new archive api, input_archive stream  
						
						
						
						
					 
					
						2008-12-16 21:42:34 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						5aa1afe693 
					 
					
						
						
							
							command: reject unsupported URI schemes  
						
						... 
						
						
						
						When a client-specified URI has a scheme which is not supported, do
not try to open it as a local file, but provide a meaningful error
message. 
						
						
					 
					
						2008-12-16 21:23:29 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						c50115f9a2 
					 
					
						
						
							
							ls: added uri_has_scheme()  
						
						... 
						
						
						
						uri_has_scheme() checks if an URI contains the sub string "://", which
makes MPD assume that it is a remote URI. 
						
						
					 
					
						2008-12-16 21:22:10 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						e0be4400cf 
					 
					
						
						
							
							ls: don't return suffix from parent directory name  
						
						... 
						
						
						
						When a file had no file name extension, getSuffix() could return the
extension of the parent directory (if it had one). 
						
						
					 
					
						2008-12-16 21:22:08 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						b765c62f2f 
					 
					
						
						
							
							ls: reimplement getSuffix() with strrchr()  
						
						... 
						
						
						
						The old getSuffix() code was quite wasteful, and can be replaced
completely with strrchr(). 
						
						
					 
					
						2008-12-16 21:20:09 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						d0024c077d 
					 
					
						
						
							
							ls: use bool  
						
						... 
						
						
						
						Use the C99 "bool" data type instead of "int". 
						
						
					 
					
						2008-12-16 21:18:33 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						1d82edc6d3 
					 
					
						
						
							
							ls: make printRemoteUrlHandlers() return void  
						
						... 
						
						
						
						printRemoteUrlHandlers() cannot fail, and does not need a return
value. 
						
						
					 
					
						2008-12-16 21:18:31 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						3287726736 
					 
					
						
						
							
							ls: removed isValidRemoteUtf8Url()  
						
						... 
						
						
						
						The function didn't do anything useful, it was just several lines
obfuscating that it was only forwarding isRemoteUrl()'s return value. 
						
						
					 
					
						2008-12-16 21:15:20 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						3d4fb9a9a6 
					 
					
						
						
							
							ls: don't include time.h  
						
						... 
						
						
						
						ls.h does not need time.h, do not include it. 
						
						
					 
					
						2008-12-16 21:05:02 +01:00