From 9f4820f6ec1721dc73335cb64b5a5e63170bf379 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 23 Nov 2013 21:26:04 +0100 Subject: audio: remove ad_driver.preinit This never had any real use. Get rid of dec_audio.initialized too, as it's redundant. --- audio/decode/ad_spdif.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'audio/decode/ad_spdif.c') diff --git a/audio/decode/ad_spdif.c b/audio/decode/ad_spdif.c index e0c0e88671..059022e5e3 100644 --- a/audio/decode/ad_spdif.c +++ b/audio/decode/ad_spdif.c @@ -72,11 +72,6 @@ static void uninit(struct dec_audio *da) } } -static int preinit(struct dec_audio *da) -{ - return 1; -} - static int init(struct dec_audio *da, const char *decoder) { struct spdifContext *spdif_ctx = talloc_zero(NULL, struct spdifContext); @@ -254,7 +249,6 @@ static void add_decoders(struct mp_decoder_list *list) const struct ad_functions ad_spdif = { .name = "spdif", .add_decoders = add_decoders, - .preinit = preinit, .init = init, .uninit = uninit, .control = control, -- cgit v1.2.3