mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-30 22:38:12 +02:00
[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:
parent
aa616abc9a
commit
282d774427
2 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue