fix blocking issue in notification unset function tizen_2.1 2.1b_release accepted/tizen_2.1/20130425.034911 submit/tizen_2.1/20130424.232245
authorYong Yeon Kim <yy9875.kim@samsung.com>
Tue, 23 Apr 2013 05:34:01 +0000 (14:34 +0900)
committerYong Yeon Kim <yy9875.kim@samsung.com>
Tue, 23 Apr 2013 12:25:49 +0000 (21:25 +0900)
Change-Id: I542789dfaf72291fcef5532dff7de828374bf2b4

lib/media-util-noti.c
packaging/media-server.spec

index 0658978..6cb380b 100755 (executable)
@@ -64,12 +64,6 @@ __message_filter (DBusConnection *connection, DBusMessage *message, void *user_d
        db_update_cb user_cb = ((noti_callback_data*)user_data)->user_callback;
        void *userdata = ((noti_callback_data*)user_data)->user_data;
 
-       if (noti_mutex != NULL) {
-               g_mutex_lock(noti_mutex);
-       } else {
-               MSAPI_DBG_ERR("subscribe function is already unreferenced");
-       }
-
        /* A Ping signal on the com.burtonini.dbus.Signal interface */
        if (dbus_message_is_signal (message, MS_MEDIA_DBUS_INTERFACE, MS_MEDIA_DBUS_NAME)) {
                int i = 0;
@@ -131,13 +125,9 @@ __message_filter (DBusConnection *connection, DBusMessage *message, void *user_d
                MS_SAFE_FREE(uuid);
                MS_SAFE_FREE(mime_type);
 
-               g_mutex_unlock(noti_mutex);
-
                return DBUS_HANDLER_RESULT_HANDLED;
        }
 
-       g_mutex_unlock(noti_mutex);
-
        return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 }
 
index 4a88fd3..1caece0 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       media-server
 Summary:    File manager service server.
-Version: 0.2.45
+Version: 0.2.46
 Release:    1
 Group:      utils
 License:    Apache License, Version 2.0