From bbe284554a4609bb83661ba49c18be01ca825b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Sat, 5 Nov 2022 15:45:06 +0100 Subject: [PATCH] components: Use GstPlay instead of GstPlayer for video player --- Cargo.lock | 12 +++--- Cargo.toml | 2 +- data/resources/ui/components-video-player.ui | 6 +-- meson.build | 8 ++-- src/components/video_player.rs | 42 +++++++++++++++----- src/components/video_player_renderer.rs | 10 ++--- 6 files changed, 49 insertions(+), 31 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8f9c9de4..920a5353 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1166,7 +1166,7 @@ dependencies = [ "gstreamer", "gstreamer-base", "gstreamer-pbutils", - "gstreamer-player", + "gstreamer-play", "gstreamer-video", "gtk-macros", "gtk4", @@ -1880,25 +1880,25 @@ dependencies = [ ] [[package]] -name = "gstreamer-player" +name = "gstreamer-play" version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "796e053b45803544c37a150ae6cbedc8019bc5f410dff78aa6041e7a1a969f2b" +checksum = "c10306f4665fab20777aa86ca77eb9bb4c3e9ae0e57b83ae829afede461dd4df" dependencies = [ "bitflags", "glib", "gstreamer", - "gstreamer-player-sys", + "gstreamer-play-sys", "gstreamer-video", "libc", "once_cell", ] [[package]] -name = "gstreamer-player-sys" +name = "gstreamer-play-sys" version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7930b84f995cf393906ee8499d7bf643aba1899ace61e20fee0ea416ad532f32" +checksum = "40438a38c5027da6f3e9d50d3862d11b877202fabd8e469f0d1888730167177a" dependencies = [ "glib-sys", "gobject-sys", diff --git a/Cargo.toml b/Cargo.toml index e51d8a28..9ac53cf1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,7 @@ ashpd = { version = "0.4.0-alpha.1", features = [ gst = { version = "0.19.1", package = "gstreamer" } gst_base = { version = "0.19.1", package = "gstreamer-base" } gst_video = { version = "0.19.0", package = "gstreamer-video" } -gst_player = { version = "0.19.0", package = "gstreamer-player" } +gst_play = { version = "0.19.0", package = "gstreamer-play" } gst_gtk = { version = "0.9.0", package = "gst-plugin-gtk4" } gst_pbutils = { version = "0.19.0", package = "gstreamer-pbutils" } image = "0.24" diff --git a/data/resources/ui/components-video-player.ui b/data/resources/ui/components-video-player.ui index a9de1adb..57325502 100644 --- a/data/resources/ui/components-video-player.ui +++ b/data/resources/ui/components-video-player.ui @@ -1,13 +1,9 @@ - + - - - -