player: Fix object construction
authorSebastian Dröge <sebastian@centricular.com>
Sat, 13 Aug 2022 08:39:59 +0000 (11:39 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 13 Aug 2022 09:05:47 +0000 (12:05 +0300)
commitabfbcc0b6faf6333c607bc93293054d0160875ca
tree6ef0856265f3e6b156b6af7bc5e3b632d176a54f
parent15ee056fb88a36dcc7309961e4778735cc7de73c
player: Fix object construction

Ideally new() functions should simply call g_object_new() and not much
else, so let's do that here and handle all the construction properly in
a GObject way.

Now a player object created via g_object_new() is actually usable.

In addition, also fix the video-renderer property so that reading it
returns an object of the correct type.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2880>
subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c