summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-02-26 15:40:55 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2014-03-13 17:13:27 +0100
commit67be56ad8a6b10a5307939a700115d6be3fb8433 (patch)
tree9741e33f4c5e467942429bed3458099ffb3caede
parent7095563153af0e3481605eb5979ca8e6982d95cc (diff)
mjpeg: Don't warn on unsupported image formats
When trying to start mjpeg compression mode, mjpeg_encoder_start_frame() tests the image format as its only able to compress 24/32bpp images. On images with lower bit depths, we return MJPEG_ENCODER_FRAME_UNSUPPORTED to indicate this is not a format we can compress. However, this return goes with a spice_warning("unsupported format"). As the rest of the code can cope with this unsupported format by not doing mjpeg compression, it's nicer to downgrade this spice_warning() to spice_debug(). This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1070028
-rw-r--r--server/mjpeg_encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/mjpeg_encoder.c b/server/mjpeg_encoder.c
index 04b244e7..aea49646 100644
--- a/server/mjpeg_encoder.c
+++ b/server/mjpeg_encoder.c
@@ -796,7 +796,7 @@ int mjpeg_encoder_start_frame(MJpegEncoder *encoder, SpiceBitmapFmt format,
#endif
break;
default:
- spice_warning("unsupported format %d", format);
+ spice_debug("unsupported format %d", format);
return MJPEG_ENCODER_FRAME_UNSUPPORTED;
}