GstMessage *message;
GstStructure *structure;
- if (!g_utf8_validate (debug, -1, NULL)) {
+ if (debug && !g_utf8_validate (debug, -1, NULL)) {
debug = NULL;
g_warning ("Trying to set debug field of error message, but "
"string is not valid UTF-8. Please file a bug.");
GstMessage *message;
GstStructure *structure;
- if (!g_utf8_validate (debug, -1, NULL)) {
+ if (debug && !g_utf8_validate (debug, -1, NULL)) {
debug = NULL;
g_warning ("Trying to set debug field of warning message, but "
"string is not valid UTF-8. Please file a bug.");
GstMessage *message;
GstStructure *structure;
- if (!g_utf8_validate (debug, -1, NULL)) {
+ if (debug && !g_utf8_validate (debug, -1, NULL)) {
debug = NULL;
g_warning ("Trying to set debug field of info message, but "
"string is not valid UTF-8. Please file a bug.");