decoder_control: replace dc_init() with dc_new()

dc_new() allocates the object and returns it.  dc_free() frees it
(replaces dc_deinit()).
This commit is contained in:
Max Kellermann
2011-01-10 20:46:04 +01:00
parent b6995ca011
commit b77e62260a
3 changed files with 17 additions and 15 deletions

View File

@@ -105,11 +105,12 @@ struct decoder_control {
char *mixramp_prev_end;
};
void
dc_init(struct decoder_control *dc, struct player_control *pc);
G_GNUC_MALLOC
struct decoder_control *
dc_new(struct player_control *pc);
void
dc_deinit(struct decoder_control *dc);
dc_free(struct decoder_control *dc);
/**
* Locks the #decoder_control object.