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;
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;
}
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);
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");