Change time scale ms to ns using push media stream 01/56101/1 accepted/tizen/mobile/20160105.044700 accepted/tizen/tv/20160105.044729 accepted/tizen/wearable/20160105.044746 submit/tizen/20160105.015549
authorGilbok Lee <gilbok.lee@samsung.com>
Mon, 4 Jan 2016 10:01:13 +0000 (19:01 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Mon, 4 Jan 2016 10:01:13 +0000 (19:01 +0900)
Change-Id: I662f2a5fe72784b328dcc86be70e93d4c5016b07
Signed-off-by: Gilbok Lee <gilbok.lee@samsung.com>
client/test/player_es_push_test.c
client/test/player_test.c

index bc9e054..fea74c1 100644 (file)
@@ -389,7 +389,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 ce83de6..4c4c56f 100644 (file)
@@ -763,7 +763,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)
@@ -837,7 +837,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)