fix(iced-video): Fix the very high ram usage
Some checks failed
build / checks-matrix (push) Has been cancelled
build / checks-build (push) Has been cancelled
build / codecov (push) Has been cancelled
docs / docs (push) Has been cancelled

feat(playback): add GstPlayFlags for playbin and playbin3
This commit is contained in:
uttarayan21
2025-12-26 10:29:31 +05:30
parent 4ed15c97f0
commit a7ffa69326
13 changed files with 339 additions and 59 deletions

148
Cargo.lock generated
View File

@@ -3049,12 +3049,15 @@ checksum = "12101ecc8225ea6d675bc70263074eab6169079621c2186fe0c66590b2df9681"
name = "gst"
version = "0.1.0"
dependencies = [
"bitflags 2.10.0",
"error-stack",
"futures",
"futures-lite 2.6.1",
"glib 0.21.5",
"glib-sys 0.21.5",
"gstreamer 0.24.4",
"gstreamer-app 0.24.4",
"gstreamer-base 0.24.4",
"gstreamer-video 0.24.4",
"smol",
"thiserror 2.0.17",
@@ -3594,17 +3597,16 @@ dependencies = [
[[package]]
name = "iced"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "000e01026c93ba643f8357a3db3ada0e6555265a377f6f9291c472f6dd701fb3"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"iced_core",
"iced_debug",
"iced_debug 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"iced_devtools",
"iced_futures",
"iced_futures 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"iced_renderer",
"iced_runtime",
"iced_runtime 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"iced_widget",
"iced_winit",
"iced_winit 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"image",
"thiserror 2.0.17",
]
@@ -3617,7 +3619,7 @@ dependencies = [
"gst",
"iced",
"iced_core",
"iced_futures",
"iced_futures 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
"iced_renderer",
"iced_wgpu",
"thiserror 2.0.17",
@@ -3628,8 +3630,7 @@ dependencies = [
[[package]]
name = "iced_beacon"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02a48f970444257a5e8b19def673f14f0d79c159fa851055e2a861683c3f8845"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"bincode",
"futures",
@@ -3644,8 +3645,7 @@ dependencies = [
[[package]]
name = "iced_core"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91ab1937d699403e7e69252ae743a902bcee9f4ab2052cc4c9a46fcf34729d85"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"bitflags 2.10.0",
"bytes",
@@ -3665,21 +3665,30 @@ name = "iced_debug"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25035ab0215a620e53f4103e36fc4e59a1fb2817e4bfc38a30ad27b4202ea0be"
dependencies = [
"iced_core",
"iced_futures 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log",
]
[[package]]
name = "iced_debug"
version = "0.14.0"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"iced_beacon",
"iced_core",
"iced_futures",
"iced_futures 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"log",
]
[[package]]
name = "iced_devtools"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59b8e2a306ac5c583234b02f5404afdb7b7467c8f72a4a44ad3e7be30fc4b339"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"iced_debug",
"iced_program",
"iced_debug 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"iced_program 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"iced_widget",
"log",
]
@@ -3689,6 +3698,19 @@ name = "iced_futures"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c0c85ccad42dfbec7293c36c018af0ea0dbcc52d137a4a9a0b0f6822a3fdf0a"
dependencies = [
"futures",
"iced_core",
"log",
"rustc-hash 2.1.1",
"wasm-bindgen-futures",
"wasmtimer",
]
[[package]]
name = "iced_futures"
version = "0.14.0"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"futures",
"iced_core",
@@ -3710,7 +3732,25 @@ dependencies = [
"cosmic-text 0.15.0",
"half",
"iced_core",
"iced_futures",
"iced_futures 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log",
"raw-window-handle",
"rustc-hash 2.1.1",
"thiserror 2.0.17",
"unicode-segmentation",
]
[[package]]
name = "iced_graphics"
version = "0.14.0"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"bitflags 2.10.0",
"bytemuck",
"cosmic-text 0.15.0",
"half",
"iced_core",
"iced_futures 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"image",
"kamadak-exif",
"log",
@@ -3727,17 +3767,25 @@ version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6dfafec2947cda688d8eb00dac337ba11aa60f9ef6335aed343e189d26e4a673"
dependencies = [
"iced_graphics",
"iced_runtime",
"iced_graphics 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
"iced_runtime 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "iced_program"
version = "0.14.0"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"iced_graphics 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"iced_runtime 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
]
[[package]]
name = "iced_renderer"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "250cc0802408e8c077986ec56c7d07c65f423ee658a4b9fd795a1f2aae5dac05"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"iced_graphics",
"iced_graphics 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"iced_tiny_skia",
"iced_wgpu",
"log",
@@ -3752,7 +3800,19 @@ checksum = "d1889b819ce4c06674183242e336c8d49465665441396914dc07cc86f44fa8d4"
dependencies = [
"bytes",
"iced_core",
"iced_futures",
"iced_futures 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
"raw-window-handle",
"thiserror 2.0.17",
]
[[package]]
name = "iced_runtime"
version = "0.14.0"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"bytes",
"iced_core",
"iced_futures 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"raw-window-handle",
"sipper",
"thiserror 2.0.17",
@@ -3761,13 +3821,12 @@ dependencies = [
[[package]]
name = "iced_tiny_skia"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe0acf8b75a3bc914aff5f2329fdffc1b36eeaea29dda0e4bd232f1c62e9cc3d"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"bytemuck",
"cosmic-text 0.15.0",
"iced_debug",
"iced_graphics",
"iced_debug 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"iced_graphics 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"kurbo 0.10.4",
"log",
"rustc-hash 2.1.1",
@@ -3796,8 +3855,7 @@ dependencies = [
[[package]]
name = "iced_wgpu"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff144a999b0ca0f8a10257934500060240825c42e950ec0ebee9c8ae30561c13"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"bitflags 2.10.0",
"bytemuck",
@@ -3805,8 +3863,8 @@ dependencies = [
"futures",
"glam",
"guillotiere",
"iced_debug",
"iced_graphics",
"iced_debug 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"iced_graphics 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"log",
"lyon",
"rustc-hash 2.1.1",
@@ -3816,9 +3874,8 @@ dependencies = [
[[package]]
name = "iced_widget"
version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f86f6948998a5e031849afae1bb852f3b100c71572befa0be70b19075dcb2163"
version = "0.14.2"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"iced_renderer",
"log",
@@ -3834,8 +3891,25 @@ version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b7dbedc47562d1de3b9707d939f678b88c382004b7ab5a18f7a7dd723162d75"
dependencies = [
"iced_debug",
"iced_program",
"iced_debug 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
"iced_program 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log",
"rustc-hash 2.1.1",
"thiserror 2.0.17",
"tracing",
"wasm-bindgen-futures",
"web-sys",
"window_clipboard",
"winit",
]
[[package]]
name = "iced_winit"
version = "0.14.0"
source = "git+https://github.com/uttarayan21/iced?branch=0.14#5846d52983d7e2eecc478130ba6373f0c1f82c94"
dependencies = [
"iced_debug 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"iced_program 0.14.0 (git+https://github.com/uttarayan21/iced?branch=0.14)",
"log",
"mundy",
"rustc-hash 2.1.1",
@@ -8091,7 +8165,7 @@ dependencies = [
"iced",
"iced_video_player",
"iced_wgpu",
"iced_winit",
"iced_winit 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
"reqwest",
"tap",
"toml 0.9.8",