value: Use g_critical() when trying to serialize things that can't be

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2823>
This commit is contained in:
Olivier Crête 2022-08-24 12:42:12 -04:00 committed by GStreamer Marge Bot
parent 927334ef43
commit 8e3e6ddba3

View file

@ -390,7 +390,7 @@ _priv_gst_value_serialize_any_list (const GValue * value, const gchar * begin,
g_string_append_len (s, ", ", 2);
}
} else {
GST_WARNING ("Could not serialize list/array value of type '%s'",
g_critical ("Could not serialize list/array value of type '%s'",
G_VALUE_TYPE_NAME (v));
}
}
@ -457,7 +457,7 @@ _gst_value_serialize_g_value_array (const GValue * value, const gchar * begin,
g_string_append_len (s, ", ", 2);
}
} else {
GST_WARNING ("Could not serialize list/array value of type '%s'",
g_critical ("Could not serialize list/array value of type '%s'",
G_VALUE_TYPE_NAME (v));
}
}