mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
more str null protection
Original commit message from CVS: more str null protection
This commit is contained in:
parent
03159ca232
commit
6e59ecdf7b
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-10-11 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* tools/gst-launch.c: (main):
|
||||||
|
more null protecting
|
||||||
|
|
||||||
2005-10-11 Thomas Vander Stichele <thomas at apestaart dot org>
|
2005-10-11 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* gst/gst-i18n-lib.h:
|
* gst/gst-i18n-lib.h:
|
||||||
|
|
|
@ -530,7 +530,7 @@ main (int argc, char *argv[])
|
||||||
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
|
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
|
||||||
g_option_context_add_group (ctx, gst_init_get_option_group ());
|
g_option_context_add_group (ctx, gst_init_get_option_group ());
|
||||||
if (!g_option_context_parse (ctx, &argc, &argv, &err)) {
|
if (!g_option_context_parse (ctx, &argc, &argv, &err)) {
|
||||||
g_print ("Error initializing: %s\n", err->message);
|
g_print ("Error initializing: %s\n", GST_STR_NULL (err->message));
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -585,14 +585,15 @@ main (int argc, char *argv[])
|
||||||
if (!pipeline) {
|
if (!pipeline) {
|
||||||
if (error) {
|
if (error) {
|
||||||
fprintf (stderr, _("ERROR: pipeline could not be constructed: %s.\n"),
|
fprintf (stderr, _("ERROR: pipeline could not be constructed: %s.\n"),
|
||||||
error->message);
|
GST_STR_NULL (error->message));
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
} else {
|
} else {
|
||||||
fprintf (stderr, _("ERROR: pipeline could not be constructed.\n"));
|
fprintf (stderr, _("ERROR: pipeline could not be constructed.\n"));
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
} else if (error) {
|
} else if (error) {
|
||||||
fprintf (stderr, _("WARNING: erroneous pipeline: %s\n"), error->message);
|
fprintf (stderr, _("WARNING: erroneous pipeline: %s\n"),
|
||||||
|
GST_STR_NULL (error->message));
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue