wpe: Rename undeserializable_type to not_deserializable_type

Making it more readable.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2273>
This commit is contained in:
Thibault Saunier 2021-05-26 00:12:59 -04:00
parent da150c18bb
commit c7684b48d0

View file

@ -79,7 +79,7 @@ create_gerror_bus_msg (GstElement * element, GstMessage * message)
/* Those types can't be deserialized on the receiver
* side, so we just ignore them for now */
#define IS_UNDESERIALIZABLE_TYPE(value) \
#define IS_NOT_DESERIALIZABLE_TYPE(value) \
(g_type_is_a ((G_VALUE_TYPE (value)), G_TYPE_OBJECT) || \
g_type_is_a ((G_VALUE_TYPE (value)), G_TYPE_ERROR) || \
g_type_is_a ((G_VALUE_TYPE (value)), GST_TYPE_CONTEXT) || \
@ -89,7 +89,7 @@ static gboolean
cleanup_structure (GQuark field_id, GValue * value, gpointer self)
{
/* We need soome API in core to make that happen cleanly */
if (IS_UNDESERIALIZABLE_TYPE (value)) {
if (IS_NOT_DESERIALIZABLE_TYPE (value)) {
return FALSE;
}
@ -97,7 +97,7 @@ cleanup_structure (GQuark field_id, GValue * value, gpointer self)
gint i;
for (i = 0; i < gst_value_list_get_size (value); i++) {
if (IS_UNDESERIALIZABLE_TYPE (gst_value_list_get_value (value, i)))
if (IS_NOT_DESERIALIZABLE_TYPE (gst_value_list_get_value (value, i)))
return FALSE;
}
}
@ -106,7 +106,7 @@ cleanup_structure (GQuark field_id, GValue * value, gpointer self)
gint i;
for (i = 0; i < gst_value_array_get_size (value); i++) {
if (IS_UNDESERIALIZABLE_TYPE (gst_value_array_get_value (value, i)))
if (IS_NOT_DESERIALIZABLE_TYPE (gst_value_array_get_value (value, i)))
return FALSE;
}
}