Remove unnecessary backward compatibility code 51/190651/2 accepted/tizen/unified/20181107.082106 submit/tizen/20181106.060307
authorSeungbae Shin <seungbae.shin@samsung.com>
Thu, 4 Oct 2018 10:47:40 +0000 (19:47 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 4 Oct 2018 11:09:46 +0000 (20:09 +0900)
[Version] 0.0.15
[Issue Type] Cleanup

Change-Id: If666779fc130de997b641cda27647c300bb5637a

CMakeLists.txt
include/internal/soundpool.h
packaging/capi-media-sound-pool.spec
src/sound_pool.c
src/soundpool.c

index 519bb7e..0555429 100644 (file)
@@ -9,7 +9,7 @@ SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 SET(INC_DIR include)
 INCLUDE_DIRECTORIES(${INC_DIR})
 
-SET(dependents "dlog glib-2.0 openal mm-session")
+SET(dependents "dlog glib-2.0 openal")
 
 IF(DEFINED ENV{ENABLE_ALURE})
     SET(dependents "${dependents} alure")
index b1de337..e333f28 100644 (file)
@@ -79,8 +79,6 @@ sound_pool_error_e _sound_pool_set_callback(sound_pool_t *pool,
 
 sound_pool_error_e _sound_pool_unset_callback(sound_pool_t *pool);
 
-void _sound_pool_disable_session_backward_compatibility(void);
-
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */
index 78a1304..3b72a41 100644 (file)
@@ -1,5 +1,5 @@
 Name:       capi-media-sound-pool
-Version:    0.0.14
+Version:    0.0.15
 Summary:    Tizen Sound Pool module
 Release:    0
 Group:      Multimedia/Framework
@@ -13,8 +13,6 @@ BuildRequires: pkgconfig(glib-2.0)
 BuildRequires: pkgconfig(openal)
 #BuildRequires: pkgconfig(freealut)
 BuildRequires: pkgconfig(alure)
-BuildRequires: pkgconfig(mm-session)
-BuildRequires: pkgconfig(mm-sound)
 
 %description
 Tizen Sound Pool Module allowing sounds playing for audio resources.
index b2d1c7e..61b5d8a 100644 (file)
@@ -48,8 +48,6 @@ sound_pool_error_e sound_pool_create(sound_pool_h *pool)
        sound_pool_t *_pool = NULL;
        sound_pool_error_e ret;
 
-       _sound_pool_disable_session_backward_compatibility();
-
        ret = _sound_pool_create(&_pool);
        SP_RETVM_IF(ret != SOUND_POOL_ERROR_NONE, ret,
                        "Error while creating sound pool instance.");
index 2eaaa57..7821645 100644 (file)
@@ -19,9 +19,6 @@
  * @brief This file include implementation of protected API for the SoundPool.
  */
 #include <unistd.h>
-#include <mm_session.h>
-#include <mm_sound.h>
-#include <mm_session_private.h>
 
 #include "internal/soundpool.h"
 
@@ -359,20 +356,3 @@ sound_pool_error_e _sound_pool_unset_callback(sound_pool_t *pool)
        SP_DEBUG_FLEAVE();
        return SOUND_POOL_ERROR_NONE;
 }
-
-void _sound_pool_disable_session_backward_compatibility(void)
-{
-       int mm_ret = MM_ERROR_NONE;
-       int session_type = 0;
-       int session_options = 0;
-
-       /* read session information */
-       mm_ret = _mm_session_util_read_information(-1, &session_type, &session_options);
-       if (mm_ret == MM_ERROR_NONE) {
-               /* Session exists */
-               SP_INFO(" Session exists:session_type %d, session_option %d", session_type, session_options);
-       }
-
-       if ((_mm_session_util_write_information((int)getpid(), MM_SESSION_TYPE_REPLACED_BY_STREAM, 0)))
-               SP_INFO("failed to _mm_session_util_write_information for MM_SESSION_TYPE_REPLACED_BY_STREAM");
-}