diff options
-rw-r--r-- | gst/dvdspu/gstdvdspu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c index 52d103844..fb2174890 100644 --- a/gst/dvdspu/gstdvdspu.c +++ b/gst/dvdspu/gstdvdspu.c @@ -664,7 +664,9 @@ gstspu_render (GstDVDSpu * dvdspu, GstBuffer * buf) { GstVideoFrame frame; - gst_video_frame_map (&frame, &dvdspu->spu_state.info, buf, GST_MAP_READWRITE); + if (!gst_video_frame_map (&frame, &dvdspu->spu_state.info, buf, + GST_MAP_READWRITE)) + return; switch (dvdspu->spu_input_type) { case SPU_INPUT_TYPE_VOBSUB: |