diff options
author | Sangchul Lee <sc11.lee@samsung.com> | 2012-09-04 12:28:50 +0900 |
---|---|---|
committer | Sangchul Lee <sc11.lee@samsung.com> | 2012-09-04 12:28:50 +0900 |
commit | bdc09b23d3dbbb74e1bfdb536a07ff7de6a672d1 (patch) | |
tree | cf2ee7047c86bf09789a812e71f8308ce83f7e81 | |
parent | 36f7ee8543e412d76c5c82cc445eca55a477ad48 (diff) | |
download | libmm-session-bdc09b23d3dbbb74e1bfdb536a07ff7de6a672d1.tar.gz libmm-session-bdc09b23d3dbbb74e1bfdb536a07ff7de6a672d1.tar.bz2 libmm-session-bdc09b23d3dbbb74e1bfdb536a07ff7de6a672d1.zip |
add code to unregister ASM monitor handle when __mmsession_finalize() calledHEADsubmit/master/20120920.1511012.0_alphamaster2.0alpha
-rw-r--r-- | mm_session.c | 8 | ||||
-rw-r--r-- | packaging/libmm-session.spec | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/mm_session.c b/mm_session.c index 1da3f7d..5b1b29a 100644 --- a/mm_session.c +++ b/mm_session.c @@ -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); } diff --git a/packaging/libmm-session.spec b/packaging/libmm-session.spec index 0d9e2e3..c0b09a6 100644 --- a/packaging/libmm-session.spec +++ b/packaging/libmm-session.spec @@ -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) |