From: Ponnam Srinivas Date: Mon, 25 Sep 2017 11:50:58 +0000 (+0530) Subject: glmixer: Unmap video frame in error case X-Git-Tag: 1.16.2~260^2~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ffa10652afc96cb267fa49a02039820f783eeea;p=platform%2Fupstream%2Fgst-plugins-base.git glmixer: Unmap video frame in error case https://bugzilla.gnome.org/show_bug.cgi?id=788127 --- 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)