Commit 7ba6ef66 authored by Sebastian Dröge's avatar Sebastian Dröge

cairorender: Return not-negotiated if we have no caps

parent 52f17631
......@@ -117,6 +117,9 @@ gst_cairo_render_chain (GstPad * pad, GstBuffer * buf)
cairo_surface_t *s;
gboolean success;
if (G_UNLIKELY (c->width <= 0 || c->height <= 0 || c->stride <= 0))
return GST_FLOW_NOT_NEGOTIATED;
if (c->png) {
GST_BUFFER_OFFSET (buf) = 0;
s = cairo_image_surface_create_from_png_stream (read_buffer, buf);
......@@ -278,6 +281,7 @@ gst_cairo_render_init (GstCairoRender * c, GstCairoRenderClass * klass)
c->width = 0;
c->height = 0;
c->stride = 0;
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment