[Spice-devel] [PATCH spice-gtk 33/34] audio: use gstreamer by default

marcandre.lureau at redhat.com marcandre.lureau at redhat.com
Mon Jan 7 08:01:02 UTC 2019


From: Marc-André Lureau <marcandre.lureau at redhat.com>

The pulse backend is getting deprecated.

Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
 src/spice-audio.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/spice-audio.c b/src/spice-audio.c
index daf62df..a03c80b 100644
--- a/src/spice-audio.c
+++ b/src/spice-audio.c
@@ -236,11 +236,11 @@ SpiceAudio *spice_audio_new_priv(SpiceSession *session, GMainContext *context,
     if (name == NULL)
         name = g_get_application_name();
 
+    self = SPICE_AUDIO(spice_gstaudio_new(session, context, name));
 #ifdef HAVE_PULSE
-    self = SPICE_AUDIO(spice_pulse_new(session, context, name));
-#endif
     if (!self)
-        self = SPICE_AUDIO(spice_gstaudio_new(session, context, name));
+        self = SPICE_AUDIO(spice_pulse_new(session, context, name));
+#endif
     if (!self)
         return NULL;
 
-- 
2.20.1.2.gb21ebb671b



More information about the Spice-devel mailing list