Resolved audio unsupported file issue. 35/55135/2
authorpolu.sandeep <polu.sandeep@samsung.com>
Tue, 22 Dec 2015 06:55:00 +0000 (15:55 +0900)
committerSung-jae Park <nicesj@nicesj.com>
Wed, 23 Dec 2015 04:51:55 +0000 (20:51 -0800)
Change-Id: I8e40df6e4b09ce663e5262cc79921c3c884ff6d1

TelegramTizen/src/tg_audio_player.c

index 158e4d4..ea654f5 100644 (file)
@@ -52,7 +52,7 @@ tg_player_handler* init_audio_player(const char *audio_file, tg_player_state_cha
                return NULL;
        tg_player_handler *player = NULL;
        if (access(audio_file, F_OK) != -1) {
-               tg_player_handler *player = (tg_player_handler*)malloc(sizeof(tg_player_handler));
+               player = (tg_player_handler*)malloc(sizeof(tg_player_handler));
                if (player) {
                        player->timer = NULL;
                        player->current_pos = 0;