[Spice-devel] [client 08/10] session: Disable the spice_audio_new() deprecation warning

Francois Gouget fgouget at codeweavers.com
Tue Oct 18 17:47:12 UTC 2016


Third parties are not supposed to use spice_audio_new() anymore, but
internally it is used to implement its replacement, spice_audio_get().

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 src/spice-session.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/spice-session.c b/src/spice-session.c
index 238b5cb..7d7d7a9 100644
--- a/src/spice-session.c
+++ b/src/spice-session.c
@@ -2641,7 +2641,9 @@ SpiceAudio *spice_audio_get(SpiceSession *session, GMainContext *context)
     g_mutex_lock(&mutex);
     self = session->priv->audio_manager;
     if (self == NULL) {
+        G_GNUC_BEGIN_IGNORE_DEPRECATIONS
         self = spice_audio_new(session, context, NULL);
+        G_GNUC_END_IGNORE_DEPRECATIONS
         session->priv->audio_manager = self;
     }
     g_mutex_unlock(&mutex);
-- 
2.9.3



More information about the Spice-devel mailing list