mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 12:15:34 +08:00
[fix] Add validity check for props
This commit is contained in:
@@ -1331,7 +1331,12 @@ void Render::ProcessSdlEvent() {
|
|||||||
case STREAM_FRASH: {
|
case STREAM_FRASH: {
|
||||||
auto* props = static_cast<SubStreamWindowProperties*>(event.user.data1);
|
auto* props = static_cast<SubStreamWindowProperties*>(event.user.data1);
|
||||||
if (!props) {
|
if (!props) {
|
||||||
LOG_ERROR("Invalid stream window properties");
|
continue;
|
||||||
|
}
|
||||||
|
if (props->video_width_ <= 0 || props->video_height_ <= 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!props->dst_buffer_) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user