[Spice-commits] configure.ac src/spice-pulse.c tests/uri.c
Victor Toso de Carvalho
victortoso at kemper.freedesktop.org
Tue Aug 1 12:54:05 UTC 2017
configure.ac | 4 ++--
src/spice-pulse.c | 19 -------------------
tests/uri.c | 5 -----
3 files changed, 2 insertions(+), 26 deletions(-)
New commits:
commit b312ca0809a7940d61999927608e13f21cb48abf
Author: Victor Toso <me at victortoso.com>
Date: Tue Aug 1 11:32:00 2017 +0200
build-sys: bump glib requirement 2.36 -> 2.46
At the moment:
- Fedora 26 has 2.52
- Fedora 25 has 2.50
- Fedora 24 has 2.48
- CentOS 7 has 2.46
- Debian 9 has 2.50
Signed-off-by: Victor Toso <victortoso at redhat.com>
Acked-by: Marc-André Lureau <marcandre.lureau at redhat.com>
diff --git a/configure.ac b/configure.ac
index 4a4e8a6..8fd525b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -182,8 +182,8 @@ fi
AC_CHECK_FUNCS(clearenv strtok_r)
# Keep these two definitions in agreement.
-GLIB2_REQUIRED="2.36"
-GLIB2_ENCODED_VERSION="GLIB_VERSION_2_36"
+GLIB2_REQUIRED="2.46"
+GLIB2_ENCODED_VERSION="GLIB_VERSION_2_46"
PKG_CHECK_MODULES(GLIB2, glib-2.0 >= $GLIB2_REQUIRED)
GLIB2_CFLAGS="$GLIB2_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=$GLIB2_ENCODED_VERSION \
diff --git a/src/spice-pulse.c b/src/spice-pulse.c
index 5248bc3..9868251 100644
--- a/src/spice-pulse.c
+++ b/src/spice-pulse.c
@@ -941,26 +941,7 @@ static void cancel_task(GCancellable *cancellable, gpointer user_data)
struct async_task *task = user_data;
g_return_if_fail(task != NULL);
-#if GLIB_CHECK_VERSION(2,40,0)
free_async_task(task);
-#else
- /* This must be done now otherwise pulseaudio may return to a
- * cancelled task operation before free_async_task is called */
- if (task->pa_op != NULL) {
- pa_operation_cancel(task->pa_op);
- g_clear_pointer(&task->pa_op, pa_operation_unref);
- }
-
- /* Clear the pending_restore_task reference to avoid triggering a
- * pa_operation when context state is in READY state */
- if (task->pulse->priv->pending_restore_task == task) {
- task->pulse->priv->pending_restore_task = NULL;
- }
-
- /* FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=705395
- * Free the memory in idle */
- g_idle_add(free_async_task, task);
-#endif
}
static void complete_task(SpicePulse *pulse, struct async_task *task, const gchar *err_msg)
diff --git a/tests/uri.c b/tests/uri.c
index 5bfed2d..ea8b794 100644
--- a/tests/uri.c
+++ b/tests/uri.c
@@ -19,11 +19,6 @@
#include <spice-client.h>
#include "spice-uri-priv.h"
-/* GLIB_CHECK_VERSION(2, 40, 0) */
-#ifndef g_assert_nonnull
-#define g_assert_nonnull g_assert
-#endif
-
struct test_case {
gchar *uri;
gchar *scheme;
More information about the Spice-commits
mailing list