[vaapi] Fix fuzzer error

If buffer allocation fails during a mid stream buffer reallocation then
the method CoreCodecMidStreamOutputBufferReConfigFinish() will never be
called and instead CoreCodecStopStream() will be called. Ensure that we
stop waiting if either is called. Also if output_re_config_required is
false when onCoreCodecMidStreamOutputConstraintsChange() is called then
the buffers are not reallocated, meaning that we should not wait since
CoreCodecMidStreamOutputBufferReConfigFinish() will not be called and
instead the new buffer constraints will be sent instead.

Bug: 103142
Change-Id: I260b5a2a9d99eb292534085c73970c3775db85f1
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/693807
Reviewed-by: John Bauman <jbauman@google.com>
Commit-Queue: Stefan Bossbaly <stefanbossbaly@google.com>
2 files changed
tree: 9f4f5305b5876123caad2c26da9c3707a6c5a17b
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. products/
  7. scripts/
  8. sdk/
  9. src/
  10. third_party/
  11. tools/
  12. zircon/
  13. .clang-format
  14. .clang-tidy
  15. .editorconfig
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. analysis_options.yaml
  22. AUTHORS
  23. BUILD.gn
  24. CODE_OF_CONDUCT.md
  25. CONTRIBUTING.md
  26. LICENSE
  27. OWNERS
  28. PATENTS
  29. pyrightconfig.json
  30. README.md
  31. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.