From d5ace1d855de3dd18dc2f125bf0d19b056e44492 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 12 Mar 2012 12:40:09 +0100 Subject: [PATCH] tests: fix for caps change --- tests/check/libs/profile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/check/libs/profile.c b/tests/check/libs/profile.c index 89e61deaa8..91264110af 100644 --- a/tests/check/libs/profile.c +++ b/tests/check/libs/profile.c @@ -39,7 +39,8 @@ fail_unless (gst_caps_is_equal (gst_encoding_profile_get_format (profile), format)); \ fail_unless_equals_string (gst_encoding_profile_get_preset (profile), preset); \ fail_unless_equals_int (gst_encoding_profile_get_presence (profile), presence); \ - fail_unless (gst_caps_is_equal (gst_encoding_profile_get_restriction (profile), restriction)); \ + if (restriction) \ + fail_unless (gst_caps_is_equal (gst_encoding_profile_get_restriction (profile), restriction)); \ } GST_START_TEST (test_profile_creation)