[Bug 795591] New: [pulsesink] PA_CONTEXT_NOAUTOSPAWN option in pulsesink

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Apr 26 23:43:26 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=795591

            Bug ID: 795591
           Summary: [pulsesink] PA_CONTEXT_NOAUTOSPAWN option in pulsesink
    Classification: Platform
           Product: GStreamer
           Version: 1.10.4
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: galaxyra at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Hi, 

I have a question about PA_CONTEXT_NOAUTOSPAWN options in pulsesink.

Here is my environment.
 - yocto build
 - use pulseaudio 10.0 and 'allow-autospawn-for-root' is on
 - use gstreamer(gst-plugins-good) 1.10.4

i played some sounds with paplay. pulseaudio was executed by paplay and it
worked fine.
but i tried playing sound with gst-launch, some errors were printed out like
below.
i think the reason why connecting fail is that pulsesink use
PA_CONTEXT_NOAUTOSPAWN when it try connecting pulseaudio.

gst-launch works fine when i remove NOAUTOSPAWN option in pulsesink.

error message
root at mv8890:~# gst-launch-1.0 audiotestsrc ! pulsesink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstPulseSink:pulsesink0: Failed to
connect: Connection refused
Additional debug info:
../../../gst-plugins-good-1.10.4/ext/pulse/pulsesink.c(615):
gst_pulseringbuffer_open_device (): /GstPipeline:pipe
line0/GstPulseSink:pulsesink0
Setting pipeline to NULL ...
Freeing pipeline ...

difference
  pulsesink(not working) : pa_context_connect (pctx->context, psink->server,
PA_CONTEXT_NOAUTOSPAWN, NULL) - NOAUTOSPAWN
  paplay(working) : pa_context_connect(context, server, 0, NULL) - no options

here my questions.
Q1. Is there a reason that have to use NOAUTOSPAWN options in pulsesink? if it
doesn't need to anymore, i can raise a commit to fix.
Q2. If the option can't be changed, how can i run pulseaudio with pulsesink?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list