gsterror: avoid pointless string copying
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 6 Sep 2010 19:06:56 +0000 (20:06 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 6 Sep 2010 19:26:14 +0000 (20:26 +0100)
commit490d2f0ab52c7534dc72e277e4bc3aea5966c36f
tree984d676e1df807578527b7661c4c335f6c4ad54d
parentb792329dde92f2bc8d9779c0ac6320d7aa597e78
gsterror: avoid pointless string copying

There's no need to create these tables with duplicates of the
untranslated error message string constants, we can just use
old-fashioned switch/case and call gettext directly. This also
makes things slightly more thread safe and more robust to bad
input (invalid error codes).
gst/gsterror.c