summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatya Prakash Gupta <sp.gupta@samsung.com>2017-09-07 13:27:26 +0530
committerSebastian Dröge <sebastian@centricular.com>2017-09-07 12:56:11 +0300
commitc7594c4acb4f13957d82fd3c0e75aa14fab5d1f4 (patch)
treee797f4064c7a1855764d377b0beb8b46475a46a3
parent38b198255f37688bb15c26ecbfe2278c112b9e23 (diff)
mpeg2dec: Unmap output video frame if copying to it fails
https://bugzilla.gnome.org/show_bug.cgi?id=787398
-rw-r--r--ext/mpeg2dec/gstmpeg2dec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c
index 48f294e360..58890557f3 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;
}