Original commit message from CVS:
Fix gst_init() so that it doesn't fail when passed two NULLs as parameters.
Was dereferencing the argv pointer to get progname: now defaults to
"gstprog".
if (!g_thread_supported ()) g_thread_init (NULL);
- _gst_progname = g_strdup(*argv[0]);
-
gtk_init (argc,argv);
if (!gst_init_check (argc,argv)) {
gboolean ret = TRUE;
gboolean showhelp = FALSE;
+ _gst_progname = NULL;
+
if (argc && argv) {
gint i, j, k;
+ _gst_progname = g_strdup(*argv[0]);
+
for (i=1; i< *argc; i++) {
if (!strncmp ("--gst-info-mask=", (*argv)[i], 16)) {
guint32 val;
}
}
+ if (_gst_progname == NULL) {
+ _gst_progname = g_strdup("gstprog");
+ }
+
/* check for ENV variables */
{