[mime-type] Request the mime-data for the source surface, not ourselves!

Fixup a typo I introduced that caused us to request the jpeg data for the
destination surface and not the source.
This commit is contained in:
Chris Wilson 2008-11-04 12:53:15 +00:00
parent aa616abc9a
commit 282d774427
2 changed files with 3 additions and 4 deletions

View file

@ -1563,7 +1563,7 @@ _cairo_pdf_surface_emit_jpeg_image (cairo_pdf_surface_t *surface,
unsigned int mime_data_length;
cairo_jpeg_info_t info;
cairo_surface_get_mime_data (&surface->base, CAIRO_MIME_TYPE_JPEG,
cairo_surface_get_mime_data (source, CAIRO_MIME_TYPE_JPEG,
&mime_data, &mime_data_length);
if (mime_data == NULL)
return CAIRO_INT_STATUS_UNSUPPORTED;

View file

@ -2130,11 +2130,10 @@ _cairo_ps_surface_emit_jpeg_image (cairo_ps_surface_t *surface,
unsigned int mime_data_length;
cairo_jpeg_info_t info;
cairo_surface_get_mime_data (&surface->base, CAIRO_MIME_TYPE_JPEG,
cairo_surface_get_mime_data (source, CAIRO_MIME_TYPE_JPEG,
&mime_data, &mime_data_length);
if (mime_data == NULL) {
if (mime_data == NULL)
return CAIRO_INT_STATUS_UNSUPPORTED;
}
status = _cairo_jpeg_get_info (mime_data, mime_data_length, &info);
if (status)