playsink: improve GL context sharing
authorEnrique Ocaña González <eocanha@igalia.com>
Mon, 28 Mar 2022 16:43:27 +0000 (18:43 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 30 Mar 2022 15:32:19 +0000 (15:32 +0000)
commit2a30f1038a10fea6fb99d3906c1c1380d1a6003a
treea7cc87923db677c299e70b4965e198e6f873c14e
parent656baad90f2f65cbd67dde7a560079b1e90334a0
playsink: improve GL context sharing

Configure playsink tried element with the bus of the main pipeline.
That tried element can be a gl video sink, which would benefit from being
able to propagate context messages to the main pipeline and have other
internal pipeline elements configured with it. Having different elements
configured with the same GL context allows them to share buffers with
video/x-raw(memory:GLMemory) caps and achieving zero-copy.

Thanks to Alicia Boya García <aboya@igalia.com> for her work co-debugging
the issue and contributing to find a solution.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2056>
subprojects/gst-plugins-base/gst/playback/gstplaysink.c