mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-10-31 14:48:55 +00:00
8aa5125d5b
Create a single, global GDK GL context and the corresponding GStreamer GL display and wrapped GStreamer GL context when initializing the first sink and continue using that for all further sinks. Additionally, don't create a full GStreamer GL context inside the sink but only distribute the wrapped GL context in the pipeline so that elements that actually need a full GL context can create one that is sharing with that one. The sink itself does not need a full GStreamer GL context. Then inside the sink check that any GL memory that arrives was created by a GL context that can share with the wrapped GDK GL context and only then use it. And lastly, use the correct GL contexts for a) creating a sync point and b) actually waiting on it. Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/318 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1099> |
||
---|---|---|
.. | ||
cdg | ||
closedcaption | ||
dav1d | ||
ffv1 | ||
gif | ||
gtk4 | ||
hsv | ||
png | ||
rav1e | ||
videofx | ||
webp |