PulseAudio + Phonon curious issue

Colin Guthrie gmane at colin.guthr.ie
Wed Jan 13 10:29:25 GMT 2010


'Twas brillig, and Colin Guthrie at 12/01/10 10:00 did gyre and gimble:
> OK, confirmed here with GStreamer backend. It wouldn't do it with the
> Xine backend (even although it uses the same PA code as part of my
> integration).
> 
> Something is obviously exposed in the gstreamer backend that triggers
> this problem. The important bit of debug so far seems to be:
> 
> "PGST(1): Error: pulsesink.c(290): gst_pulsering_is_dead ():
> /GstPipeline:pipeline0/GstBin:bin1/GstBin:bin0/GstPulseSink:pulsesink1
> Message:Disconnected: OK (GStreamer encountered a general resource
> error.) Code:1"
> 
> 
> I'll try and get this fixed.
> 
> I'll track it on https://qa.mandriva.com/show_bug.cgi?id=56807 (if you'd
> prefer an upstream kde bug, please feel free to open it and reference
> the mdv one and I'll work on it directly instead... doesn't make much
> odds at the end of the day tho'!)
> 
> Thanks for getting a nice test case :)

OK, tracking this down a bit further.

FWIW your test case works fine if you connect the media prior to
creating the path.

This comment seems to specifically mention this case:
http://colin.guthr.ie/git/phonon/tree/gstreamer/mediaobject.cpp#n676

I'm guessing that this work around either doesn't work at all, or no
longer works with current gstreamer.

This "reset" approach causes two streams to be created in PA. The first
one dies off straight away (e.g. after the eventloops runs post
constructor) and the second one should normally pick up where the first
left off but for some reason it doesn't..... I'm guessing it remains
corked in some capacity - e.g. the bugfix doesn't complete.

It would be nice if we didn't have two streams at all and that this use
case/scenario is handled more gracefully overall.

I'll try and find a fix (tho' I am by no means a gstreamer coder - bit
of a noob there, but I'll try my best seeing as there is not exactly a
queue of people willing to work on the phonon-gstreamer backend right
now :()

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]



More information about the kde-multimedia mailing list