Update to rav1e 0.5 and async-tungstenite 0.16

Also add an asm feature to rav1e, which requires nasm to be in place.
This commit is contained in:
Sebastian Dröge 2021-11-17 10:10:00 +02:00
parent 58322bcc96
commit f817f6e9b9
3 changed files with 5 additions and 4 deletions

View file

@ -22,7 +22,7 @@ rusoto_signature = "0.47"
url = "2" url = "2"
percent-encoding = "2" percent-encoding = "2"
tokio = { version = "1.0", features = [ "rt-multi-thread" ] } tokio = { version = "1.0", features = [ "rt-multi-thread" ] }
async-tungstenite = { version = "0.15", features = ["tokio", "tokio-runtime", "tokio-native-tls"] } async-tungstenite = { version = "0.16", features = ["tokio", "tokio-runtime", "tokio-native-tls"] }
nom = "7" nom = "7"
crc = "2" crc = "2"
byteorder = "1.3.4" byteorder = "1.3.4"

View file

@ -11,7 +11,7 @@ rust-version = "1.56"
[dependencies] [dependencies]
gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" } gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
gst-video = { package = "gstreamer-video", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_12"] } gst-video = { package = "gstreamer-video", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_12"] }
rav1e = { version = "0.4", default-features = false } rav1e = { version = "0.5", default-features = false }
once_cell = "1.0" once_cell = "1.0"
[dev-dependencies] [dev-dependencies]
@ -29,6 +29,7 @@ gst-plugin-version-helper = { path="../../version-helper" }
# GStreamer 1.14 is required for static linking # GStreamer 1.14 is required for static linking
static = ["gst/v1_14"] static = ["gst/v1_14"]
capi = [] capi = []
asm = ["rav1e/asm"]
[package.metadata.capi] [package.metadata.capi]
min_version = "0.8.0" min_version = "0.8.0"

View file

@ -130,7 +130,7 @@ impl Context {
} else { } else {
rav1e::prelude::FrameTypeOverride::No rav1e::prelude::FrameTypeOverride::No
}, },
opaque: Some(Box::new(frame_number)), opaque: Some(rav1e::prelude::Opaque::new(frame_number)),
}), }),
)) ))
} else { } else {
@ -167,7 +167,7 @@ impl Context {
} else { } else {
rav1e::prelude::FrameTypeOverride::No rav1e::prelude::FrameTypeOverride::No
}, },
opaque: Some(Box::new(frame_number)), opaque: Some(rav1e::prelude::Opaque::new(frame_number)),
}), }),
)) ))
} else { } else {