play: Fix object construction
authorSebastian Dröge <sebastian@centricular.com>
Sat, 13 Aug 2022 08:49:08 +0000 (11:49 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 13 Aug 2022 09:16:16 +0000 (12:16 +0300)
commitf060b8b6f3cb58ca49934a8466d572a6d1605eca
tree48984612f19ba72f001aa04cf35feb300da4f24d
parentabfbcc0b6faf6333c607bc93293054d0160875ca
play: 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 play object created via g_object_new() is actually usable.

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