summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Santos <thiagossantos@gmail.com>2018-10-01 17:51:26 -0700
committerThiago Santos <thiago@mode.net>2018-10-01 18:05:39 -0700
commit6be312a7592485aab220bf23a486b616df57cd61 (patch)
treef20f2660c68b53db7b5498a366667a6689f21028
parent1d271f9a15b1a814035fd77e05d6e35b90825b93 (diff)
downloadgst-plugins-base-6be312a7592485aab220bf23a486b616df57cd61.tar.gz
gst-plugins-base-6be312a7592485aab220bf23a486b616df57cd61.tar.xz
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.
-rw-r--r--gst-libs/gst/pbutils/encoding-profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/pbutils/encoding-profile.c b/gst-libs/gst/pbutils/encoding-profile.c
index 8e4e8cea7..e72de8382 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)