Resolve the problem not to update value when changing the value of same key continuously 95/91195/2 accepted/tizen/3.0/mobile/20161015.033930 accepted/tizen/3.0/tv/20161016.005230 accepted/tizen/3.0/wearable/20161015.083530 accepted/tizen/common/20161006.153419 accepted/tizen/common/20161006.154104 accepted/tizen/ivi/20161007.003930 accepted/tizen/mobile/20161007.003713 accepted/tizen/tv/20161007.003821 accepted/tizen/wearable/20161007.003858 submit/tizen/20161005.055916 submit/tizen_3.0_mobile/20161015.000005 submit/tizen_3.0_tv/20161015.000004 submit/tizen_3.0_wearable/20161015.000004 submit/tizen_common/20161006.020612
authorYoungHun Kim <yh8004.kim@samsung.com>
Thu, 6 Oct 2016 07:33:47 +0000 (16:33 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Thu, 6 Oct 2016 07:35:50 +0000 (16:35 +0900)
Change-Id: I05dc3024f3cce2b5a9a872f4430b16f6f984f631

packaging/mused.spec
src/muse_core_module.c

index 2de34ab..70397f0 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A Multimedia Daemon in Tizen Native API
-Version:    0.1.14
+Version:    0.1.15
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0
index cb33eb4..104549b 100644 (file)
@@ -122,7 +122,8 @@ static void _muse_core_module_set_dllsymbol_value(int api_module, const char *ke
        gpointer orig_key;
        /* Try looking up this key. */
        if (g_hash_table_lookup_extended(g_muse_core_module->table[api_module], keyname, &orig_key, NULL)) {
-               g_hash_table_insert(g_muse_core_module->table[api_module], g_strdup (keyname), value);
+               g_hash_table_remove(g_muse_core_module->table[api_module], keyname);
+               g_hash_table_insert(g_muse_core_module->table[api_module], g_strdup(keyname), value);
                g_free(orig_key);
        } else {
                /* Insert into our hash table it is not a duplicate. */