libs: display: initialize value if they are not yet
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 22 Sep 2017 16:59:49 +0000 (18:59 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 22 Sep 2017 18:06:42 +0000 (20:06 +0200)
commitb23ccc69b035dc4d79b7411570debfe538928745
tree3e6335ef9667158a2930b0761aef99bd22ba0d71
parent6b35e00a287bccc2ebc036028e0e6a1b360a5063
libs: display: initialize value if they are not yet

This is a difference between the GObject API and the GstVaapi one: the
GValue passed to get a property value, in GObject has to be
initialized with g_value_init(), but in GstVaapi is has not.

In order to overcome this mismatch, this patch call g_value_init()
internally only in the passed one is not already initialized.

https://bugzilla.gnome.org/show_bug.cgi?id=788058
gst-libs/gst/vaapi/gstvaapidisplay.c