From 0ffa10652afc96cb267fa49a02039820f783eeea Mon Sep 17 00:00:00 2001
From: Ponnam Srinivas
Date: Mon, 25 Sep 2017 17:20:58 +0530
Subject: [PATCH] glmixer: Unmap video frame in error case
https://bugzilla.gnome.org/show_bug.cgi?id=788127
---
ext/gl/gstglmixer.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ext/gl/gstglmixer.c b/ext/gl/gstglmixer.c
index af9de45..a4742a6 100644
--- a/ext/gl/gstglmixer.c
+++ b/ext/gl/gstglmixer.c
@@ -616,8 +616,10 @@ gst_gl_mixer_process_textures (GstGLMixer * mix, GstBuffer * outbuf)
out_tex = (GstGLMemory *) out_frame.map[0].memory;
if (!gst_aggregator_iterate_sinkpads (GST_AGGREGATOR (mix),
- (GstAggregatorPadForeachFunc) _upload_frames, NULL))
- return FALSE;
+ (GstAggregatorPadForeachFunc) _upload_frames, NULL)) {
+ res = FALSE;
+ goto out;
+ }
g_mutex_lock (&priv->gl_resource_lock);
if (!priv->gl_resource_ready)
--
2.7.4