mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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:
parent
21f4c31a52
commit
ee739003e8
1 changed files with 1 additions and 1 deletions
|
@ -551,7 +551,7 @@ gst_va_base_dec_copy_output_buffer (GstVaBaseDec * base,
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (!gst_video_frame_map (&dest_frame, &dest_vinfo, buffer, GST_MAP_WRITE)) {
|
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;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue