mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
dvdspu: don't crash if video frame could not be mapped
As might happen with e.g. vaapi and the test file from https://bugzilla.gnome.org/show_bug.cgi?id=736227
This commit is contained in:
parent
aea2c13fc1
commit
f991e09319
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue