From 04ec417d41a7792e08d4bd6c6ee24671c17425b4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 21 Jan 2016 22:41:41 +0100 Subject: audio: refactor: move MPContext.ao_buffer field It doesn't need to be part of the big context, but is strictly part of shuffling data from the audio filters to audio output, and thus belongs into ao_chain. It also turns out that clearing it in clear_audio_output_buffers() is completely redundant. (Of course ao_buffer is an abomination in the first place and shouldn't exist at all.) --- player/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/core.h') diff --git a/player/core.h b/player/core.h index dc6c1f3e2b..879470724e 100644 --- a/player/core.h +++ b/player/core.h @@ -182,6 +182,7 @@ struct ao_chain { struct af_stream *af; struct ao *ao; + struct mp_audio_buffer *ao_buffer; // 1-element input frame queue. struct mp_audio *input_frame; @@ -296,7 +297,6 @@ typedef struct MPContext { struct mixer *mixer; struct ao *ao; struct mp_audio *ao_decoder_fmt; // for weak gapless audio check - struct mp_audio_buffer *ao_buffer; // queued audio; passed to ao_play() later struct ao_chain *ao_chain; struct vo_chain *vo_chain; -- cgit v1.2.3