replaygain: Dodge possible encoding issues

In error reporting. May avoid the error in #1774, but it's hard to find out
exactly what the Python types of these arguments are from the GStreamer
documentation.
This commit is contained in:
Adrian Sampson 2015-12-26 22:40:13 -08:00
parent 06ec01d225
commit b25b4db9e1

View file

@ -522,10 +522,9 @@ class GStreamerBackend(Backend):
err, debug = message.parse_error()
f = self._src.get_property("location")
# A GStreamer error, either an unsupported format or a bug.
self._error = \
ReplayGainError(u"Error {0} - {1} on file {2}".format(err,
debug,
f))
self._error = ReplayGainError(
"Error {0!r} - {1!r} on file {2!r}".format(err, debug, f)
)
def _on_tag(self, bus, message):
tags = message.parse_tag()