From 0f5ec05d8f4ae02262dc79a895bce3b465b376f2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 23 Nov 2013 21:22:17 +0100 Subject: audio: move decoder context from sh_audio into new struct Move all state that basically changes during decoding or is needed in order to manage decoding itself into a new struct (dec_audio). sh_audio (defined in stheader.h) is supposed to be the audio stream header. This should reflect the file headers for the stream. Putting the decoder context there is strange design, to say the least. --- mpvcore/player/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpvcore/player/main.c') diff --git a/mpvcore/player/main.c b/mpvcore/player/main.c index 4119e244c3..81e724252d 100644 --- a/mpvcore/player/main.c +++ b/mpvcore/player/main.c @@ -194,7 +194,7 @@ static bool handle_help_options(struct MPContext *mpctx) struct MPOpts *opts = mpctx->opts; int opt_exit = 0; if (opts->audio_decoders && strcmp(opts->audio_decoders, "help") == 0) { - struct mp_decoder_list *list = mp_audio_decoder_list(); + struct mp_decoder_list *list = audio_decoder_list(); mp_print_decoders(MSGT_CPLAYER, MSGL_INFO, "Audio decoders:", list); talloc_free(list); opt_exit = 1; -- cgit v1.2.3