diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2006-04-18 14:15:33 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-04-18 14:15:33 +0000 |
commit | e83351eeff17fff26caef41187f669d3c19a73e8 (patch) | |
tree | 99277cc2610beb22783f13e41cd3130b09a2812f /ext/esd/esdsink.c | |
parent | 60736b9279a8533f6ecd10679a2f607dde7c0a67 (diff) |
Add translatable error message for when we cannot connect to the sound server, as "Cannot open resource for writing" ...
Original commit message from CVS:
* ext/esd/esdsink.c: (gst_esdsink_open), (gst_esdsink_prepare):
* ext/esd/gstesd.c: (plugin_init):
* po/POTFILES.in:
Add translatable error message for when we cannot
connect to the sound server, as "Cannot open resource
for writing" isn't really an acceptable message to show
to the user in this case.
Diffstat (limited to 'ext/esd/esdsink.c')
-rw-r--r-- | ext/esd/esdsink.c | 9 |
1 files changed, 7 insertions, 2 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; } |