diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2012-03-14 19:34:35 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2012-03-25 19:00:00 +0200 |
commit | b34fd7432d61b992446a3cd9c6f8eb7747ba0a76 (patch) | |
tree | 60a5b34a3e37177ea6a54da9fd8d2b475bfe9257 /server/jpeg_encoder.c | |
parent | 359fc1cb5dbbcf32132c3e8ee6f881a23deff684 (diff) | |
download | spice-b34fd7432d61b992446a3cd9c6f8eb7747ba0a76.tar.gz spice-b34fd7432d61b992446a3cd9c6f8eb7747ba0a76.tar.xz spice-b34fd7432d61b992446a3cd9c6f8eb7747ba0a76.zip |
Use the spice-common logging functions
It will abort by default for critical level messages. That behaviour
can be tuned at runtime.
Diffstat (limited to 'server/jpeg_encoder.c')
-rw-r--r-- | server/jpeg_encoder.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/jpeg_encoder.c b/server/jpeg_encoder.c index d0e2fc17..01732ffa 100644 --- a/server/jpeg_encoder.c +++ b/server/jpeg_encoder.c @@ -49,7 +49,7 @@ static void dest_mgr_init_destination(j_compress_ptr cinfo) &enc->dest_mgr.next_output_byte); if (enc->dest_mgr.free_in_buffer == 0) { - red_error("not enough space"); + spice_error("not enough space"); } } @@ -63,7 +63,7 @@ static boolean dest_mgr_empty_output_buffer(j_compress_ptr cinfo) &enc->dest_mgr.next_output_byte); if (enc->dest_mgr.free_in_buffer == 0) { - red_error("not enough space"); + spice_error("not enough space"); } enc->cur_image.out_size += enc->dest_mgr.free_in_buffer; return TRUE; @@ -110,7 +110,7 @@ static void convert_RGB16_to_RGB24(uint8_t *line, int width, uint8_t **out_line) uint8_t *out_pix; int x; - ASSERT(out_line && *out_line); + spice_assert(out_line && *out_line); out_pix = *out_line; @@ -127,7 +127,7 @@ static void convert_BGR24_to_RGB24(uint8_t *line, int width, uint8_t **out_line) int x; uint8_t *out_pix; - ASSERT(out_line && *out_line); + spice_assert(out_line && *out_line); out_pix = *out_line; @@ -145,7 +145,7 @@ static void convert_BGRX32_to_RGB24(uint8_t *line, int width, uint8_t **out_line uint8_t *out_pix; int x; - ASSERT(out_line && *out_line); + spice_assert(out_line && *out_line); out_pix = *out_line; @@ -167,7 +167,7 @@ static void convert_RGB24_to_RGB24(uint8_t *line, int width, uint8_t **out_line) if (lines == lines_end) { \ int n = jpeg->usr->more_lines(jpeg->usr, &lines); \ if (n <= 0) { \ - red_error("more lines failed\n"); \ + spice_error("more lines failed"); \ } \ lines_end = lines + n * stride; \ } \ @@ -226,7 +226,7 @@ int jpeg_encode(JpegEncoderContext *jpeg, int quality, JpegEncoderImageType type enc->cur_image.convert_line_to_RGB24 = convert_BGRX32_to_RGB24; break; default: - red_error("bad image type"); + spice_error("bad image type"); } enc->cinfo.image_width = width; |