From 0d554c877f225b520875a2da53c5799edb1449d4 Mon Sep 17 00:00:00 2001 From: Dave Patrick Caberto Date: Sat, 20 Jul 2024 09:37:27 +0800 Subject: [PATCH] build(cargo): enable gtk4paintablesink dmabuf feature --- Cargo.lock | 27 +++++++++++++++++++++++++++ Cargo.toml | 1 + 2 files changed, 28 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 56e9ffe7..0c0865bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -656,6 +656,7 @@ dependencies = [ "gdk4-x11", "gst-plugin-version-helper", "gstreamer", + "gstreamer-allocators", "gstreamer-base", "gstreamer-gl", "gstreamer-gl-egl", @@ -702,6 +703,32 @@ dependencies = [ "thiserror", ] +[[package]] +name = "gstreamer-allocators" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cab5a724c4af4f18bb5cbe8b03adc188c3254f6a6acfc981ec28e00cf2f4f088" +dependencies = [ + "glib", + "gstreamer", + "gstreamer-allocators-sys", + "libc", + "once_cell", +] + +[[package]] +name = "gstreamer-allocators-sys" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05c49cf4d560666db1d83afa3aa3200d6dff3675ab672746260514e8583f4b68" +dependencies = [ + "glib-sys", + "gobject-sys", + "gstreamer-sys", + "libc", + "system-deps", +] + [[package]] name = "gstreamer-base" version = "0.23.0" diff --git a/Cargo.toml b/Cargo.toml index c910cfd3..ffa7f226 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,6 +26,7 @@ gsettings-macro = "0.2" gst = { package = "gstreamer", version = "0.23", features = ["v1_20"] } gst-plugin-gif = "0.13" gst-plugin-gtk4 = { version = "0.13", features = [ + "dmabuf", "gtk_v4_14", "wayland", "x11egl",