Avoid the following warning when build with disabled gstreamer: Spice-WARNING **: reds.c:3660:reds_set_video_codecs: spice: unsupported video encoder gstreamer --- server/reds.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/reds.c b/server/reds.c index 5daf9bd..5456d22 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3510,7 +3510,12 @@ err: } static const char default_renderer[] = "sw"; -static const char default_video_codecs[] = "spice:mjpeg;gstreamer:mjpeg;gstreamer:h264;gstreamer:vp8"; +static const char default_video_codecs[] = "spice:mjpeg;" +#if defined(HAVE_GSTREAMER_1_0) || defined(HAVE_GSTREAMER_0_10) + "gstreamer:mjpeg;gstreamer:h264;gstreamer:vp8"; +#else + ""; +#endif /* new interface */ SPICE_GNUC_VISIBLE SpiceServer *spice_server_new(void) -- 2.10.2 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel