[Spice-devel] [PATCH spice-server 3/3] fixup! reds: Add ability to query the video-codecs currently enabled
Frediano Ziglio
fziglio at redhat.com
Fri Jul 5 08:22:59 UTC 2019
Do not add separator at the end of string
---
server/video-stream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
--
2.20.1
More information about the Spice-devel
mailing list