dvdspu: Add a guard when we don't have any subpicture buffer to render
This commit is contained in:
parent
64b6d247d4
commit
571a7746fc
@ -400,6 +400,8 @@ gst_dvd_spu_render_spu (GstDVDSpu * dvdspu, GstBuffer * buf)
|
|||||||
gint y, last_y;
|
gint y, last_y;
|
||||||
|
|
||||||
/* Set up our initial state */
|
/* Set up our initial state */
|
||||||
|
if (G_UNLIKELY (state->pix_buf == NULL))
|
||||||
|
return;
|
||||||
|
|
||||||
/* Store the start of each plane */
|
/* Store the start of each plane */
|
||||||
planes[0] = GST_BUFFER_DATA (buf);
|
planes[0] = GST_BUFFER_DATA (buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user