mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
glmixer: Unmap video frame in error case
https://bugzilla.gnome.org/show_bug.cgi?id=788127
This commit is contained in:
parent
29973b7d6c
commit
601e274c95
1 changed files with 4 additions and 2 deletions
|
@ -616,8 +616,10 @@ gst_gl_mixer_process_textures (GstGLMixer * mix, GstBuffer * outbuf)
|
||||||
out_tex = (GstGLMemory *) out_frame.map[0].memory;
|
out_tex = (GstGLMemory *) out_frame.map[0].memory;
|
||||||
|
|
||||||
if (!gst_aggregator_iterate_sinkpads (GST_AGGREGATOR (mix),
|
if (!gst_aggregator_iterate_sinkpads (GST_AGGREGATOR (mix),
|
||||||
(GstAggregatorPadForeachFunc) _upload_frames, NULL))
|
(GstAggregatorPadForeachFunc) _upload_frames, NULL)) {
|
||||||
return FALSE;
|
res = FALSE;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
g_mutex_lock (&priv->gl_resource_lock);
|
g_mutex_lock (&priv->gl_resource_lock);
|
||||||
if (!priv->gl_resource_ready)
|
if (!priv->gl_resource_ready)
|
||||||
|
|
Loading…
Reference in a new issue