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:
Tim-Philipp Müller 2016-08-06 16:15:33 +01:00
parent aea2c13fc1
commit f991e09319

View file

@ -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: