summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-01 15:39:52 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-01 15:39:52 +0200
commit76a27d6a8ffcc8d6ca608e674a78115cdf14b6ec (patch)
tree801dc43105be2d5e36124f02359c48cdc2805abb /deadbeef.h
parentddfbdc8c68cb2c8ebc65d4f4576dbc1eb270c209 (diff)
improved decoder API to be able to interrupt .init at any moment
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 723ee64f..23e05961 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -565,8 +565,11 @@ typedef struct DB_fileinfo_s {
// decoder plugin
typedef struct DB_decoder_s {
DB_plugin_t plugin;
+
+ DB_fileinfo_t *(*open) (void);
+
// init is called to prepare song to be started
- DB_fileinfo_t *(*init) (DB_playItem_t *it);
+ int (*init) (DB_fileinfo_t *info, DB_playItem_t *it);
// free is called after decoding is finished
void (*free) (DB_fileinfo_t *info);