devices: video: fix build

http://crrev.com/c/3911103 renamed a member of BufferInfo, but did not
update the video code that uses it.

BUG=b:3911103
TEST=cargo build --features "video-decoder,video-encoder,ffmpeg,vaapi,libvda"

Change-Id: Icc8c5c2f564ea2fdaeee12abe57cfd29c8373a72
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3920255
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
Auto-Submit: Alexandre Courbot <acourbot@chromium.org>
This commit is contained in:
Alexandre Courbot 2022-09-27 11:21:55 +09:00 committed by crosvm LUCI
parent db5bb70726
commit 980fb8896c

View file

@ -301,7 +301,7 @@ impl GuestResource {
// Safe because `buffer_info.file` is a valid file descriptor and we are stealing
// it.
desc: unsafe {
SafeDescriptor::from_raw_descriptor(buffer_info.file.into_raw_descriptor())
SafeDescriptor::from_raw_descriptor(buffer_info.handle.into_raw_descriptor())
},
modifier: buffer_info.modifier,
}),