Make pulsesink autostart pulseaudio if needed
authorRusty Lynch <rusty.lynch@intel.com>
Thu, 18 Jul 2013 15:02:00 +0000 (08:02 -0700)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 18 Nov 2014 13:29:54 +0000 (14:29 +0100)
On Tizen we want pulseaudio to autostart on demand, a pattern that
should be used for all services where possible

Change-Id: I29e7a9cf530dbd532986e4aaa5291ee5e5d78cd2

ext/pulse/pulsesink.c

index e580afc..a04a374 100644 (file)
@@ -520,12 +520,9 @@ gst_pulseringbuffer_open_device (GstAudioRingBuffer * buf)
     pa_context_set_subscribe_callback (pctx->context,
         gst_pulsering_context_subscribe_cb, pctx);
 
-    /* try to connect to the server and wait for completion, we don't want to
-     * autospawn a deamon */
     GST_LOG_OBJECT (psink, "connect to server %s",
         GST_STR_NULL (psink->server));
-    if (pa_context_connect (pctx->context, psink->server,
-            PA_CONTEXT_NOAUTOSPAWN, NULL) < 0)
+    if (pa_context_connect (pctx->context, psink->server, 0, NULL) < 0)
       goto connect_failed;
   } else {
     GST_INFO_OBJECT (psink,