mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
screen-cast-src: Destroy hash dmabuf table after stream
The stream will clean up the buffers, so let it do that before we destroy them under its feet. Note that it'll only do this after the following PipeWire commit: commit fbaa4ddedd84afdffca16f090dcc4b0db8ccfc29 Author: Wim Taymans <wtaymans@redhat.com> Date: Mon Jun 1 15:36:09 2020 +0200 stream: allow NULL param and 0 buffers in disconnect https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1283
This commit is contained in:
parent
c5b1bdc0fe
commit
97175f8fa1
@ -996,8 +996,8 @@ meta_screen_cast_stream_src_finalize (GObject *object)
|
|||||||
if (meta_screen_cast_stream_src_is_enabled (src))
|
if (meta_screen_cast_stream_src_is_enabled (src))
|
||||||
meta_screen_cast_stream_src_disable (src);
|
meta_screen_cast_stream_src_disable (src);
|
||||||
|
|
||||||
g_clear_pointer (&priv->dmabuf_handles, g_hash_table_destroy);
|
|
||||||
g_clear_pointer (&priv->pipewire_stream, pw_stream_destroy);
|
g_clear_pointer (&priv->pipewire_stream, pw_stream_destroy);
|
||||||
|
g_clear_pointer (&priv->dmabuf_handles, g_hash_table_destroy);
|
||||||
g_clear_pointer (&priv->pipewire_core, pw_core_disconnect);
|
g_clear_pointer (&priv->pipewire_core, pw_core_disconnect);
|
||||||
g_clear_pointer (&priv->pipewire_context, pw_context_destroy);
|
g_clear_pointer (&priv->pipewire_context, pw_context_destroy);
|
||||||
g_source_destroy (&priv->pipewire_source->base);
|
g_source_destroy (&priv->pipewire_source->base);
|
||||||
|
Loading…
Reference in New Issue
Block a user