mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
dvdspu: Add a guard when we don't have any subpicture buffer to render
This commit is contained in:
parent
64b6d247d4
commit
571a7746fc
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue