aboutsummaryrefslogtreecommitdiff
path: root/src/decoder_control.c
Commit message (Collapse)AuthorAge
* decoder: terminate decoder thread before MPD cleanupMax Kellermann2008-12-28
| | | | | | 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-08
| | | | | | 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-03
| | | | Renamed variables and functions.
* decoder: use bool for return values and flagsMax Kellermann2008-10-30
| | | | | 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-08
| | | | | When there are standardized headers, use these instead of the bloated os_compat.h.
* notify: removed the "Notify" typedefMax Kellermann2008-10-08
| | | | Typedefs shouldn't be used, use the bare struct names instead.
* song: converted typedef Song to struct songMax Kellermann2008-10-08
| | | | Again, a data type which can be forward-declared.
* notify: added notify_deinit()Max Kellermann2008-09-24
| | | | Destroy the mutex when it is not used anymore.
* moved code to pc_init(), dc_init()Max Kellermann2008-08-26
|
* renamed decode.h to decoder_control.hMax Kellermann2008-08-26
|
* moved variable "dc" to decode.hMax Kellermann2008-08-26
| | | | | 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-26
The source "decoder_control.c" provides an API for controlling the decoder. This replaces various direct accesses to the DecoderControl struct.