mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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.
This commit is contained in:
parent
1d271f9a15
commit
6be312a759
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue