From 9e2d3a5a3638665437406fc16b4cfe55bf761661 Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Mon, 27 Nov 2017 16:15:54 +0900 Subject: [PATCH] Update metadata_update thread function Add g_thread_join() Change-Id: I1d39ca6854e95c776b5b89a4732abfdae32daa6c Signed-off-by: Minje Ahn --- packaging/media-server.spec | 2 +- src/scanner/media-scanner-scan.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packaging/media-server.spec b/packaging/media-server.spec index b40308e..80a173f 100755 --- a/packaging/media-server.spec +++ b/packaging/media-server.spec @@ -1,6 +1,6 @@ Name: media-server Summary: A server for media content management -Version: 0.3.61 +Version: 0.3.62 Release: 0 Group: Multimedia/Service License: Apache-2.0 diff --git a/src/scanner/media-scanner-scan.c b/src/scanner/media-scanner-scan.c index bfb129a..14cf7b8 100755 --- a/src/scanner/media-scanner-scan.c +++ b/src/scanner/media-scanner-scan.c @@ -912,7 +912,9 @@ _POWEROFF: void msc_metadata_update_thread(ms_comm_msg_s *recv_msg) { - g_thread_new("update_thread", (GThreadFunc)msc_metadata_update, recv_msg); + GThread *update_thread = NULL; + update_thread = g_thread_new("update_thread", (GThreadFunc)msc_metadata_update, recv_msg); + g_thread_join(update_thread); } int msc_init_scanner(void) -- 2.7.4