va: basedec: Should unmap src frame when dst frame map failing.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1692>
This commit is contained in:
He Junyan 2020-10-14 16:54:54 +08:00 committed by GStreamer Merge Bot
parent 21f4c31a52
commit ee739003e8

View file

@ -551,7 +551,7 @@ gst_va_base_dec_copy_output_buffer (GstVaBaseDec * base,
goto fail;
if (!gst_video_frame_map (&dest_frame, &dest_vinfo, buffer, GST_MAP_WRITE)) {
gst_video_frame_unmap (&dest_frame);
gst_video_frame_unmap (&src_frame);
goto fail;
}