fix error of remote handle type 28/46628/1 accepted/tizen/mobile/20150824.134814 accepted/tizen/tv/20150824.134833 accepted/tizen/wearable/20150824.134838 submit/tizen/20150824.105900
authorHyongtaek Lim <hyongtaek.lim@samsung.com>
Mon, 24 Aug 2015 08:03:05 +0000 (17:03 +0900)
committerHyongtaek Lim <hyongtaek.lim@samsung.com>
Mon, 24 Aug 2015 08:03:39 +0000 (17:03 +0900)
Signed-off-by: Hyongtaek Lim <hyongtaek.lim@samsung.com>
Change-Id: I67320b79bd74360ae25890ecc14677e76490d32c

include/player2_private.h

index a622b50..d8ef405 100644 (file)
@@ -155,10 +155,25 @@ typedef enum {
        _PLAYER_EVENT_TYPE_NUM
 }_player_event_e;
 
+#ifndef USE_ECORE_FUNCTIONS
+typedef enum {
+       PLAYER_MESSAGE_NONE,
+       PLAYER_MESSAGE_PREPARED,
+       PLAYER_MESSAGE_ERROR,
+       PLAYER_MESSAGE_SEEK_DONE,
+       PLAYER_MESSAGE_EOS,
+       PLAYER_MESSAGE_LOOP_EXIT,
+       PLAYER_MESSAGE_MAX
+}_player_message_e;
+#endif
+
 typedef struct _player_s{
        MMHandleType mm_handle;
        const void* user_cb[_PLAYER_EVENT_TYPE_NUM];
        void* user_data[_PLAYER_EVENT_TYPE_NUM];
+#ifdef HAVE_WAYLAND
+       void* wl_display;
+#endif
        void* display_handle;
        player_display_type_e display_type;
        int state;
@@ -167,7 +182,15 @@ typedef struct _player_s{
        bool is_display_visible;
        bool is_progressive_download;
        pthread_t prepare_async_thread;
+#ifdef USE_ECORE_FUNCTIONS
        GHashTable *ecore_jobs;
+#else
+       pthread_t message_thread;
+       GQueue *message_queue;
+       GMutex message_queue_lock;
+       GCond message_queue_cond;
+       int current_message;
+#endif
        player_error_e error_code;
        bool is_doing_jobs;
        media_format_h pkt_fmt;
@@ -219,7 +242,7 @@ typedef struct {
 }server_tbm_info_s;
 
 typedef struct _player_cli_s{
-       gint remote_handle;
+       intptr_t remote_handle;
        callback_cb_info_s *cb_info;
        player_data_s *head;
        server_tbm_info_s server_tbm;