X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=apps%2Fcamera-gstreamer.git;a=blobdiff_plain;f=app%2Fmain.cpp;fp=app%2Fmain.cpp;h=67594bf9f7da5e17e6145185c812ce75aa3a6f78;hp=da80fd3644ece1f733778c6887e9cc8a6bf7df90;hb=c6cf852237dc70ab52c8059a5876c0f966be8442;hpb=5573029323801248c5ba7f88df6e594ec4b79af0 diff --git a/app/main.cpp b/app/main.cpp index da80fd3..67594bf 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -158,6 +158,8 @@ get_next_buffer(struct window *window) * the 'old' one and force creation of the buffer with the newer * dimensions */ if (window->wait_for_configure && window->maximized) { + /* The 'old' buffer might not exist if maximized is received + * from the start. */ if (window->buffers[0].buffer && !window->buffers[0].busy) { wl_buffer_destroy(window->buffers[0].buffer); window->buffers[0].buffer = NULL;