From 571a7746fcf18fba066779a43c23683a9d554051 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 8 May 2009 17:40:48 +0100 Subject: dvdspu: Add a guard when we don't have any subpicture buffer to render --- gst/dvdspu/gstdvdspu-render.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gst/dvdspu') diff --git a/gst/dvdspu/gstdvdspu-render.c b/gst/dvdspu/gstdvdspu-render.c index e3bae8b6..a8dadee2 100644 --- a/gst/dvdspu/gstdvdspu-render.c +++ b/gst/dvdspu/gstdvdspu-render.c @@ -400,6 +400,8 @@ gst_dvd_spu_render_spu (GstDVDSpu * dvdspu, GstBuffer * buf) gint y, last_y; /* Set up our initial state */ + if (G_UNLIKELY (state->pix_buf == NULL)) + return; /* Store the start of each plane */ planes[0] = GST_BUFFER_DATA (buf); -- cgit v1.2.1