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:
committed by
Kristian Høgsberg
parent
3050d8fa94
commit
4988703086
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user