From 54aff331184899bbc69d251b94b00db3c61c0a2e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 20 Dec 2017 18:43:56 +0100 Subject: [PATCH] player/Thread: reorder attributes to reduce padding --- src/player/Thread.cxx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index eeb406fce..af40654e8 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -52,6 +52,18 @@ class Player { MusicPipe *pipe; + /** + * the song currently being played + */ + std::unique_ptr song; + + /** + * The tag of the "next" song during cross-fade. It is + * postponed, and sent to the output thread when the new song + * really begins. + */ + std::unique_ptr cross_fade_tag; + /** * are we waiting for buffered_before_play? */ @@ -87,11 +99,6 @@ class Player { */ bool output_open = false; - /** - * the song currently being played - */ - std::unique_ptr song; - /** * Is cross-fading to the next song enabled? */ @@ -126,13 +133,6 @@ class Player { */ unsigned cross_fade_chunks = 0; - /** - * The tag of the "next" song during cross-fade. It is - * postponed, and sent to the output thread when the new song - * really begins. - */ - std::unique_ptr cross_fade_tag; - /** * The current audio format for the audio outputs. */