dvdspu: Add a guard when we don't have any subpicture buffer to render
authorJan Schmidt <thaytan@noraisin.net>
Fri, 8 May 2009 16:40:48 +0000 (17:40 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Mon, 11 May 2009 16:04:08 +0000 (17:04 +0100)
gst/dvdspu/gstdvdspu-render.c

index e3bae8b..a8dadee 100644 (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);