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.
Rob Bradford 12 years ago committed by Kristian Høgsberg
parent 3050d8fa94
commit 4988703086
  1. 2
      src/screenshooter.c

@ -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…
Cancel
Save