add init of subtitle text arr not to send with a garbage 43/60743/2
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 2 Mar 2016 04:31:55 +0000 (13:31 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Wed, 2 Mar 2016 04:33:09 +0000 (13:33 +0900)
Change-Id: I06a7a5b5a9d84d0b150dfe73ad821c6383f4290c
Signed-off-by: Eunhae Choi <eunhae1.choi@samsung.com>
src/player.c

index d930cbb..90d775c 100644 (file)
@@ -380,7 +380,7 @@ static void __buffering_cb_handler(callback_cb_info_s *cb_info, char *recvMsg)
 static void __subtitle_cb_handler(callback_cb_info_s *cb_info, char *recvMsg)
 {
        int duration = 0;
-       char text[MUSE_URI_MAX_LENGTH];
+       char text[MUSE_URI_MAX_LENGTH] = { 0, };
        muse_player_event_e ev = MUSE_PLAYER_EVENT_TYPE_SUBTITLE;
 
        if (player_msg_get(duration, recvMsg)