summaryrefslogtreecommitdiffstats
path: root/audio/decode/ad_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-23 21:26:04 +0100
committerwm4 <wm4@nowhere>2013-11-23 21:26:04 +0100
commit9f4820f6ec1721dc73335cb64b5a5e63170bf379 (patch)
tree9e65f7438d444021a32997518b328654be8e0b46 /audio/decode/ad_lavc.c
parent0e84dafdf084c7d9da30ef7b0e0b2ca05da68157 (diff)
downloadmpv-9f4820f6ec1721dc73335cb64b5a5e63170bf379.tar.bz2
mpv-9f4820f6ec1721dc73335cb64b5a5e63170bf379.tar.xz
audio: remove ad_driver.preinit
This never had any real use. Get rid of dec_audio.initialized too, as it's redundant.
Diffstat (limited to 'audio/decode/ad_lavc.c')
-rw-r--r--audio/decode/ad_lavc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c
index 8663d5fc32..5155faabc9 100644
--- a/audio/decode/ad_lavc.c
+++ b/audio/decode/ad_lavc.c
@@ -128,11 +128,6 @@ static const char *find_pcm_decoder(const struct pcm_map *map, int format,
return NULL;
}
-static int preinit(struct dec_audio *da)
-{
- return 1;
-}
-
static int setup_format(struct dec_audio *da)
{
struct priv *priv = da->priv;
@@ -404,7 +399,6 @@ static void add_decoders(struct mp_decoder_list *list)
const struct ad_functions ad_lavc = {
.name = "lavc",
.add_decoders = add_decoders,
- .preinit = preinit,
.init = init,
.uninit = uninit,
.control = control,