summaryrefslogtreecommitdiffstats
path: root/gst/dvdspu
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-05-08 17:40:48 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-05-11 17:04:08 +0100
commit571a7746fcf18fba066779a43c23683a9d554051 (patch)
tree07e7088210ccbd8a0a2e4c55d500cc18d9f6aa28 /gst/dvdspu
parent64b6d247d4428ce3dadcbe8729cc891a8891c7db (diff)
downloadgst-plugins-bad-571a7746fcf18fba066779a43c23683a9d554051.tar.gz
gst-plugins-bad-571a7746fcf18fba066779a43c23683a9d554051.tar.bz2
gst-plugins-bad-571a7746fcf18fba066779a43c23683a9d554051.zip
dvdspu: Add a guard when we don't have any subpicture buffer to render
Diffstat (limited to 'gst/dvdspu')
-rw-r--r--gst/dvdspu/gstdvdspu-render.c2
1 files changed, 2 insertions, 0 deletions
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);