tools: call g_set_prgname() before doing the option parsing
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 16 Feb 2010 11:30:35 +0000 (11:30 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 16 Feb 2010 11:33:19 +0000 (11:33 +0000)
commitca320242f32602129e676c4f535bf00f7a337c4e
tree89375679e01f3128c7939c42354f01ee9e3927fe
parent47601cb91108655c08e3938696abe036c80f9919
tools: call g_set_prgname() before doing the option parsing

g_setprgname is implicitly called by g_option_context_new() with a check
to see if it's been set already, so set it before g_option_context_new()

Move version printing back until after the options have been parsed,
otherwise it won't work, since it evaluates a flag set by the
option parser.
tools/gst-inspect.c
tools/gst-launch.c
tools/gst-typefind.c
tools/gst-xmlinspect.c
tools/tools.h