surface_queue: don't reset dequeue list in GUARANTEE_CYCLE mode 61/140661/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 26 Jul 2017 02:28:58 +0000 (11:28 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 26 Jul 2017 02:29:07 +0000 (11:29 +0900)
Change-Id: Icd9ce3afeebd2ffa965a7e2d4a715e595a89c843

src/tbm_surface_queue.c

index c82cc3a..6e1d770 100644 (file)
@@ -2018,7 +2018,9 @@ __tbm_queue_sequence_reset(tbm_surface_queue_h surface_queue)
        tbm_queue_sequence *data = (tbm_queue_sequence *)surface_queue->impl_data;
 
        if (surface_queue->modes & TBM_SURFACE_QUEUE_MODE_GUARANTEE_CYCLE)
-               _queue_init(&data->dequeue_list);
+               return;
+
+       _queue_init(&data->dequeue_list);
 }
 
 static void