summaryrefslogtreecommitdiffstats
path: root/ext/wavpack/gstwavpack.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2007-05-02 18:31:16 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2007-05-02 18:31:16 +0000
commit13ae0cde514f3531c5c39722ca05f96377a4d3d5 (patch)
tree810999f96d472d2babc8a839b2317e7a4095e5e4 /ext/wavpack/gstwavpack.c
parent6991907036b3688b7d4537cdefafbc48baecce58 (diff)
ext/wavpack/gstwavpack.c: Call bindtextdomain() to get localized strings.
Original commit message from CVS: * ext/wavpack/gstwavpack.c: (plugin_init): Call bindtextdomain() to get localized strings. * ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_chain): * ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_reset), (gst_wavpack_parse_handle_seek_event), (gst_wavpack_parse_push_buffer), (gst_wavpack_parse_chain): * ext/wavpack/gstwavpackparse.h: Handle DISCONT buffers by correctly setting the DISCONT flag on outgoing buffers when necessary. * ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_handle_seek_event) Send newsegment from the streaming thread.
Diffstat (limited to 'ext/wavpack/gstwavpack.c')
-rw-r--r--ext/wavpack/gstwavpack.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/wavpack/gstwavpack.c b/ext/wavpack/gstwavpack.c
index ddd3f2a2..580d658e 100644
--- a/ext/wavpack/gstwavpack.c
+++ b/ext/wavpack/gstwavpack.c
@@ -23,6 +23,8 @@
#include "config.h"
#endif
+#include <gst/gst-i18n-plugin.h>
+
#include "gstwavpackparse.h"
#include "gstwavpackdec.h"
#include "gstwavpackenc.h"
@@ -34,6 +36,13 @@ static gboolean
plugin_init (GstPlugin * plugin)
{
GST_DEBUG_CATEGORY_INIT (wavpack_debug, "wavpack", 0, "Wavpack elements");
+
+#if ENABLE_NLS
+ GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
+ LOCALEDIR);
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+#endif
+
return (gst_wavpack_parse_plugin_init (plugin)
&& gst_wavpack_dec_plugin_init (plugin)
&& gst_wavpack_enc_plugin_init (plugin));