Change time scale ms to ns using push media stream 02/56102/1 accepted/tizen/mobile/20160105.044816 accepted/tizen/tv/20160105.044836 accepted/tizen/wearable/20160105.044900 submit/tizen/20160105.015622
authorGilbok Lee <gilbok.lee@samsung.com>
Mon, 4 Jan 2016 10:01:30 +0000 (19:01 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Mon, 4 Jan 2016 10:01:30 +0000 (19:01 +0900)
Change-Id: I3f03a05dc7eb37459d891a6417c53170db6da178
Signed-off-by: Gilbok Lee <gilbok.lee@samsung.com>
test/legacy_player_es_push_test.c
test/legacy_player_test.c

index 524c753..08dbc3e 100644 (file)
@@ -396,7 +396,7 @@ static bool feed_video_data(appdata_s *appdata)
                goto ERROR;
        }
 
-       if (media_packet_set_pts(ad->video_pkt, (uint64_t)(pts / 1000000)) != MEDIA_PACKET_ERROR_NONE) {
+       if (media_packet_set_pts(ad->video_pkt, (uint64_t)pts) != MEDIA_PACKET_ERROR_NONE) {
                LOGE("media_packet_set_pts failed\n");
                goto ERROR;
        }
index 3be9cf7..bae17b9 100644 (file)
@@ -499,7 +499,7 @@ static void buffer_need_video_data_cb(unsigned int size, void *user_data)
        if (media_packet_get_buffer_data_ptr(g_video_pkt, &src) != MEDIA_PACKET_ERROR_NONE)
                goto EXIT;
 
-       if (media_packet_set_pts(g_video_pkt, (uint64_t) (pts / 1000000)) != MEDIA_PACKET_ERROR_NONE)
+       if (media_packet_set_pts(g_video_pkt, (uint64_t)pts) != MEDIA_PACKET_ERROR_NONE)
                goto EXIT;
 
        if (media_packet_set_buffer_size(g_video_pkt, (uint64_t) real_read_len) != MEDIA_PACKET_ERROR_NONE)
@@ -573,7 +573,7 @@ static void buffer_need_audio_data_cb(unsigned int size, void *user_data)
        if (media_packet_get_buffer_data_ptr(g_audio_pkt, &src) != MEDIA_PACKET_ERROR_NONE)
                goto EXIT;
 
-       if (media_packet_set_pts(g_audio_pkt, (uint64_t) (audio_pts / 1000000)) != MEDIA_PACKET_ERROR_NONE)
+       if (media_packet_set_pts(g_audio_pkt, (uint64_t)audio_pts) != MEDIA_PACKET_ERROR_NONE)
                goto EXIT;
 
        if (media_packet_set_buffer_size(g_audio_pkt, (uint64_t) real_read_len) != MEDIA_PACKET_ERROR_NONE)