replaygain: Fix #1518, GStreamer missing plugins

This commit is contained in:
Adrian Sampson 2015-07-06 16:23:04 -07:00
parent 18bd4471e4
commit 493fbab1a5
2 changed files with 8 additions and 0 deletions

View file

@ -388,6 +388,12 @@ class GStreamerBackend(Backend):
self._res = self.Gst.ElementFactory.make("audioresample", "res")
self._rg = self.Gst.ElementFactory.make("rganalysis", "rg")
if self._src is None or self._decbin is None or self._conv is None \
or self._res is None or self._rg is None:
raise FatalReplayGainError(
"Failed to load required GStreamer plugins"
)
# We check which files need gain ourselves, so all files given
# to rganalsys should have their gain computed, even if it
# already exists.

View file

@ -66,6 +66,8 @@ Fixes:
* Some messages in the console UI now use plural nouns correctly. Thanks to
:user:`JesseWeinstein`. :bug:`1521`
* Sorting numerical fields (such as track) now works again. :bug:`1511`
* :doc:`/plugins/replaygain`: Missing GStreamer plugins now cause a helpful
error message instead of a crash. :bug:`1518`
1.3.13 (April 24, 2015)