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
@ -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…
x
Reference in New Issue
Block a user