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:
Rob Bradford 2012-12-05 18:47:03 +00:00 committed by Kristian Høgsberg
parent 3050d8fa94
commit 4988703086

View file

@ -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;