add code to unregister ASM monitor handle when __mmsession_finalize() called 2.0alpha master 2.0_alpha submit/master/20120920.151101
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 4 Sep 2012 03:28:50 +0000 (12:28 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 4 Sep 2012 03:28:50 +0000 (12:28 +0900)
mm_session.c
packaging/libmm-session.spec

index 1da3f7d..5b1b29a 100644 (file)
@@ -445,6 +445,14 @@ asm_monitor_callback(int handle, ASM_event_sources_t event_src, ASM_sound_comman
 __attribute__ ((destructor))
 void __mmsession_finalize(void)
 {
+       int error=0;
+
+       if(g_monitor_asm_handle != -1) {
+               if(!ASM_unregister_sound(g_monitor_asm_handle, ASM_EVENT_MONITOR, &error)) {
+                       debug_error("ASM unregister failed");
+               }
+               g_monitor_asm_handle = -1;
+       }
        _mm_session_util_delete_type(-1);
 }
 
index 0d9e2e3..c0b09a6 100644 (file)
@@ -1,10 +1,10 @@
 Name:       libmm-session
-Summary:    Mm-session development pkg for samsung
-Version: 0.2.0
-Release:    3
+Summary:    mm-session development pkg for samsung
+Version:    0.2.1
+Release:    1
 Group:      TO_BE/FILLED_IN
 License:    TO BE FILLED IN
-Source0:    libmm-session-%{version}.tar.bz2
+Source0:    libmm-session-%{version}.tar.gz
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 BuildRequires:  pkgconfig(audio-session-mgr)