diff options
Diffstat (limited to 'ext/esd')
-rw-r--r-- | ext/esd/esdsink.c | 9 | ||||
-rw-r--r-- | ext/esd/gstesd.c | 18 |
2 files changed, 16 insertions, 11 deletions
diff --git a/ext/esd/esdsink.c b/ext/esd/esdsink.c index f19b1cfc..dca30d51 100644 --- a/ext/esd/esdsink.c +++ b/ext/esd/esdsink.c @@ -25,11 +25,14 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif + #include "esdsink.h" #include <esd.h> #include <unistd.h> #include <errno.h> +#include <gst/gst-i18n-plugin.h> + GST_DEBUG_CATEGORY_EXTERN (esd_debug); #define GST_CAT_DEFAULT esd_debug @@ -239,7 +242,8 @@ gst_esdsink_open (GstAudioSink * asink) /* ERRORS */ couldnt_connect: { - GST_ELEMENT_ERROR (esdsink, RESOURCE, OPEN_WRITE, (NULL), + GST_ELEMENT_ERROR (esdsink, RESOURCE, OPEN_WRITE, + (_("Could not establish connection to sound server")), ("can't open connection to esound server")); return FALSE; } @@ -336,7 +340,8 @@ unsupported_channels: } cannot_open: { - GST_ELEMENT_ERROR (esdsink, RESOURCE, OPEN_WRITE, (NULL), + GST_ELEMENT_ERROR (esdsink, RESOURCE, OPEN_WRITE, + (_("Could not establish connection to sound server")), ("can't open connection to esound server")); return FALSE; } diff --git a/ext/esd/gstesd.c b/ext/esd/gstesd.c index c40b4cf3..62554d0a 100644 --- a/ext/esd/gstesd.c +++ b/ext/esd/gstesd.c @@ -26,20 +26,14 @@ #include "esdmon.h" #endif +#include "gst/gst-i18n-plugin.h" + GST_DEBUG_CATEGORY (esd_debug); static gboolean plugin_init (GstPlugin * plugin) { - gboolean ret; - -#if 0 - if (!gst_library_load ("gstaudio")) - return FALSE; -#endif - - ret = gst_esdsink_factory_init (plugin); - if (ret == FALSE) + if (!gst_esdsink_factory_init (plugin)) return FALSE; #if 0 @@ -49,6 +43,12 @@ plugin_init (GstPlugin * plugin) #endif GST_DEBUG_CATEGORY_INIT (esd_debug, "esd", 0, "ESounD elements"); + +#ifdef ENABLE_NLS + setlocale (LC_ALL, ""); + bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); +#endif /* ENABLE_NLS */ + return TRUE; } |