From 6be312a7592485aab220bf23a486b616df57cd61 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 1 Oct 2018 17:51:26 -0700 Subject: [PATCH] encoding-profile: set_restriction should accept null as valid It was checking for GST_IS_CAPS only and that would fail if the new restriction caps was NULL and its documentation says it accepts NULL as valid input. --- gst-libs/gst/pbutils/encoding-profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/pbutils/encoding-profile.c b/gst-libs/gst/pbutils/encoding-profile.c index 8e4e8cea7c..e72de83828 100644 --- a/gst-libs/gst/pbutils/encoding-profile.c +++ b/gst-libs/gst/pbutils/encoding-profile.c @@ -774,7 +774,7 @@ void gst_encoding_profile_set_restriction (GstEncodingProfile * profile, GstCaps * restriction) { - g_return_if_fail (GST_IS_CAPS (restriction)); + g_return_if_fail (restriction == NULL || GST_IS_CAPS (restriction)); g_return_if_fail (GST_IS_ENCODING_PROFILE (profile)); if (profile->restriction)