value: Use g_critical() when trying to serialize things that can't be
authorOlivier CrĂȘte <olivier.crete@collabora.com>
Wed, 24 Aug 2022 16:42:12 +0000 (12:42 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 25 Aug 2022 22:27:51 +0000 (22:27 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2823>

subprojects/gstreamer/gst/gstvalue.c

index 543f8d3..f475a4e 100644 (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));
     }
   }