After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795365 - alsasrc: after disconnecting S/PDIF cable, stopping pipeline hangs
alsasrc: after disconnecting S/PDIF cable, stopping pipeline hangs
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
1.x
Other Linux
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-04-18 20:16 UTC by Manuel Weichselbaumer
Modified: 2018-11-03 12:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test app (1.41 KB, text/plain)
2018-04-18 20:16 UTC, Manuel Weichselbaumer
Details

Description Manuel Weichselbaumer 2018-04-18 20:16:31 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.
Comment 1 Manuel Weichselbaumer 2018-04-18 20:24:21 UTC
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.
Comment 2 GStreamer system administrator 2018-11-03 12:05:11 UTC
-- 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.