diff --git a/validate/tools/gst-validate.c b/validate/tools/gst-validate.c index f11dbbcc9a..5d70d2895e 100644 --- a/validate/tools/gst-validate.c +++ b/validate/tools/gst-validate.c @@ -38,6 +38,7 @@ #ifdef G_OS_UNIX #include #endif +#include /* for LC_ALL */ static gint ret = 0; static GMainLoop *mainloop; @@ -432,7 +433,7 @@ main (int argc, gchar ** argv) " if no parameter passed, it will list all avalaible action types" " otherwize will print the full description of the wanted types", NULL}, - {"set-media-info", '\0', 0, G_OPTION_ARG_STRING, &media_info, + {"set-media-info", '\0', 0, G_OPTION_ARG_FILENAME, &media_info, "Set a media_info XML file descriptor to share information about the" " media file that will be reproduced.", NULL}, @@ -449,6 +450,8 @@ main (int argc, gchar ** argv) GstValidateMonitor *monitor; GstBus *bus; + setlocale (LC_ALL, ""); + g_set_prgname ("gst-validate-" GST_API_VERSION); ctx = g_option_context_new ("PIPELINE-DESCRIPTION"); g_option_context_add_main_entries (ctx, options, NULL);