encoding-profile: set_restriction should accept null as valid
authorThiago Santos <thiagossantos@gmail.com>
Tue, 2 Oct 2018 00:51:26 +0000 (17:51 -0700)
committerThiago Santos <thiago@mode.net>
Tue, 2 Oct 2018 01:05:39 +0000 (18:05 -0700)
commit6be312a7592485aab220bf23a486b616df57cd61
treef20f2660c68b53db7b5498a366667a6689f21028
parent1d271f9a15b1a814035fd77e05d6e35b90825b93
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