mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
tools/gst-inspect.c: Can't pass NULL strings to g_print() on windows.
Original commit message from CVS: * tools/gst-inspect.c: (print_element_properties_info): Can't pass NULL strings to g_print() on windows.
This commit is contained in:
parent
0a0d29d1b5
commit
8ad5e77140
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-10-08 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* tools/gst-inspect.c: (print_element_properties_info):
|
||||||
|
Can't pass NULL strings to g_print() on windows.
|
||||||
|
|
||||||
2005-10-08 Thomas Vander Stichele <thomas at apestaart dot org>
|
2005-10-08 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* docs/Makefile.am:
|
* docs/Makefile.am:
|
||||||
|
|
|
@ -307,12 +307,17 @@ print_element_properties_info (GstElement * element)
|
||||||
GParamSpecString *pstring = G_PARAM_SPEC_STRING (param);
|
GParamSpecString *pstring = G_PARAM_SPEC_STRING (param);
|
||||||
|
|
||||||
n_print ("%-23.23s String. ", "");
|
n_print ("%-23.23s String. ", "");
|
||||||
|
|
||||||
|
if (pstring->default_value == NULL)
|
||||||
|
g_print ("Default: null ");
|
||||||
|
else
|
||||||
g_print ("Default: \"%s\" ", pstring->default_value);
|
g_print ("Default: \"%s\" ", pstring->default_value);
|
||||||
|
|
||||||
if (readable) {
|
if (readable) {
|
||||||
const char *string_val = g_value_get_string (&value);
|
const char *string_val = g_value_get_string (&value);
|
||||||
|
|
||||||
if (string_val == NULL)
|
if (string_val == NULL)
|
||||||
g_print ("Current: \"\"");
|
g_print ("Current: null");
|
||||||
else
|
else
|
||||||
g_print ("Current: \"%s\"", string_val);
|
g_print ("Current: \"%s\"", string_val);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue