mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
x11: let old pool drain
Let the old pool drain without deactivating it, some elements might still be using it.
This commit is contained in:
parent
662c1f4b6c
commit
d013481d8e
2 changed files with 4 additions and 4 deletions
|
@ -1150,8 +1150,8 @@ gst_ximagesink_setcaps (GstBaseSink * bsink, GstCaps * caps)
|
|||
|
||||
/* unref the old sink */
|
||||
if (oldpool) {
|
||||
/* deactivate */
|
||||
gst_buffer_pool_set_active (oldpool, FALSE);
|
||||
/* we don't deactivate, some elements might still be using it, it will be
|
||||
* deactivated when the last ref is gone */
|
||||
gst_object_unref (oldpool);
|
||||
}
|
||||
g_mutex_unlock (ximagesink->flow_lock);
|
||||
|
|
|
@ -1660,8 +1660,8 @@ gst_xvimagesink_setcaps (GstBaseSink * bsink, GstCaps * caps)
|
|||
|
||||
/* unref the old sink */
|
||||
if (oldpool) {
|
||||
/* deactivate */
|
||||
gst_buffer_pool_set_active (oldpool, FALSE);
|
||||
/* we don't deactivate, some elements might still be using it, it will
|
||||
* be deactivated when the last ref is gone */
|
||||
gst_object_unref (oldpool);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue