summaryrefslogtreecommitdiffstats
path: root/gst/rtsp/gstrtsp.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-03-25 17:54:35 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-03-25 17:54:35 +0000
commit37634c2afb84e9a1471757e2e6c7b0f282b3f46e (patch)
tree8568f2c2869e98f0dd7aea4a31fad8b29e71e42e /gst/rtsp/gstrtsp.c
parent2199592039d14e9168704a63bfb9f9457b92e5db (diff)
rtspsrc: better error message when the RTSP extension for Real streams is missing
Try to post a decent error message when it looks like we're failing because the Real RTSP extension plugin is missing. Also add i18n bits for rtspsrc so our error messages get translated.
Diffstat (limited to 'gst/rtsp/gstrtsp.c')
-rw-r--r--gst/rtsp/gstrtsp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/rtsp/gstrtsp.c b/gst/rtsp/gstrtsp.c
index 045c03a6..37d7fbae 100644
--- a/gst/rtsp/gstrtsp.c
+++ b/gst/rtsp/gstrtsp.c
@@ -45,12 +45,20 @@
#include "config.h"
#endif
+#include "gst/gst-i18n-plugin.h"
+
#include "gstrtpdec.h"
#include "gstrtspsrc.h"
static gboolean
plugin_init (GstPlugin * plugin)
{
+#ifdef ENABLE_NLS
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+#endif /* ENABLE_NLS */
+
if (!gst_element_register (plugin, "rtspsrc", GST_RANK_NONE,
GST_TYPE_RTSPSRC))
return FALSE;