mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
x11: free bufferpool whe activation fails
This commit is contained in:
parent
6688eea15c
commit
453091137e
2 changed files with 2 additions and 0 deletions
|
@ -1185,6 +1185,7 @@ activate_failed:
|
|||
{
|
||||
GST_ERROR_OBJECT (ximagesink, "failed to activate bufferpool.");
|
||||
g_mutex_unlock (ximagesink->flow_lock);
|
||||
gst_object_unref (newpool);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1745,6 +1745,7 @@ activate_failed:
|
|||
{
|
||||
GST_ERROR_OBJECT (xvimagesink, "failed to activate bufferpool.");
|
||||
g_mutex_unlock (xvimagesink->flow_lock);
|
||||
gst_object_unref (newpool);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue