No bus messages when audio sink has issues
Submitted by gno..@..il.com
This is fork of rhythmbox bug: https://bugzilla.gnome.org/show_bug.cgi?id=771546
When a "problematic audio sink" which does not work is selected in "System Settings -> Sound", audio stops and the time slider in Rhythmbox stops. When a working sink is selected, audio works and the time slider moves.
The cause of concern is when a user open Rhythmbox and clicks on a song, and the time slider never moves / no audio works, the user is confused as to what is the issue ( plugin installation issue / rhythmbox bug / audio issues ) etc. Currently, there is no way for Rhythmbox to inform the user that the issue is with the "audio output device".
Rhythmbox uses playbin and listens to messages from playbin pipeline ( as below ):
gst_bus_add_watch (gst_element_get_bus (mp->priv->playbin),
But, when an audio sink is having issues, there is no message in the bus, indicating that. I tried playing a song, and switch between the working and non-working sink in Sound Preferences, 'bus_cb' was never fired in gdb.