check: gstvalue: Check return value

As is done everywhere else

CID #1455540

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/472>
This commit is contained in:
Edward Hervey 2020-05-08 08:02:12 +02:00 committed by Edward Hervey
parent f085dabebc
commit 9daf1ca44e

View file

@ -2787,7 +2787,7 @@ GST_START_TEST (test_serialize_deserialize_caps)
/* now deserialize again */ /* now deserialize again */
g_value_init (&value2, GST_TYPE_CAPS); g_value_init (&value2, GST_TYPE_CAPS);
gst_value_deserialize (&value2, serialized); fail_unless (gst_value_deserialize (&value2, serialized));
caps2 = g_value_get_boxed (&value2); caps2 = g_value_get_boxed (&value2);
fail_if (GST_CAPS_REFCOUNT_VALUE (caps2) != 1); fail_if (GST_CAPS_REFCOUNT_VALUE (caps2) != 1);