mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +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>
|
||||
|
||||
* docs/Makefile.am:
|
||||
|
|
|
@ -307,12 +307,17 @@ print_element_properties_info (GstElement * element)
|
|||
GParamSpecString *pstring = G_PARAM_SPEC_STRING (param);
|
||||
|
||||
n_print ("%-23.23s String. ", "");
|
||||
g_print ("Default: \"%s\" ", pstring->default_value);
|
||||
|
||||
if (pstring->default_value == NULL)
|
||||
g_print ("Default: null ");
|
||||
else
|
||||
g_print ("Default: \"%s\" ", pstring->default_value);
|
||||
|
||||
if (readable) {
|
||||
const char *string_val = g_value_get_string (&value);
|
||||
|
||||
if (string_val == NULL)
|
||||
g_print ("Current: \"\"");
|
||||
g_print ("Current: null");
|
||||
else
|
||||
g_print ("Current: \"%s\"", string_val);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue