aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_control.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* decoder_control: remove MixRamp debug messagesMax Kellermann2012-09-251-3/+0
| | | | | These are confusing, and since MixRamp development has ceased, not useful to anybody.
* Merge branch 'v0.16.x'Max Kellermann2011-10-061-0/+3
|\ | | | | | | | | | | | | | | Conflicts: configure.ac src/player_control.c src/player_thread.c src/playlist_song.c
| * decoder_control: add attributes start_ms, end_msMax Kellermann2011-10-051-0/+3
| | | | | | | | | | Don't read song.start_ms and song.end_ms, let the player thread manage this logic instead.
* | copyright year 2011Max Kellermann2011-01-291-1/+1
| |
* | decoder_control: store GCond object, not a player_controlMax Kellermann2011-01-101-4/+3
| | | | | | | | | | | | Remove the decoder dependency on player_control. All player_control was needed for is to signal the player thread, and we can do that with a simple GCond as well.
* | decoder_control: remove unused function dc_command_wait()Max Kellermann2011-01-101-8/+0
| | | | | | | | Only dc_command_wait_locked() is really being used.
* | decoder_control: replace dc_init() with dc_new()Max Kellermann2011-01-101-6/+8
| | | | | | | | | | dc_new() allocates the object and returns it. dc_free() frees it (replaces dc_deinit()).
* | player_control: removed the global variable "pc"Max Kellermann2011-01-101-2/+3
|/ | | | | | | Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
* Merge release 0.15.14 from branch 'v0.15.x'Max Kellermann2010-11-071-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: NEWS configure.ac src/decoder_control.c src/decoder_control.h src/input/rewind_input_plugin.c src/output_control.c src/output_thread.c src/player_thread.c
| * decoder_control: pass music_pipe to dc_start()Max Kellermann2010-11-051-4/+11
| | | | | | | | More abstraction for decoder_control.pipe.
* | decoder_control: use g_free() to manage mixramp allocationsMax Kellermann2010-09-231-13/+6
| | | | | | | | | | Be consistent with the rest of MPD, and don't use the non-portable header "malloc.h".
* | mixramp: Adjust MixRamp threshold to account for ReplayGain.Tim Phipps2010-05-081-0/+2
| |
* | Add support for MixRamp tagsTim Phipps2010-03-211-0/+50
| | | | | | | | | | Adds mixrampdb and mixrampdelay commands. Reads MIXRAP_START and MIXRAMP_END tags from FLAC files and overlaps instead of crossfading.
* | Update copyright notices.Avuton Olrich2009-12-311-1/+1
| |
* | include config.h in all sourcesMax Kellermann2009-11-121-0/+1
| | | | | | | | | | | | After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
* | decoder_control: pass pipe and buffer to dc_start()Max Kellermann2009-11-031-2/+6
| | | | | | | | Don't access decoder_control attributes directly.
* | decoder_control: merge next_song and current_songMax Kellermann2009-11-031-1/+1
| | | | | | | | These two variables are redundant, we need only one of them.
* | player_thread: don't start the decoder asynchronouslyMax Kellermann2009-11-031-10/+0
| | | | | | | | | | The START command returns without blocking; we don't need the asynchronous decoder start anymore.
* | {decoder,player}_control: removed duplicate wakeupsMax Kellermann2009-11-021-3/+2
| | | | | | | | | | | | Don't wake up the target thread in every iteration of the wait() loop. Waking it up once, right after the command has been set, must be enough.
* | decoder_control: removed the global variable "dc"Max Kellermann2009-10-311-59/+62
| | | | | | | | | | Allocate a decoder_control object where needed, and pass it around. This will allow more than one decoder thread one day.
* | player_control: protect command, state, error with a mutexMax Kellermann2009-10-311-20/+16
| | | | | | | | | | | | Use GMutex/GCond instead of the notify library. Manually lock the player_control object before accessing the protected attributes. Use the GCond object to notify the player thread and the main thread.
* | decoder_control: protect command, state with a mutexMax Kellermann2009-08-131-10/+42
|/ | | | | | Replace decoder_control.notify with decoder_control.mutex and decoder_control.cond. Lock the mutex on all accesses to decoder_control.command and decoder_control.state.
* decoder_control: properly cancel an existing command in dc_stop()Max Kellermann2009-04-251-2/+8
| | | | | | | When the decoder thread has a pending command, send the STOP command to cancel this command. Send STOP again if the decoder thread is still running after that, just in case the decoder thread has executed the previous command (which was overwritten).
* decoder: added assertions on dc.pipeMax Kellermann2009-04-251-0/+2
| | | | | dc.pipe must be non-NULL while the decoder thread is running. Ensure that with a load of assertions.
* player_thread: wait for decoder before seekingMax Kellermann2009-03-251-0/+1
| | | | | | | When the decoder initialization has not been completed yet, all calls to dc_seek() will fail, because dc.seekable is not initialized yet. Wait for the decoder to complete its initialization, i.e. until it has called decoder_initialized().
* all: Update copyright header.Avuton Olrich2009-03-131-6/+7
| | | | | | | | This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
* decoder_control: added decoder_control.threadMax Kellermann2009-01-251-2/+7
| | | | | decoder_control.thread contains the handle of the decoder thread, or NULL if the decoder thread isn't running.
* decoder: terminate decoder thread before MPD cleanupMax Kellermann2008-12-281-0/+7
| | | | | | When MPD exits, it should manually free all resources in use, to allow easy memory leak debugging. Make the decoder thread terminate during that.
* decoder: converted dc.error to a dc.state valueMax Kellermann2008-11-081-5/+3
| | | | | | The player did not care about the exact error value, it only checked whether an error has occured. This could fit well into decoder_control.state - introduce a new state "DECODE_STATE_ERROR".
* decoder: no CamelCaseMax Kellermann2008-11-031-3/+3
| | | | Renamed variables and functions.
* decoder: use bool for return values and flagsMax Kellermann2008-10-301-5/+5
| | | | | Don't return 0/-1 on success/error, but true/false. Instead of int, use bool for storing flags.
* don't include os_compat.hMax Kellermann2008-10-081-0/+2
| | | | | When there are standardized headers, use these instead of the bloated os_compat.h.
* notify: removed the "Notify" typedefMax Kellermann2008-10-081-5/+9
| | | | Typedefs shouldn't be used, use the bare struct names instead.
* song: converted typedef Song to struct songMax Kellermann2008-10-081-2/+4
| | | | Again, a data type which can be forward-declared.
* notify: added notify_deinit()Max Kellermann2008-09-241-0/+5
| | | | Destroy the mutex when it is not used anymore.
* moved code to pc_init(), dc_init()Max Kellermann2008-08-261-0/+8
|
* renamed decode.h to decoder_control.hMax Kellermann2008-08-261-1/+1
|
* moved variable "dc" to decode.hMax Kellermann2008-08-261-1/+2
| | | | | Now that "dc" is available here, we don't have to pass it to decoder_is_idle() and decoder_is_starting() anymore.
* added decoder_control.cMax Kellermann2008-08-261-0/+82
The source "decoder_control.c" provides an API for controlling the decoder. This replaces various direct accesses to the DecoderControl struct.