summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-05-26 08:40:46 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-05-26 08:41:24 +0200
commitb0bb395576b568638c0de10522cbe3aba1623cac (patch)
treec42c1a5899f6a4e0e4f3672c282b0397c2f5b5ad
parentf9da2720ae15536ef31ec3c7cefd7a8332fe41e8 (diff)
downloadspice-b0bb395576b568638c0de10522cbe3aba1623cac.tar.gz
spice-b0bb395576b568638c0de10522cbe3aba1623cac.tar.xz
spice-b0bb395576b568638c0de10522cbe3aba1623cac.zip
sound: code style fixups
-rw-r--r--server/snd_worker.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/snd_worker.c b/server/snd_worker.c
index e8d67153..2deb8a3a 100644
--- a/server/snd_worker.c
+++ b/server/snd_worker.c
@@ -1012,8 +1012,9 @@ static void snd_set_playback_peer(Channel *channel, RedsStreamContext *peer, int
SPICE_AUDIO_DATA_MODE_RAW;
on_new_playback_channel(worker);
- if (worker->active)
+ if (worker->active) {
spice_server_playback_start(st->sin);
+ }
snd_playback_send(worker->connection);
return;
@@ -1171,8 +1172,9 @@ static void snd_set_record_peer(Channel *channel, RedsStreamContext *peer, int m
record_channel->celt_decoder = celt_decoder;
on_new_record_channel(worker);
- if (worker->active)
+ if (worker->active) {
spice_server_record_start(st->sin);
+ }
snd_record_send(worker->connection);
return;