aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_api.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:07 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:07 +0200
commit78c55e24324c881541a87cd0003c60f378a43d68 (patch)
tree58c98af2f47721e12b195e40b89f6986711083d4 /src/decoder_api.h
parent817a68b2b27dc65fb5fc550c83117832e8048c6f (diff)
downloadmpd-78c55e24324c881541a87cd0003c60f378a43d68.tar.gz
mpd-78c55e24324c881541a87cd0003c60f378a43d68.tar.xz
mpd-78c55e24324c881541a87cd0003c60f378a43d68.zip
added decoder_command_finished() to decoder_api.h
Some decoder commands are implemented in the decoder plugins, thus they need to have an API call to signal that their current command has been finished. Let them use the new decoder_command_finished() instead of the internal dc_command_finished().
Diffstat (limited to 'src/decoder_api.h')
-rw-r--r--src/decoder_api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/decoder_api.h b/src/decoder_api.h
index 5913a5961..980693362 100644
--- a/src/decoder_api.h
+++ b/src/decoder_api.h
@@ -106,6 +106,13 @@ void decoder_initialized(struct decoder * decoder,
enum decoder_command decoder_get_command(struct decoder * decoder);
/**
+ * Called by the decoder when it has performed the requested command
+ * (dc->command). This function resets dc->command and wakes up the
+ * player thread.
+ */
+void decoder_command_finished(struct decoder * decoder);
+
+/**
* This function is called by the decoder plugin when it has
* successfully decoded block of input data.
*