e_hwc_window_queue: use the address of the tqueue as the key 24/193324/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 19 Nov 2018 09:41:37 +0000 (18:41 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 19 Nov 2018 09:41:37 +0000 (18:41 +0900)
Change-Id: Ib132b00663e774ee19bd6410e181141f3e2cacea

src/bin/e_hwc_window_queue.c

index a5e62c1f0b9f130f0c31e8e46191682215858ccd..ec9718506f81546ff0d23de96b3b1389169e1fa9 100644 (file)
@@ -789,7 +789,7 @@ _e_hwc_window_queue_destroy(E_Hwc_Window_Queue *queue)
    E_Hwc_Window_Queue_Buffer *queue_buffer = NULL;
 
    if (_hwc_winq_mgr)
-     eina_hash_del(_hwc_winq_mgr->hwc_winq_hash, queue->tqueue, queue);
+     eina_hash_del(_hwc_winq_mgr->hwc_winq_hash, &queue->tqueue, queue);
 
    EHWQINF("Destroy tq:%p", NULL, queue, queue->tqueue);
 
@@ -889,13 +889,13 @@ _e_hwc_window_queue_get(tbm_surface_queue_h tqueue)
 {
    E_Hwc_Window_Queue *queue = NULL;
 
-   queue = eina_hash_find(_hwc_winq_mgr->hwc_winq_hash, tqueue);
+   queue = eina_hash_find(_hwc_winq_mgr->hwc_winq_hash, &tqueue);
    if (!queue)
      {
         queue = _e_hwc_window_queue_create(tqueue);
         EINA_SAFETY_ON_FALSE_RETURN_VAL(queue, NULL);
 
-        eina_hash_add(_hwc_winq_mgr->hwc_winq_hash, tqueue, queue);
+        eina_hash_add(_hwc_winq_mgr->hwc_winq_hash, &tqueue, queue);
      }
 
    return queue;