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=da80fd3644ece1f733778c6887e9cc8a6bf7df90;hp=d84ca264806d2fcda146fc4433a80b21ba155c37;hb=5573029323801248c5ba7f88df6e594ec4b79af0;hpb=d6adb1a32912c65752b6163f2914faa0d42a3e74 diff --git a/app/main.cpp b/app/main.cpp index d84ca26..da80fd3 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 && window->buffers[0].buffer) { + if (window->buffers[0].buffer && !window->buffers[0].busy) { wl_buffer_destroy(window->buffers[0].buffer); window->buffers[0].buffer = NULL; window->wait_for_configure = false;