mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
mpeg2dec: Unmap output video frame if copying to it fails
https://bugzilla.gnome.org/show_bug.cgi?id=787398
This commit is contained in:
parent
38b198255f
commit
c7594c4acb
1 changed files with 1 additions and 0 deletions
|
@ -527,6 +527,7 @@ map_fail:
|
||||||
copy_failed:
|
copy_failed:
|
||||||
{
|
{
|
||||||
GST_ERROR_OBJECT (dec, "Failed to copy output frame");
|
GST_ERROR_OBJECT (dec, "Failed to copy output frame");
|
||||||
|
gst_video_frame_unmap (&output_frame);
|
||||||
gst_video_codec_state_unref (state);
|
gst_video_codec_state_unref (state);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue