Max Kellermann
dfe235900f
configure.ac: check for archive libraries only if enabled
...
Don't bother to look for libbz2, libzzip and libiso9660 if the plugins
are disabled.
2008-12-29 10:01:33 +01:00
Max Kellermann
8a8fdfb0ad
configure.ac: removed pthread checks
...
We're now using GLib threading.
2008-12-29 08:20:19 +01:00
Viliam Mateicka
6ad7be9525
update: fixing empty filenames in archives
2008-12-29 07:26:17 +01:00
Thomas Jansen
c15ac57271
osx_plugin: migrate from pthread to glib threads
2008-12-28 22:09:42 +01:00
Thomas Jansen
36b8968e36
output: migrate from pthread to glib threads
2008-12-28 22:09:42 +01:00
Thomas Jansen
28128dc4e3
tag & tag_pool: migrate from pthread to glib threads
2008-12-28 22:09:42 +01:00
Thomas Jansen
ce5c22f4f4
condition: migrate from pthread to glib threads
2008-12-28 22:09:42 +01:00
Thomas Jansen
248cd50a20
update & main_notify: migrate from pthread to glib threads
2008-12-28 22:09:42 +01:00
Thomas Jansen
195cec505e
player_thread: migrate from pthread to glib threads
2008-12-28 22:09:38 +01:00
Thomas Jansen
c01ad37d3b
decoder_thread: migrate from pthread to glib threads
2008-12-28 22:09:33 +01:00
Thomas Jansen
bfb5657d6d
songvec: migrate from pthread to glib threads
2008-12-28 21:02:42 +01:00
Thomas Jansen
4ed895c799
dirvec: migrate from pthread to glib threads
2008-12-28 21:02:30 +01:00
Thomas Jansen
8332a70406
idle: migrate from pthread to glib threads
2008-12-28 21:02:14 +01:00
Thomas Jansen
5e3dc6946f
Include <pthread.h> where it is necessary only
2008-12-28 21:02:05 +01:00
Thomas Jansen
f31b4f46e1
Remove xpthread_* wrappers
2008-12-28 21:01:03 +01:00
Max Kellermann
1914e11466
conf: use GLib instead of utils.h/log.h
2008-12-28 19:54:49 +01:00
Max Kellermann
859aac7242
utils: removed myFgets()
...
Replaced myFgets() with fgets() + g_strchomp().
2008-12-28 19:54:49 +01:00
Max Kellermann
2598cdd868
buffer2array: use GLib's g_ascii_isspace()
...
g_ascii_isspace() includes \r and \n. This means that lines from a
text file don't have to be chopped prior to buffer2array().
2008-12-28 19:54:39 +01:00
Max Kellermann
4b3a055ffe
mikmod: use Glib instead of utils.h/log.h
2008-12-28 19:48:53 +01:00
Max Kellermann
4ca02bfcfc
mikmod: convert mod_Data.audio_buffer to a static array
...
Don't do two allocations for the mod_Data structure.
2008-12-28 19:48:53 +01:00
Max Kellermann
7f78ed5b98
log: use GLib logging
2008-12-28 19:48:53 +01:00
Max Kellermann
59cf77bbc8
log: don't keep log file open
...
The log file is duped to STDOUT_FILENO and STDERR_FILENO. No need to
keep another copy of it in out_fd all the time. We only need it once
once in setup_log_output().
2008-12-28 19:48:53 +01:00
Max Kellermann
8fe03b8bce
decoder: terminate decoder thread before MPD cleanup
...
When MPD exits, it should manually free all resources in use, to allow
easy memory leak debugging. Make the decoder thread terminate during
that.
2008-12-28 19:48:53 +01:00
Max Kellermann
c01aa53e6a
log: support syslog()
...
Allow logging to syslog if log_file is configured to "syslog".
2008-12-28 19:48:53 +01:00
Max Kellermann
c6cb611065
log: moved code to log_init_file()
...
Added log_init_file() and log_init_stdout(), preparing for other
logging targets.
2008-12-28 19:48:53 +01:00
Max Kellermann
d70c2e2285
log: merged initLog() and open_log_files().
...
The logging library currently has 3 constructor functions: initLog(),
open_log_files(), setup_log_output(), called in this order. Merged
the first two.
2008-12-28 19:48:53 +01:00
Max Kellermann
caf47f7893
log: moved code to parse_log_level()
2008-12-28 19:48:53 +01:00
Max Kellermann
5d2c59e3f1
log: use the GLogLevelFlags type
...
Declare log_threshold as GLogLevelFlags.
2008-12-28 19:48:53 +01:00
Max Kellermann
2c5885e9c7
log: don't manipulate the umask
...
If the user wants the log files with a specific mode, he has to start
MPD with the correct umask. Don't hard-code that.
This fixes a bug: when log cycling failed, MPD would not restore the
old umask.
2008-12-28 19:48:52 +01:00
Max Kellermann
8e9def1b5a
log: moved code to open_log_file()
...
Merged code from open_log_files() and cycle_log_files().
2008-12-28 19:48:52 +01:00
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
Avuton Olrich
4654bb4628
Update news with RVA2 and Audio archive support.
2008-12-28 13:02:41 +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
Viliam Mateicka
166d326950
configure.ac: fixed description to bzip2 compile option
2008-12-27 20:16:00 +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
Avuton Olrich
e18ded8ded
Add an "Archive support" section to the configure results screen.
2008-12-27 09:54:00 -08:00
Avuton Olrich
9ca7be9e82
Change configure time option to be bzip2 rather than bz2.
2008-12-27 09:50:37 -08:00
Avuton Olrich
dc0f779287
Fix text string to show bz2 rather than rar.
2008-12-27 09:49:27 -08: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
4c13a276c4
configure.ac: moved archive library checks to options
...
Don't split configure options and their implementation. Check for the
backend library before the AM_CONDITIONAL, otherwise Makefile.am will
compile the plugin although the library may not be available.
2008-12-27 13:45:17 +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
Qball Cow
0e7c67067b
Check for pkg-config before using it
2008-12-27 10:07:46 +01:00