GStreamer elements not checked for availability
As seen in !340 (comment 437132).
Traceback (most recent call last):
File "/home/tester/jhbuild/install/lib/python3.7/site-packages/gnomemusic/application.py", line 107, in do_activate
self._window = Window(self)
File "/home/tester/jhbuild/install/lib/python3.7/site-packages/gnomemusic/window.py", line 90, in __init__
self._setup_view()
File "/home/tester/jhbuild/install/lib/python3.7/site-packages/gnomemusic/window.py", line 123, in _setup_view
self._player = Player(self)
File "/home/tester/jhbuild/install/lib/python3.7/site-packages/gnomemusic/player.py", line 584, in __init__
self._gst_player = GstPlayer()
File "/home/tester/jhbuild/install/lib/python3.7/site-packages/gnomemusic/gstplayer.py", line 77, in __init__
self._setup_replaygain()
File "/home/tester/jhbuild/install/lib/python3.7/site-packages/gnomemusic/gstplayer.py", line 102, in _setup_replaygain
self._filter_bin.add(self._rg_volume)
TypeError: Argument 1 does not allow None as a value
GStreamer elements may not be available and return None
, currently this is not checked at all in Music.
- In case of ReplayGain this should just disable it and not error out like this.
- In case of playbin it should probably notify the user.