mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
Bug 1693849 [PipeWire] Always check allocated video buffer size, r=ng
Differential Revision: https://phabricator.services.mozilla.com/D105802
This commit is contained in:
parent
7bb1cc6abf
commit
6d59f634f7
@ -406,8 +406,7 @@ void BaseCapturerPipeWire::HandleBuffer(pw_buffer* buffer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
rtc::CritScope lock(¤t_frame_lock_);
|
rtc::CritScope lock(¤t_frame_lock_);
|
||||||
if (!current_frame_ ||
|
if (!current_frame_ || !video_size_.equals(video_size_prev)) {
|
||||||
(video_metadata_use_ && !video_size_.equals(video_size_prev))) {
|
|
||||||
current_frame_ =
|
current_frame_ =
|
||||||
std::make_unique<uint8_t[]>
|
std::make_unique<uint8_t[]>
|
||||||
(video_size_.width() * video_size_.height() * kBytesPerPixel);
|
(video_size_.width() * video_size_.height() * kBytesPerPixel);
|
||||||
|
Loading…
Reference in New Issue
Block a user