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
@ -527,6 +527,7 @@ map_fail:
|
||||
copy_failed:
|
||||
{
|
||||
GST_ERROR_OBJECT (dec, "Failed to copy output frame");
|
||||
gst_video_frame_unmap (&output_frame);
|
||||
gst_video_codec_state_unref (state);
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user