From: Changyeon Lee Date: Thu, 23 Jan 2025 08:55:46 +0000 (+0900) Subject: Emit reset noti even if attached buffer is empty in flush X-Git-Tag: accepted/tizen/unified/20250210.160154~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F58%2F318758%2F1;p=platform%2Fcore%2Fuifw%2Flibtbm.git Emit reset noti even if attached buffer is empty in flush for notifying reset to wayland-tbm Change-Id: If6b304e3394279a44b7ba45304d03cae759fadde --- diff --git a/src/tbm_surface_queue.c b/src/tbm_surface_queue.c index 914f869..6ef5d91 100644 --- a/src/tbm_surface_queue.c +++ b/src/tbm_surface_queue.c @@ -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; }