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 <fgou...@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

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to