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=62ea3a03db58e788e81fa842a5ff0211ca10706d;hp=182489e437341e2f69f715891bfc3b2ea291adad;hb=ff2f57d7dbfeef565346956be23a65e9b59ba9a3;hpb=3c3a41eb2b33ba2253eb7439ff6290c414143416 diff --git a/app/main.cpp b/app/main.cpp index 182489e..62ea3a0 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -158,7 +158,7 @@ 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) { - if (!window->buffers[0].busy) { + if (!window->buffers[0].busy && window->buffers[0].buffer) { wl_buffer_destroy(window->buffers[0].buffer); window->buffers[0].buffer = NULL; window->wait_for_configure = false;