summaryrefslogtreecommitdiff
path: root/gst-libs/gst/cairo/gstcairobuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/cairo/gstcairobuffer.c')
-rw-r--r--gst-libs/gst/cairo/gstcairobuffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/cairo/gstcairobuffer.c b/gst-libs/gst/cairo/gstcairobuffer.c
index b110705..0d8df7b 100644
--- a/gst-libs/gst/cairo/gstcairobuffer.c
+++ b/gst-libs/gst/cairo/gstcairobuffer.c
@@ -171,7 +171,8 @@ gst_cairo_create_surface (GstBuffer * buffer, const GstCairoFormat * format)
int strides[4];
guint i;
- g_return_val_if_fail (!gst_cairo_format_is_native (format), NULL);
+ g_return_val_if_fail (gst_cairo_format_get_surface_type (format) ==
+ CAIRO_SURFACE_TYPE_IMAGE, NULL);
for (i = 0; i < format->n_planes; i++) {
planes[i] = (char *) (data + gst_cairo_format_get_offset (format, i));