[gnome-remote-desktop/gnome-42] rdp-graphics-pipeline: Fix uninitialized caps mutex
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop/gnome-42] rdp-graphics-pipeline: Fix uninitialized caps mutex
- Date: Tue, 21 Jun 2022 19:32:45 +0000 (UTC)
commit df50dcfb0611550464f69e4b785229a6700afda3
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Sat Jun 18 07:36:38 2022 +0200
rdp-graphics-pipeline: Fix uninitialized caps mutex
src/grd-rdp-graphics-pipeline.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/grd-rdp-graphics-pipeline.c b/src/grd-rdp-graphics-pipeline.c
index 0bb0478d..e7dafb80 100644
--- a/src/grd-rdp-graphics-pipeline.c
+++ b/src/grd-rdp-graphics-pipeline.c
@@ -1554,6 +1554,7 @@ grd_rdp_graphics_pipeline_finalize (GObject *object)
GrdRdpGraphicsPipeline *graphics_pipeline = GRD_RDP_GRAPHICS_PIPELINE (object);
g_mutex_clear (&graphics_pipeline->gfx_mutex);
+ g_mutex_clear (&graphics_pipeline->caps_mutex);
G_OBJECT_CLASS (grd_rdp_graphics_pipeline_parent_class)->finalize (object);
}
@@ -1728,6 +1729,7 @@ grd_rdp_graphics_pipeline_init (GrdRdpGraphicsPipeline *graphics_pipeline)
graphics_pipeline->encoded_frames = g_queue_new ();
graphics_pipeline->enc_times = g_queue_new ();
+ g_mutex_init (&graphics_pipeline->caps_mutex);
g_mutex_init (&graphics_pipeline->gfx_mutex);
protocol_reset_source = g_source_new (&protocol_reset_source_funcs,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]