dvdspu: Add a guard when we don't have any subpicture buffer to render

This commit is contained in:
Jan Schmidt 2009-05-08 17:40:48 +01:00
parent 64b6d247d4
commit 571a7746fc

View file

@ -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);