Glitch in audio when ipod is disconnected (Vignesh Raman)

harish jenny harishjennykn at yahoo.com
Fri Sep 6 05:27:01 PDT 2013


Hi Vignesh,

I saw your debug logs and found that the error message in the log is err == -ENODEV when glitch is coming and 

err = -EPIPE when glitch is not coming.

The issue is similar to the ones mentioned in 

https://bugzilla.gnome.org/show_bug.cgi?id=690197.
The fix added in gstreamer will make it  not loop forever if an USB/IPOD audio device gets disconnected
while in use. It will post an error message instead.

You should not be facing this issue in latest gstreamer 1.0.

If you cannot use 1.0 , you can take the changes manually and test.


Thanks & Regards,
Harish Jenny K N


Message: 5
Date: Thu, 5 Sep 2013 22:25:34 +0530
From: Vignesh Raman <rvignesh.raman at gmail.com>
To: gstreamer-devel at lists.freedesktop.org
Subject: Re: Glitch in audio when ipod is disconnected
Message-ID:
    <CAL8k1Z5Wxa9f9mq2oUwjosSdEWgR7T6Lsx0iPuUCHYqmCp3Kjg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Tim,

On Thu, 2013-09-05 at 08:21 +0530, Vignesh Raman wrote:
>
> > This seems to be a race condition between threads, but I'm not sure.
>
> Out of curiosity, what makes you suspect it's a race and not e.g. a
> scheduling issue? (e.g. the capture thread or render thread don't get
> scheduled for a while, causing the glitch)
>

Since its a multi threaded application, my guess was it could be a race
condition between threads.


>
> Have you tried playing with the buffer sizes in sink/src?
>

The buffer-time (Size of audio buffer in microseconds) of alsa source is
default set to 200ms. The buffer-time and actual-buffer-time of alsa source
was changed to 23ms in the application code. The application was also not
bound to single processor by removing 'taskset' during launching it. With
this the audio glitch was not seen when ipod is disconnected during
playback.

But could this be solved in GStreamer, if its really a problem in GStreamer
?

There were some patches which address some issues when usb is disconnected,
https://bugzilla.gnome.org/show_bug.cgi?id=690197

Is the issue mentioned in the bug related to the glitch issue.

I'm also not getting how 'taskset' is actually solving the issue. Does the
scheduling happen without any delay when taskset is used.

Regards,
Vignesh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130905/832a1a75/attachment-0001.html>

------------------------------

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


End of gstreamer-devel Digest, Vol 32, Issue 12
***********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130906/e3ebed92/attachment-0001.html>


More information about the gstreamer-devel mailing list