mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 02:58:02 +02:00
screenshooter: Abandon recording rather than use unitialised format
Abandon the recording if the format is not known - this prevents the use of an unitialised member is the header struct.
This commit is contained in:
parent
3050d8fa94
commit
4988703086
1 changed files with 1 additions and 1 deletions
|
|
@ -418,7 +418,7 @@ weston_recorder_create(struct weston_output *output, const char *filename)
|
|||
break;
|
||||
default:
|
||||
weston_log("unknown recorder format\n");
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
header.width = output->current->width;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue