mpeg2dec: Unmap output video frame if copying to it fails

https://bugzilla.gnome.org/show_bug.cgi?id=787398
This commit is contained in:
Satya Prakash Gupta 2017-09-07 13:27:26 +05:30 committed by Sebastian Dröge
parent 38b198255f
commit c7594c4acb

View file

@ -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;
} }