AnsweredAssumed Answered

gstreamer 0.10 : High CPU utilization when alsasrc is disconnected

Question asked by Karthik Uppund on Sep 23, 2015
Latest reply on Sep 30, 2015 by Yuri Muhin

Hi,

I am observing high CPU utilization (~78%) when alsasrc is disconnected. Particularly audiosrc-ring buffer is shooting high. I am using iphone as alsa device.

 

Below is the pipeline I am running on imx6 board:

gst-launch-0.10 alsasrc device=hw:x,y ! audiconveert ! audioresample ! autoaudiosink

 

 

Steps to reproduce:

  1. run gst-launch-0.10 alsasrc device=hw:x,y ! audiconveert ! audioresample ! autoaudiosink
  2. disconnect alsasrc ( iphone in my case)
  3. run top -p <PID of gst-launch-0.10>H

 

Frequency of reproducibility :ALWAYS

 

This issue is not observed in gstreamer 1.0. The audiosrc-ring buffer vanishes as soon as alsasrc is disconnected in gstreamer 1.0

Outcomes