[Spice-commits] server/sound.cpp

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 16 07:56:55 UTC 2020


 server/sound.cpp |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

New commits:
commit 87b6b1993e4e17f8e2eadaa787aa5219730a7510
Author: Frediano Ziglio <freddy77 at gmail.com>
Date:   Tue May 5 03:34:12 2020 +0100

    sound: Make receive_buf field private
    
    Signed-off-by: Frediano Ziglio <freddy77 at gmail.com>

diff --git a/server/sound.cpp b/server/sound.cpp
index 859c9c8b..9f9aed0b 100644
--- a/server/sound.cpp
+++ b/server/sound.cpp
@@ -90,9 +90,6 @@ public:
 
     uint32_t command;
 
-    /* we don't expect very big messages so don't allocate too much
-     * bytes, data will be cached in RecordChannelClient::samples */
-    uint8_t receive_buf[SND_CODEC_MAX_FRAME_BYTES + 64];
     PersistentPipeItem persistent_pipe_item;
 
     virtual void on_message_done() {};
@@ -103,6 +100,11 @@ public:
     virtual uint8_t *alloc_recv_buf(uint16_t type, uint32_t size) override;
     virtual void release_recv_buf(uint16_t type, uint32_t size, uint8_t *msg) override;
     virtual void migrate() override;
+
+private:
+    /* we don't expect very big messages so don't allocate too much
+     * bytes, data will be cached in RecordChannelClient::samples */
+    uint8_t receive_buf[SND_CODEC_MAX_FRAME_BYTES + 64];
 };
 
 static void snd_playback_alloc_frames(PlaybackChannelClient *playback);


More information about the Spice-commits mailing list