fix pointer type error at 64bit 34/47634/1 accepted/tizen/mobile/20150908.074122 accepted/tizen/tv/20150908.074150 accepted/tizen/wearable/20150908.074134 submit/tizen/20150908.051058
authorHyongtaek Lim <hyongtaek.lim@samsung.com>
Mon, 7 Sep 2015 09:44:48 +0000 (18:44 +0900)
committerHyongtaek Lim <hyongtaek.lim@samsung.com>
Mon, 7 Sep 2015 09:45:17 +0000 (18:45 +0900)
Signed-off-by: Hyongtaek Lim <hyongtaek.lim@samsung.com>
Change-Id: I1a14624dd8abaec6a5ae7abe60b8123f5bd67cf6

src/player.c

index 1179ef7..e5a135b 100644 (file)
@@ -1752,7 +1752,7 @@ int player_get_play_position (player_h player, int *millisecond)
                LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d" ,__FUNCTION__,PLAYER_ERROR_INVALID_STATE, handle->state);
                return PLAYER_ERROR_INVALID_STATE;
        }
-       int pos;
+       unsigned long pos;
        int ret = mm_player_get_position(handle->mm_handle, MM_PLAYER_POS_FORMAT_TIME , &pos);
        if(ret != MM_ERROR_NONE)
        {
@@ -1760,7 +1760,7 @@ int player_get_play_position (player_h player, int *millisecond)
        }
        else
        {
-               *millisecond = pos;
+               *millisecond = (int)pos;
                return PLAYER_ERROR_NONE;
        }
 }
@@ -2705,8 +2705,8 @@ int player_get_streaming_download_progress(player_h player, int *start, int *cur
                LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d" ,__FUNCTION__,PLAYER_ERROR_INVALID_STATE, handle->state);
                return PLAYER_ERROR_INVALID_STATE;
        }
-       int _current=0;
-       int _start=0;
+       unsigned long _current=0;
+       unsigned long _start=0;
        int ret = mm_player_get_buffer_position(handle->mm_handle,MM_PLAYER_POS_FORMAT_PERCENT,&_start,&_current);
        if(ret != MM_ERROR_NONE)
        {
@@ -2714,8 +2714,8 @@ int player_get_streaming_download_progress(player_h player, int *start, int *cur
        }
        else
        {
-               *start = _start;
-               *current = _current;
+               *start = (int)_start;
+               *current = (int)_current;
                return PLAYER_ERROR_NONE;
        }
 }