mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 12:35:26 +00:00
virtio: video: decoder: remove lifetimes on VDA instance/sessions
The libvda API has been changes and both instances and sessions do not use lifetimes anymore. Remove them from our code or it won't compile. BUG=b:169295147 TEST=cargo build --features="video-decoder" Cq-Depend: chromium:2838714 Change-Id: I7ba771abcdddfc4bc366dc38e37c0568ce5a9cb3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2845633 Tested-by: Alexandre Courbot <acourbot@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
This commit is contained in:
parent
33079335ad
commit
10722b260e
1 changed files with 5 additions and 5 deletions
|
@ -116,11 +116,11 @@ impl From<libvda::decode::Event> for DecoderEvent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct LibvdaSession<'a> {
|
pub struct LibvdaSession {
|
||||||
session: libvda::decode::Session<'a>,
|
session: libvda::decode::Session,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> DecoderSession for LibvdaSession<'a> {
|
impl DecoderSession for LibvdaSession {
|
||||||
fn set_output_buffer_count(&self, count: usize) -> VideoResult<()> {
|
fn set_output_buffer_count(&self, count: usize) -> VideoResult<()> {
|
||||||
Ok(self.session.set_output_buffer_count(count)?)
|
Ok(self.session.set_output_buffer_count(count)?)
|
||||||
}
|
}
|
||||||
|
@ -179,8 +179,8 @@ impl<'a> DecoderSession for LibvdaSession<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> DecoderBackend for &'a libvda::decode::VdaInstance {
|
impl DecoderBackend for &libvda::decode::VdaInstance {
|
||||||
type Session = LibvdaSession<'a>;
|
type Session = LibvdaSession;
|
||||||
|
|
||||||
fn new_session(&self, format: Format) -> VideoResult<Self::Session> {
|
fn new_session(&self, format: Format) -> VideoResult<Self::Session> {
|
||||||
let profile = libvda::Profile::try_from(format)?;
|
let profile = libvda::Profile::try_from(format)?;
|
||||||
|
|
Loading…
Reference in a new issue