summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-21 22:41:41 +0100
committerwm4 <wm4@nowhere>2016-01-22 00:25:44 +0100
commit04ec417d41a7792e08d4bd6c6ee24671c17425b4 (patch)
tree786b4c6a3a071148de55560481317c2d86656187 /player/core.h
parent536efe6faf30964b77e0dd724e1c824e351008e7 (diff)
downloadmpv-04ec417d41a7792e08d4bd6c6ee24671c17425b4.tar.bz2
mpv-04ec417d41a7792e08d4bd6c6ee24671c17425b4.tar.xz
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.)
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h2
1 files changed, 1 insertions, 1 deletions
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;