[spice-server,3/3] fixup! reds: Add ability to query the video-codecs currently enabled

Submitted by Frediano Ziglio on July 5, 2019, 8:22 a.m.

Details

Message ID 20190705082259.10991-3-fziglio@redhat.com
State Superseded
Headers show
Series "reds: Add ability to query the video-codecs currently enabled" ( rev: 4 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio July 5, 2019, 8:22 a.m.
Do not add separator at the end of string
---
 server/video-stream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/server/video-stream.c b/server/video-stream.c
index d22784f5f..6aa859a02 100644
--- a/server/video-stream.c
+++ b/server/video-stream.c
@@ -987,7 +987,7 @@  char *video_codecs_to_string(GArray *video_codecs, const char *sep)
         RedVideoCodec codec = g_array_index(video_codecs, RedVideoCodec, i);
         char *codec_name = reds_get_video_codec_fullname(&codec);
 
-        g_string_append_printf(msg, "%s%s", codec_name, sep);
+        g_string_append_printf(msg, "%s%s", i ? sep : "", codec_name);
         g_free(codec_name);
     }