[v0.3.27] Fix Svace Issues 32/91532/1 accepted/tizen/common/20161010.145915 accepted/tizen/ivi/20161010.232315 accepted/tizen/mobile/20161010.232229 accepted/tizen/tv/20161010.232241 accepted/tizen/wearable/20161010.232259 submit/tizen/20161010.070042
authorEunhae Choi <eunhae1.choi@samsung.com>
Mon, 10 Oct 2016 05:57:19 +0000 (14:57 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Mon, 10 Oct 2016 05:57:19 +0000 (14:57 +0900)
Change-Id: Ia489f4dfa3b44783a9c425147c762cde0f6a94e9

packaging/capi-media-player.spec
src/player.c

index 40f018a..ff558b9 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-player
 Summary:    A Media Player API
-Version:    0.3.26
+Version:    0.3.27
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 98c35f2..d5b2342 100644 (file)
@@ -868,7 +868,7 @@ static void __supported_audio_effect_cb_handler(callback_cb_info_s * cb_info, _p
 {
 }
 
-static void __supported_audio_effect_freset_cb_handler(callback_cb_info_s * cb_info, _player_recv_data *recv_data)
+static void __supported_audio_effect_preset_cb_handler(callback_cb_info_s * cb_info, _player_recv_data *recv_data)
 {
 }
 
@@ -982,7 +982,7 @@ static void (*_user_callbacks[MUSE_PLAYER_EVENT_TYPE_NUM]) (callback_cb_info_s *
        __video_frame_render_error_cb_handler,  /* MUSE_PLAYER_EVENT_TYPE_VIDEO_FRAME_RENDER_ERROR */
        __pd_cb_handler,                        /* MUSE_PLAYER_EVENT_TYPE_PD */
        __supported_audio_effect_cb_handler,    /* MUSE_PLAYER_EVENT_TYPE_SUPPORTED_AUDIO_EFFECT */
-       __supported_audio_effect_freset_cb_handler,     /* MUSE_PLAYER_EVENT_TYPE_SUPPORTED_AUDIO_EFFECT_PRESET */
+       __supported_audio_effect_preset_cb_handler,     /* MUSE_PLAYER_EVENT_TYPE_SUPPORTED_AUDIO_EFFECT_PRESET */
        __missed_plugin_cb_handler,     /* MUSE_PLAYER_EVENT_TYPE_MISSED_PLUGIN */
 #ifdef _PLAYER_FOR_PRODUCT
        NULL,   /* MUSE_PLAYER_EVENT_TYPE_IMAGE_BUFFER */
@@ -1682,10 +1682,10 @@ int player_destroy(player_h player)
        }
 #endif
 
-       if (EVAS_INFO(pc))
-               g_free(pc->cb_info->evas_info);
-
        if (CALLBACK_INFO(pc)) {
+               if (EVAS_INFO(pc))
+                       g_free(pc->cb_info->evas_info);
+
                __player_remove_tsurf_list(pc);
                _player_remove_idle_event_all(CALLBACK_INFO(pc));
                _player_event_queue_destroy(CALLBACK_INFO(pc));