mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
devices: virtio: video: remove redundant clone
We are taking ownership of params here, so no need to clone. BUG=None TEST=Video plays in Youtube. Change-Id: I1013e669cde7e5d0001992d7620643054c03d87d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2409489 Tested-by: Alexandre Courbot <acourbot@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Auto-Submit: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
This commit is contained in:
parent
09357c8fb8
commit
54dce6fb9c
1 changed files with 1 additions and 1 deletions
|
@ -604,7 +604,7 @@ impl<'a> Decoder<'a> {
|
|||
|
||||
// Only a few parameters can be changed by the guest.
|
||||
ctx.in_params.format = params.format;
|
||||
ctx.in_params.plane_formats = params.plane_formats.clone();
|
||||
ctx.in_params.plane_formats = params.plane_formats;
|
||||
}
|
||||
QueueType::Output => {
|
||||
// The guest cannot update parameters for output queue in the decoder.
|
||||
|
|
Loading…
Reference in a new issue