[v0.3.31] fix svace issue 91/96191/1 accepted/tizen/3.0/common/20161114.081307 accepted/tizen/3.0/ivi/20161109.124719 accepted/tizen/3.0/mobile/20161109.124301 accepted/tizen/3.0/tv/20161109.124528 accepted/tizen/3.0/wearable/20161109.124630 submit/tizen_3.0/20161108.053851 submit/tizen_3.0_common/20161110.084657
authorEunhae Choi <eunhae1.choi@samsung.com>
Tue, 8 Nov 2016 06:21:29 +0000 (15:21 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Tue, 8 Nov 2016 06:22:31 +0000 (15:22 +0900)
Change-Id: I9941ca1081e913a0a4516ab344cd36920778472a

src/player.c

index 8b0a974..2e22b11 100644 (file)
@@ -80,7 +80,7 @@ int _player_media_packet_finalize(media_packet_h pkt, int error_code, void *user
        int ret = MEDIA_PACKET_FINALIZE;
        muse_player_api_e api = MUSE_PLAYER_API_MEDIA_PACKET_FINALIZE_CB;
        _media_pkt_fin_data *fin_data = (_media_pkt_fin_data *) user_data;
-       intptr_t packet;
+       intptr_t packet = 0;
        char *snd_msg = NULL;
        int snd_len = 0;
 
@@ -688,7 +688,7 @@ static void __media_packet_video_frame_cb_handler(callback_cb_info_s * cb_info,
        bool make_pkt_fmt = false;
        int ret = MEDIA_FORMAT_ERROR_NONE;
        _media_pkt_fin_data *fin_data = NULL;
-       intptr_t packet;
+       intptr_t packet = 0;
        uint64_t pts = 0;
        int i = 0;
        muse_core_msg_parse_err_e err = MUSE_MSG_PARSE_ERROR_NONE;
@@ -1684,7 +1684,7 @@ int player_create(player_h * player)
 
                ret = client_wait_for_cb_return(api, pc->cb_info, &ret_buf, CALLBACK_TIME_OUT * 2);
                if (ret == PLAYER_ERROR_NONE) {
-                       intptr_t module_addr;
+                       intptr_t module_addr = 0;
                        *player = (player_h) pc;
                        if (player_msg_get_type(module_addr, ret_buf, POINTER)) {
                                pc->cb_info->data_fd = muse_core_client_new_data_ch();