GNOME Bugzilla – Bug 795365
alsasrc: after disconnecting S/PDIF cable, stopping pipeline hangs
Last modified: 2018-11-03 12:05:11 UTC
Created attachment 371118 [details] test app When using alsasrc with S/PDIF input, starting/stopping pipeline works perfectly. But when disconnecting cable during playback (or changing sample rate, stopping the signal) and setting the pipeline to NULL state causes a deadlock. Log also prints the following message: alsa gstalsasrc.c:864:xrun_recovery:<alsasrc> xrun recovery -5: Input/output error Please see attachment for example app.
It also seems, that digital audio input is not handled very well in Linux. Currently, there is no (easy) way to handle rate changes from an external clock generator (e.g. S/PDIF signal) and forward to user-space app. From my point of view, I'd be ok, if the alsasrc just stops whenever there is a rate change or signal disconnection.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/435.