x11: free bufferpool whe activation fails
This commit is contained in:
parent
6688eea15c
commit
453091137e
@ -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…
x
Reference in New Issue
Block a user