summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2015-11-20 16:30:04 +0100
committerFrediano Ziglio <fziglio@redhat.com>2015-11-21 13:41:32 +0000
commitf5c109573f37fb60b86c5cbb3f1c9f7308ca363f (patch)
treec963b03f13b9389ebb8e62d13d22e07336467833 /server
parentd78b44ec264576c1e66730fd019bfbb99b89c148 (diff)
downloadspice-f5c109573f37fb60b86c5cbb3f1c9f7308ca363f.zip
spice-f5c109573f37fb60b86c5cbb3f1c9f7308ca363f.tar.gz
spice-f5c109573f37fb60b86c5cbb3f1c9f7308ca363f.tar.xz
stream: rename {red_stream_, }get_initial_bit_rate
Author: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server')
-rw-r--r--server/stream.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/stream.c b/server/stream.c
index 0d4a20a..6749f90 100644
--- a/server/stream.c
+++ b/server/stream.c
@@ -535,8 +535,7 @@ static void dcc_update_streams_max_latency(DisplayChannelClient *dcc, StreamAgen
dcc->streams_max_latency = new_max_latency;
}
-static uint64_t red_stream_get_initial_bit_rate(DisplayChannelClient *dcc,
- Stream *stream)
+static uint64_t get_initial_bit_rate(DisplayChannelClient *dcc, Stream *stream)
{
char *env_bit_rate_str;
uint64_t bit_rate = 0;
@@ -651,7 +650,7 @@ void dcc_create_stream(DisplayChannelClient *dcc, Stream *stream)
mjpeg_cbs.get_source_fps = red_stream_mjpeg_encoder_get_source_fps;
mjpeg_cbs.update_client_playback_delay = red_stream_update_client_playback_latency;
- initial_bit_rate = red_stream_get_initial_bit_rate(dcc, stream);
+ initial_bit_rate = get_initial_bit_rate(dcc, stream);
agent->mjpeg_encoder = mjpeg_encoder_new(initial_bit_rate, &mjpeg_cbs, agent);
} else {
agent->mjpeg_encoder = mjpeg_encoder_new(0, NULL, NULL);