projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7bf7749
)
tools: output gst-inspect errors to stderr
author
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Wed, 29 Aug 2012 21:57:02 +0000
(22:57 +0100)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Wed, 29 Aug 2012 21:57:26 +0000
(22:57 +0100)
tools/gst-inspect.c
patch
|
blob
|
history
diff --git
a/tools/gst-inspect.c
b/tools/gst-inspect.c
index
9616a0e
..
af063c8
100644
(file)
--- a/
tools/gst-inspect.c
+++ b/
tools/gst-inspect.c
@@
-1542,7
+1542,7
@@
main (int argc, char *argv[])
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
g_option_context_add_group (ctx, gst_init_get_option_group ());
if (!g_option_context_parse (ctx, &argc, &argv, &err)) {
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
g_option_context_add_group (ctx, gst_init_get_option_group ());
if (!g_option_context_parse (ctx, &argc, &argv, &err)) {
- g_print ("Error initializing: %s\n", err->message);
+ g_print
err
("Error initializing: %s\n", err->message);
exit (1);
}
g_option_context_free (ctx);
exit (1);
}
g_option_context_free (ctx);
@@
-1553,12
+1553,12
@@
main (int argc, char *argv[])
gst_tools_print_version ();
if (print_all && argc > 1) {
gst_tools_print_version ();
if (print_all && argc > 1) {
- g_print ("-a requires no extra arguments\n");
+ g_print
err
("-a requires no extra arguments\n");
return 1;
}
if (uri_handlers && argc > 1) {
return 1;
}
if (uri_handlers && argc > 1) {
- g_print ("-u requires no extra arguments\n");
+ g_print
err
("-u requires no extra arguments\n");
exit (1);
}
exit (1);
}
@@
-1621,12
+1621,12
@@
main (int argc, char *argv[])
print_plugin_features (plugin);
}
} else {
print_plugin_features (plugin);
}
} else {
- g_print (_("Could not load plugin file: %s\n"), error->message);
+ g_print
err
(_("Could not load plugin file: %s\n"), error->message);
g_error_free (error);
return -1;
}
} else {
g_error_free (error);
return -1;
}
} else {
- g_print (_("No such element or plugin '%s'\n"), arg);
+ g_print
err
(_("No such element or plugin '%s'\n"), arg);
return -1;
}
}
return -1;
}
}