Paused to playing state change is slow after long runs.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Paused to playing state change is slow after long runs.

lukas-l
Hello!

I have Gstreamer pipeline with a couple of source elements and a alsasink. After a long while (~15 hours) in paused state the state change from paused to playing takes about 20 seconds. Note that in this state the state change from paused to playing continues to take a long time. The only way to recover from this is to restart the Gstreamer application. I cannot figure out why the state change is so slow after long runs. The state changes are not slow at start of the application and neither after a couple of hours of usage. Anyone with an idea what may be the cause behind this behavior?

Example of pipeline construction.
audiotestsrc ! audioconvert ! audioresample ! queue
                                                                                         ! adder ! alsasink sync=true
<other sources> ! volume ! audioconvert ! audioresample ! queue

Some sources will eventually be depleted and when that happens they are removed and a source elements are attached to the pipeline.

Ideas:
* Could the clock be the cause? Could this be tested by setting sync=false?

GST_DEBUG=*:3 does not produce any errors after longs runs either.

Regards
Lukas Lorentzon