hlsmultivariantsink: Add hlssink3 and cmafmux as dev dependencies

This is required for the hlsmultivariantsink tests to work. Also
register the plugins before running the test.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1515>
This commit is contained in:
Sanchayan Maity 2025-01-10 17:56:55 +05:30
parent 362898cd54
commit 05b5aa939f
2 changed files with 4 additions and 0 deletions

View file

@ -25,6 +25,8 @@ gst-video.workspace = true
gst-check.workspace = true
m3u8-rs = "5.0"
anyhow = "1"
gst-plugin-hlssink3 = { path = "../hlssink3" }
gst-plugin-fmp4 = { path = "../../mux/fmp4" }
[build-dependencies]
gst-plugin-version-helper.workspace = true

View file

@ -61,6 +61,8 @@ fn init() {
INIT.call_once(|| {
gst::init().unwrap();
gstfmp4::plugin_register_static().expect("Need cmafmux for hlsmultivariantsink test");
gsthlssink3::plugin_register_static().expect("Need hlssink3 for hlsmultivariantsink test");
gsthlsmultivariantsink::plugin_register_static().expect("hlsmultivariantsink test");
});
}