play: Make ownership of video-sink clearer in combination with floating references
authorSebastian Dröge <sebastian@centricular.com>
Sat, 13 Aug 2022 08:50:20 +0000 (11:50 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 13 Aug 2022 09:16:16 +0000 (12:16 +0300)
commitaff79db608dbd41fd9c5f6ffb6496727efbdd7d0
treeb49facd199beb24862aca34576f06091d583673e
parentf060b8b6f3cb58ca49934a8466d572a6d1605eca
play: Make ownership of video-sink clearer in combination with floating references

And correctly handle the case of VideoRenderer::create_video_sink() not
actually returning a floating reference, which might be tricky for some
bindings.

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