fix 64bit build error 69/59769/2 accepted/tizen/common/20160222.162022 accepted/tizen/ivi/20160219.002423 accepted/tizen/mobile/20160219.002334 accepted/tizen/tv/20160219.002347 accepted/tizen/wearable/20160219.002403 submit/tizen/20160218.094257 submit/tizen_common/20160222.091425
authorEunhae Choi <eunhae1.choi@samsung.com>
Thu, 18 Feb 2016 09:20:26 +0000 (18:20 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Thu, 18 Feb 2016 09:36:14 +0000 (18:36 +0900)
Change-Id: Ie406d0858b1c6ce0eb58223bde628dcf23b3bcba

CMakeLists.txt
packaging/capi-media-player.spec
test/player_es_push_test.c
test/player_test.c

index a7e37d66a21636143637677cfdca3ddcc8f8bd9d..5dda0467e7abefd808cd6a9d50208c6ab0079429 100644 (file)
@@ -19,7 +19,8 @@ SET(INC_COM_DIR include)
 
 INCLUDE_DIRECTORIES(${INC_DIR}, ${INC_COM_DIR})
 
-SET(dependents "dlog libtbm capi-media-tool mused mmsvc-player mm-common tizen-extension-client evas elementary")
+SET(dependents "dlog glib-2.0 libtbm capi-media-tool capi-media-sound-manager capi-base-common mused mmsvc-player mm-common tizen-extension-client evas ecore elementary")
+SET(pc_dependents "libtbm capi-media-tool capi-base-common capi-media-sound-manager")
 
 INCLUDE(FindPkgConfig)
 pkg_check_modules(${fw_name} REQUIRED ${dependents})
index 92d99c12faf8e4970808bea0abc83acda9594fb8..f8c34d62b13e9e402af460b951195847eaaafc79 100644 (file)
@@ -11,6 +11,7 @@ Source0:    %{name}-%{version}.tar.gz
 Source1001:    capi-media-player.manifest
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(dlog)
+BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(mused)
 BuildRequires:  pkgconfig(mm-common)
 BuildRequires:  pkgconfig(capi-base-common)
index 915971996886b69508c9e039ff8fee21cf8c9ad4..4407024514a82a42cbdd62d9ae628a391974a436 100644 (file)
@@ -376,7 +376,7 @@ static bool feed_video_data(appdata_s *appdata)
 {
        bool ret = FALSE;
        int read = 0;
-       static unsigned long long pts = 0L;
+       static guint64 pts = 0L;
        void *buf_data_ptr = NULL;
        appdata_s *ad = appdata;
 
index 63ccd534748d8b524e40891cec3899ef405a3b8e..2ce8c92df7625e8e980a29f3a6635b2882d71394 100644 (file)
@@ -504,7 +504,7 @@ static void _audio_frame_decoded_cb_ex(player_audio_raw_data_s *audio_raw_frame,
        if (!audio_raw)
                return;
 
-       g_print("[Player_Test] decoded_cb_ex! channel: %d channel_mask: %" G_GUINT64_FORMAT "\n", audio_raw->channel, audio_raw->channel_mask);
+       g_print("[Player_Test] decoded_cb_ex! channel: %d channel_mask: %llu\n", audio_raw->channel, audio_raw->channel_mask);
 
 #ifdef DUMP_OUTBUF
        if (audio_raw->channel_mask == 1 && fp_out1)
@@ -684,7 +684,7 @@ static void buffer_need_video_data_cb(unsigned int size, void *user_data)
        int real_read_len = 0;
        char fname[128];
        char fptsname[128];
-       static unsigned long long pts = 0L;
+       static guint64 pts = 0L;
 
        FILE *fp = NULL;
        guint8 *buff_ptr = NULL;
@@ -711,8 +711,8 @@ static void buffer_need_video_data_cb(unsigned int size, void *user_data)
        fp = fopen(fptsname, "rb");
        if (fp) {
                int pts_len = 0;
-               pts_len = fread(&pts, 1, sizeof(unsigned long long), fp);
-               if (pts_len != sizeof(unsigned long long))
+               pts_len = fread(&pts, 1, sizeof(guint64), fp);
+               if (pts_len != sizeof(guint64))
                        g_print("Warning, pts value can be wrong.\n");
                fclose(fp);
                fp = NULL;
@@ -789,8 +789,8 @@ static void buffer_need_audio_data_cb(unsigned int size, void *user_data)
        /* snprintf(fname, 128, "/opt/storage/usb/test/audio_packet/packet_%d.dat", audio_packet_count); */
        snprintf(fname, 128, "/home/developer/test/audio_packet/packet_%d.dat", audio_packet_count);
 
-       static unsigned long long audio_pts = 0;
-       unsigned long long audio_dur = 21333333;
+       static guint64 audio_pts = 0;
+       guint64 audio_dur = 21333333;
 
        fp = fopen(fname, "rb");
        if (fp) {