Emit reset noti even if attached buffer is empty in flush 58/318758/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 23 Jan 2025 08:55:46 +0000 (17:55 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Thu, 23 Jan 2025 08:56:58 +0000 (17:56 +0900)
for notifying reset to wayland-tbm

Change-Id: If6b304e3394279a44b7ba45304d03cae759fadde

src/tbm_surface_queue.c

index 914f86952555d7bc6d4d2f72b7b435c01f1b843b..6ef5d91ac9a4dcea3e515624be0cbaf3321f7ede 100644 (file)
@@ -2038,6 +2038,9 @@ tbm_surface_queue_flush(tbm_surface_queue_h surface_queue)
        if (surface_queue->num_attached == 0) {
                pthread_mutex_unlock(&surface_queue->lock);
                _tbm_surf_queue_mutex_unlock();
+
+               _notify_emit(surface_queue, &surface_queue->reset_noti);
+
                return TBM_SURFACE_QUEUE_ERROR_NONE;
        }