glsinkbin: validate property in internal sink
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 12 Jan 2019 11:27:27 +0000 (12:27 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 12 Jan 2019 14:11:25 +0000 (15:11 +0100)
commitb1df1000b18717d1f0c22239198df2f0d9fa251c
tree7a86f14aa037a66fb5a1ce601d80ffab3b5fc791
parenta6552ee02ef441e239b9c317914a150d499fea3e
glsinkbin: validate property in internal sink

It might be the case that glgsinkbin would try to set a property to
its internal sink which doesn't exist in it, leading to a glib's
warning. For example, when playsink sets 'force-aspect-ratio' property
and glsinkbin has, as internal sink, appsink, which doesn't handle
that property.

The patch validates the incoming property to forward to internal sink
if it exists in the internal sink and both properties has the same
type.
ext/gl/gstglsinkbin.c