Commit 0c867626 authored by Thiago Sousa Santos's avatar Thiago Sousa Santos Committed by Tim-Philipp Müller

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.
parent 6ab2b317
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment