Debian Codegraph @

debian/patches/Fix-build-against-glib-2.68.patch

raw
1 From: Dominique Leuenberger <[email protected]>
2 Date: Tue, 13 Jul 2021 10:32:30 +0000
3 Subject: Fix build against glib 2.68
4
5 volatile has been misused in the past
6
7 Bug: https://gitlab.gnome.org/GNOME/gstreamermm/-/issues/11
8 Bug-Debian: https://bugs.debian.org/997238
9 Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/600
10 Reference: http://c.isvolatileusefulwiththreads.com/
11 ---
12 gstreamer/gstreamermm/register.h | 2 +-
13 tests/integration/test-integration-seekonstartup.cc | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16 diff --git a/gstreamer/gstreamermm/register.h b/gstreamer/gstreamermm/register.h
17 index db66d17..a7ab3a6 100644
18 --- a/gstreamer/gstreamermm/register.h
19 +++ b/gstreamer/gstreamermm/register.h
20 @@ -110,7 +110,7 @@ register_mm_type(const gchar * type_name)
21 /* The typedef for GType may be gulong or gsize, depending on the
22 * system and whether the compiler is c++ or not. The g_once_init_*
23 * functions always take a gsize * though ... */
24 - static volatile gsize gonce_data = 0;
25 + static gsize gonce_data = 0;
26 if (g_once_init_enter (&gonce_data)) {
27 GTypeInfo info;
28
29 diff --git a/tests/integration/test-integration-seekonstartup.cc b/tests/integration/test-integration-seekonstartup.cc
30 index 247ac49..cd43a12 100644
31 --- a/tests/integration/test-integration-seekonstartup.cc
32 +++ b/tests/integration/test-integration-seekonstartup.cc
33 @@ -18,7 +18,7 @@ RefPtr<Glib::MainLoop> mainloop;
34 RefPtr<Bus> bus;
35 RefPtr<Pipeline> pipeline;
36 RefPtr<Pad> sink_pad;
37 -static volatile gint counter;
38 +static gint counter;
39 bool prerolled = false;
40 gboolean was_check = 0;
41