diff options
author | Satya Prakash Gupta <sp.gupta@samsung.com> | 2017-09-07 13:27:26 +0530 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-09-07 12:56:11 +0300 |
commit | c7594c4acb4f13957d82fd3c0e75aa14fab5d1f4 (patch) | |
tree | e797f4064c7a1855764d377b0beb8b46475a46a3 /ext | |
parent | 38b198255f37688bb15c26ecbfe2278c112b9e23 (diff) |
mpeg2dec: Unmap output video frame if copying to it fails
https://bugzilla.gnome.org/show_bug.cgi?id=787398
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mpeg2dec/gstmpeg2dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c index 48f294e3..58890557 100644 --- a/ext/mpeg2dec/gstmpeg2dec.c +++ b/ext/mpeg2dec/gstmpeg2dec.c @@ -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; } |