Remove unused parameter in thumb-thread 46/159346/2
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 8 Nov 2017 08:35:01 +0000 (17:35 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 8 Nov 2017 08:36:19 +0000 (08:36 +0000)
Change-Id: I580ef7348edf5fec3576be20d93cb3c7b5366414
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/server/media-server-thumb.c

index 89a7a2a..f8e9e9a 100755 (executable)
@@ -39,7 +39,6 @@ gboolean _ms_thumb_agent_timer();
 
 static GMainLoop *g_thumb_agent_loop = NULL;
 static gboolean g_folk_thumb_server = FALSE;
-static gboolean g_thumb_server_extracting = FALSE;
 static gboolean g_shutdowning_thumb_server = FALSE;
 static int g_communicate_sock = 0;
 static int g_timer_id = 0;
@@ -77,15 +76,7 @@ void ms_thumb_reset_server_status()
                g_timer_id = 0;
        }
 
-       if (g_thumb_server_extracting) {
-               /* Need to inplement when crash happens */
-               MS_DBG_ERR("Thumbnail server is dead when processing all-thumbs extraction");
-               g_thumb_server_extracting = FALSE;
-               g_server_pid = 0;
-       } else {
-               g_thumb_server_extracting = FALSE;
-               g_server_pid = 0;
-       }
+       g_server_pid = 0;
 
        return;
 }
@@ -377,13 +368,6 @@ gboolean _ms_thumb_agent_send_msg_to_thumb_server(thumbMsg *recv_msg, thumbMsg *
 
 gboolean _ms_thumb_agent_timer()
 {
-       if (g_thumb_server_extracting) {
-               MS_DBG("Timer is called.. But media-thumbnail-server[%d] is busy.. so timer is recreated", g_server_pid);
-
-               _ms_thumb_create_timer(g_timer_id);
-               return FALSE;
-       }
-
        g_timer_id = 0;
        MS_DBG("Timer is called.. Now killing media-thumbnail-server[%d]", g_server_pid);
 
@@ -436,7 +420,7 @@ gboolean _ms_thumb_request_to_server(gpointer data)
                return TRUE;
        }
 
-       if (g_folk_thumb_server == FALSE && g_thumb_server_extracting == FALSE) {
+       if (g_folk_thumb_server == FALSE) {
                MS_DBG_WARN("Thumb server is not running.. so start it");
                if (!_ms_thumb_agent_execute_server()) {
                        MS_DBG_ERR("_ms_thumb_agent_execute_server is failed");