Skip to content
  • Doug Nazar's avatar
    audio/alsa: Exit write loop if underlying device is already paused. · 1d5ad7d1
    Doug Nazar authored and GStreamer Marge Bot's avatar GStreamer Marge Bot committed
    If the alsasink thread starts the write loop but another thread pauses
    the underlying alsa device, the sink thread will endlessly loop.
    
    snd_pcm_writei() will return 0 if the state is SND_PCM_STATE_PAUSED
    and the loop will never make any progress.
    
    Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1097>
    1d5ad7d1