commit | 4988703086b491f3d3d9cfd8d1643b8fb1222ec1 | [log] [tgz] |
---|---|---|
author | Rob Bradford <rob@linux.intel.com> | Wed Dec 05 18:47:03 2012 +0000 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Thu Dec 06 22:30:49 2012 -0500 |
tree | 33a205170a820bf209643a09ae41e2880cad91ea | |
parent | 3050d8fa94782202edb10c84e73ebad6dad9ac1f [diff] [blame] |
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.
diff --git a/src/screenshooter.c b/src/screenshooter.c index 422c2a9..24999f3 100644 --- a/src/screenshooter.c +++ b/src/screenshooter.c
@@ -418,7 +418,7 @@ break; default: weston_log("unknown recorder format\n"); - break; + return; } header.width = output->current->width;