pulsesink does not recover from the pulseaudio server dying
Submitted by jam..@..il.com
Steps to reproduce:
- Start playback of an mp3 on a platform that uses pulsesink by default:
GST_DEBUG=*:3 gst-launch-1.0 playbin uri=file:///music/my.mp3 audio-sink='pulsesink'
- kill -9
- Notice that playback stops and the following errors are observed:
0:00:40.970599079 20926 0xb1c2df80 WARN pulse pulsesink.c:1752:gst_pulseringbuffer_commit:
<audio-sink> error: pa_stream_writable_size() failed: Connection terminated
0:00:41.311085079 20926 0x64f9a0 WARN pulse pulsesink.c:413:gst_pulsering_is_dead:
<audio-sink> error: Disconnected: Connection terminated
- pulsesink tries to reconnect to the pulse server and recreate the pa_context.