[v0.3.31] fix svace issue 88/96188/1
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:21:29 +0000 (15:21 +0900)
Change-Id: I9941ca1081e913a0a4516ab344cd36920778472a

src/player.c

index 8b0a974cda937ff9c37dcd8527ddbf08aca612d0..2e22b1164e9ac119910b146f803f735a92adff5d 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();