crosvm/media
Alexandre Courbot 5f01cee736 media: libva: create Rc'd displays and contexts
libva Displays and Contexts are only useful if they are
reference-counted, and all callers of `create_context` immediately wraps
the result into a Rc. Make `create_context` return a `Rc` directly to
make sure we cannot end up with stray objects.

BUG=b:214478588
TEST=cargo test --features vaapi -p cros-codecs
TEST=cargo test --features "video-decoder,vaapi" -p devices

Change-Id: I04c90059df71ea8a09a1fa937d731e1f4a5c27fc
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3932441
Auto-Submit: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
2022-10-31 10:35:23 +00:00
..
cros-codecs media: libva: create Rc'd displays and contexts 2022-10-31 10:35:23 +00:00
ffmpeg Re-enable video-decoder feature 2022-10-06 18:28:56 +00:00
libva media: libva: create Rc'd displays and contexts 2022-10-31 10:35:23 +00:00
libvda media: libvda: allow to build without linking to libvda 2022-10-21 13:57:31 +00:00