Modified according to new coding guidelines 26/51626/3 accepted/tizen/mobile/20151111.232334 submit/tizen_mobile/20151111.134440
authorShashank Mishra <ss.mishra@samsung.com>
Wed, 11 Nov 2015 10:23:10 +0000 (15:53 +0530)
committerPrakash <prakashc.p@samsung.com>
Wed, 11 Nov 2015 13:36:17 +0000 (19:06 +0530)
Change-Id: I107076dc1a36df2b8d32235312422ad3da0e89b1
Signed-off-by: Shashank Mishra <ss.mishra@samsung.com>
63 files changed:
common/src/vp-chapter-db.c
common/src/vp-db-util.c
common/src/vp-file-util.c
common/src/vp-media-content-util.c
common/src/vp-pinch-zoom.c
common/src/vp-preview-db.c
common/src/vp-thumb-db.c
common/src/vp-util.c
core/src/vp-drm.c
feature/src/vp-feature-util.c
feature/src/vp-thumb-gen.c
playview/src/common/vp-play-config.c
playview/src/common/vp-play-preference.c
playview/src/common/vp-play-ug.c
playview/src/common/vp-play-util.c
playview/src/core/vp-avrcp.c
playview/src/core/vp-device-language.c
playview/src/core/vp-device.c
playview/src/core/vp-hollic.c
playview/src/core/vp-image-util.c
playview/src/core/vp-media-contents.c
playview/src/core/vp-media-key.c
playview/src/core/vp-mm-player.c
playview/src/core/vp-multi-path.c
playview/src/core/vp-sensor.c
playview/src/core/vp-sound.c
playview/src/feature/vp-audio-track.c
playview/src/feature/vp-capture.c
playview/src/feature/vp-detail.c
playview/src/feature/vp-play-speed.c
playview/src/feature/vp-repeat.c
playview/src/feature/vp-setting.c
playview/src/feature/vp-share.c
playview/src/feature/vp-sound-alive.c
playview/src/feature/vp-sound-path.c
playview/src/feature/vp-subtitle-alignment.c
playview/src/feature/vp-subtitle-bg-color.c
playview/src/feature/vp-subtitle-color.c
playview/src/feature/vp-subtitle-edge.c
playview/src/feature/vp-subtitle-font.c
playview/src/feature/vp-subtitle-select.c
playview/src/feature/vp-subtitle-size.c
playview/src/feature/vp-subtitle-sync.c
playview/src/feature/vp-subtitle-track.c
playview/src/feature/vp-subtitle.c
playview/src/feature/vp-zoom-guide.c
playview/src/view/vp-play-multi-view.c
playview/src/view/vp-play-normal-view.c
playview/src/view/vp-play-normal-view_bk.c [deleted file]
playview/src/vp-play-view.c
playview/src/widget/vp-play-bookmark.c
playview/src/widget/vp-play-brightness-popup.c
playview/src/widget/vp-play-button.c
playview/src/widget/vp-play-loading-ani.c
playview/src/widget/vp-play-popup.c
playview/src/widget/vp-play-progressbar.c
playview/src/widget/vp-play-subtitle.c
playview/src/widget/vp-play-volume-popup.c
playview/src/widget/vp-play-volume.c
src/video-player.c
video-downloader/src/VppDownload.c
vp-main/src/serviceParser/vp-service-parser.c
vp-main/src/vp-main.c

index 5c5918d..a45b364 100644 (file)
@@ -174,7 +174,7 @@ void vp_chapter_db_destroy(vp_chapter_db_h hChapterDB)
 }
 
 bool vp_chapter_db_set_media_id(vp_chapter_db_h hChapterDB,
-                               const char *szMediaID)
+                                const char *szMediaID)
 {
        if (hChapterDB == NULL) {
                vp_dbgE("hChapterDB is NULL");
@@ -196,7 +196,7 @@ bool vp_chapter_db_set_media_id(vp_chapter_db_h hChapterDB,
 }
 
 bool vp_chapter_db_set_media_url(vp_chapter_db_h hChapterDB,
-                                const char *szMediaURL)
+                                 const char *szMediaURL)
 {
        if (hChapterDB == NULL) {
                vp_dbgE("hChapterDB is NULL");
@@ -216,7 +216,7 @@ bool vp_chapter_db_set_media_url(vp_chapter_db_h hChapterDB,
        VP_STRDUP(pChapterDB->szMediaURL, szMediaURL);
 
        if (!vp_media_content_util_get_video_id
-                       (szMediaURL, &(pChapterDB->szMediaID))) {
+               (szMediaURL, &(pChapterDB->szMediaID))) {
                vp_dbgE("vp_media_content_util_get_video_id is fail");
                return FALSE;
        }
@@ -225,7 +225,7 @@ bool vp_chapter_db_set_media_url(vp_chapter_db_h hChapterDB,
 }
 
 bool vp_chapter_db_get_items(vp_chapter_db_h hChapterDB,
-                            GList **pChapterList)
+                             GList **pChapterList)
 {
        if (hChapterDB == NULL) {
                vp_dbgE("hChapterDB is NULL");
@@ -240,7 +240,7 @@ bool vp_chapter_db_get_items(vp_chapter_db_h hChapterDB,
        }
 
        char *szSql =
-               sqlite3_mprintf(CHAPTER_DB_SELECT_QUERY, pChapterDB->szMediaID);
+           sqlite3_mprintf(CHAPTER_DB_SELECT_QUERY, pChapterDB->szMediaID);
        sqlite3_stmt *stmt = NULL;
 
        if (!vp_db_util_query_prepare(szSql, &stmt)) {
@@ -268,7 +268,7 @@ bool vp_chapter_db_get_items(vp_chapter_db_h hChapterDB,
 
                pItem->nIdx = (int) sqlite3_column_int(stmt, 1);
                VP_STRDUP(pItem->szChapterPath,
-                         (char *) sqlite3_column_text(stmt, 2));
+                         (char *) sqlite3_column_text(stmt, 2));
                pItem->nFileSize = (int) sqlite3_column_int(stmt, 3);
 
                *pChapterList = g_list_append(*pChapterList, pItem);
@@ -290,7 +290,7 @@ bool vp_chapter_db_get_items(vp_chapter_db_h hChapterDB,
 }
 
 bool vp_chapter_db_get_all_items_media_id(vp_chapter_db_h hChapterDB,
-               GList **pChapterList)
+        GList **pChapterList)
 {
        if (hChapterDB == NULL) {
                vp_dbgE("hChapterDB is NULL");
@@ -334,7 +334,7 @@ bool vp_chapter_db_get_all_items_media_id(vp_chapter_db_h hChapterDB,
 }
 
 bool vp_chapter_db_insert(vp_chapter_db_h hChapterDB,
-                         const char *szChapterPath, int nIdx)
+                          const char *szChapterPath, int nIdx)
 {
        if (hChapterDB == NULL) {
                vp_dbgE("hChapterDB is NULL");
@@ -357,8 +357,8 @@ bool vp_chapter_db_insert(vp_chapter_db_h hChapterDB,
        long long nSize = vp_file_size(szChapterPath);
 
        char *szSql =
-               sqlite3_mprintf(CHAPTER_DB_INSERT_QUERY, nIdx, szChapterPath,
-                               (int) nSize, pChapterDB->szMediaID);
+           sqlite3_mprintf(CHAPTER_DB_INSERT_QUERY, nIdx, szChapterPath,
+                           (int) nSize, pChapterDB->szMediaID);
        vp_sdbg("%s", szSql);
 
        sqlite3_stmt *stmt = NULL;
@@ -405,7 +405,7 @@ bool vp_chapter_db_delete(vp_chapter_db_h hChapterDB)
        _vp_chapter_db_delete_items(pChapterDB->szMediaID);
 
        char *szSql =
-               sqlite3_mprintf(CHAPTER_DB_DELETE_QUERY, pChapterDB->szMediaID);
+           sqlite3_mprintf(CHAPTER_DB_DELETE_QUERY, pChapterDB->szMediaID);
        vp_sdbg("%s", szSql);
 
        sqlite3_stmt *stmt = NULL;
index 5622517..a0844f7 100644 (file)
@@ -43,7 +43,7 @@ static sqlite3 *_vp_db_util_connect_db()
        ret = sqlite3_open(VIDEO_THUMB_DB_NAME, &pSqlite);
        if (SQLITE_OK != ret) {
                vp_dbgE("sqlite3_open fail [0x%x] : %s", ret,
-                       sqlite3_errmsg(pSqlite));
+                       sqlite3_errmsg(pSqlite));
                return NULL;
        }
 
index 2d13d15..d3a8adc 100644 (file)
 #define PATH_MAX_SIZE 256
 #define BUF_MAX 16384
 static mode_t default_mode =
-       S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
+    S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
 
 const char *vp_file_get(const char path[])
 {
        char *file = NULL;
        struct stat info = { 0, };
        if (stat(path, &info) == 0) {
-               if ((file = strrchr(path, '/')))
+               if ((file = strrchr(path, '/'))) {
                        file++;
+               }
        } else {
                file = (char *) path;
        }
@@ -55,10 +56,11 @@ int vp_file_exists(const char *path)
 {
        struct stat info = { 0, };
 
-       if (stat(path, &info) == 0)
+       if (stat(path, &info) == 0) {
                return 1;
-       else
+       } else {
                return 0;
+       }
 }
 
 Eina_Bool vp_is_dir(const char *path)
@@ -82,12 +84,13 @@ int vp_is_dir_empty(const char *path)
        struct dirent ent_struct;
 
        dirp = opendir(path);
-       if (!dirp)
+       if (!dirp) {
                return -1;
+       }
 
        while ((readdir_r(dirp, &ent_struct, &dp) == 0) && dp) {
                if (stat(dp->d_name, &info) == 0 && (strcmp(dp->d_name, "."))
-                               && (strcmp(dp->d_name, ".."))) {
+                       && (strcmp(dp->d_name, ".."))) {
                        closedir(dirp);
                        return 0;
                }
@@ -98,21 +101,23 @@ int vp_is_dir_empty(const char *path)
 
 int vp_mkdir(const char *dir)
 {
-       if (mkdir(dir, default_mode) < 0)
+       if (mkdir(dir, default_mode) < 0) {
                return 0;
-       else
+       } else {
                return 1;
+       }
 }
 
 static int vp_mkpath_if_not_exists(const char *path)
 {
        struct stat st = { 0, };
-       if (stat(path, &st) < 0)
+       if (stat(path, &st) < 0) {
                return vp_mkdir(path);
-       else if (!S_ISDIR(st.st_mode))
+       } else if (!S_ISDIR(st.st_mode)) {
                return 0;
-       else
+       } else {
                return 1;
+       }
 }
 
 int vp_mkpath(const char *path)
@@ -120,17 +125,20 @@ int vp_mkpath(const char *path)
        char ss[PATH_MAX] = { 0, };
        unsigned int i = 0;
 
-       if (vp_is_dir(path))
+       if (vp_is_dir(path)) {
                return 1;
+       }
 
        for (i = 0; path[i] != '\0'; ss[i] = path[i], i++) {
-               if (i == sizeof(ss) - 1)
+               if (i == sizeof(ss) - 1) {
                        return 0;
+               }
 
                if ((path[i] == '/') && (i > 0)) {
                        ss[i] = '\0';
-                       if (!vp_mkpath_if_not_exists(ss))
+                       if (!vp_mkpath_if_not_exists(ss)) {
                                return 0;
+                       }
                }
        }
        ss[i] = '\0';
@@ -160,18 +168,20 @@ char *vp_strip_ext(const char *path)
 int vp_file_unlink(const char *filename)
 {
        int status = unlink(filename);
-       if (status < 0)
+       if (status < 0) {
                return 0;
-       else
+       } else {
                return 1;
+       }
 }
 
 int vp_file_size(const char *filename)
 {
        struct stat info = { 0, };
        if (stat(filename, &info) == 0) {
-               if (!S_ISDIR(info.st_mode))
+               if (!S_ISDIR(info.st_mode)) {
                        return info.st_size;
+               }
        }
 
        return 0;
@@ -180,10 +190,11 @@ int vp_file_size(const char *filename)
 int vp_file_rmdir(const char *filename)
 {
        int status = rmdir(filename);
-       if (status < 0)
+       if (status < 0) {
                return 0;
-       else
+       } else {
                return 1;
+       }
 }
 
 Eina_List *vp_file_ls(const char *dir)
@@ -195,8 +206,9 @@ Eina_List *vp_file_ls(const char *dir)
        struct dirent ent_struct;
 
        dirp = opendir(dir);
-       if (!dirp)
+       if (!dirp) {
                return NULL;
+       }
 
        while ((readdir_r(dirp, &ent_struct, &dp) == 0) && dp) {
                if ((strcmp(dp->d_name, ".")) && (strcmp(dp->d_name, ".."))) {
@@ -207,8 +219,8 @@ Eina_List *vp_file_ls(const char *dir)
        closedir(dirp);
 
        list =
-               eina_list_sort(list, eina_list_count(list),
-                              EINA_COMPARE_CB(strcoll));
+           eina_list_sort(list, eina_list_count(list),
+                          EINA_COMPARE_CB(strcoll));
 
        return list;
 }
@@ -231,16 +243,18 @@ int vp_file_recursive_rm(const char *dir)
                if (dirp) {
                        while ((readdir_r(dirp, &ent_struct, &dp) == 0) && dp) {
                                if ((strcmp(dp->d_name, "."))
-                                               && (strcmp(dp->d_name, ".."))) {
-                                       if (!vp_file_recursive_rm(dp->d_name))
+                                       && (strcmp(dp->d_name, ".."))) {
+                                       if (!vp_file_recursive_rm(dp->d_name)) {
                                                ret = 0;
+                                       }
                                }
                        }
                        closedir(dirp);
                }
 
-               if (!vp_file_rmdir(dir))
+               if (!vp_file_rmdir(dir)) {
                        ret = 0;
+               }
 
                return ret;
        } else {
@@ -258,15 +272,18 @@ int vp_file_cp(const char *src, const char *dst)
        size_t num;
        int ret = 1;
 
-       if (!realpath(src, realpath1))
+       if (!realpath(src, realpath1)) {
                return 0;
+       }
 
-       if (realpath(dst, realpath2) && !strcmp(realpath1, realpath2))
+       if (realpath(dst, realpath2) && !strcmp(realpath1, realpath2)) {
                return 0;
+       }
 
        f1 = fopen(src, "rb");
-       if (!f1)
+       if (!f1) {
                return 0;
+       }
 
        f2 = fopen(dst, "wb");
        if (!f2) {
@@ -275,8 +292,9 @@ int vp_file_cp(const char *src, const char *dst)
        }
 
        while ((num = fread(buf, 1, sizeof(buf), f1)) > 0) {
-               if (fwrite(buf, 1, num, f2) != num)
+               if (fwrite(buf, 1, num, f2) != num) {
                        ret = 0;
+               }
        }
 
        fclose(f1);
@@ -288,8 +306,9 @@ int vp_file_cp(const char *src, const char *dst)
 int vp_file_mv(const char *src, const char *dst)
 {
        struct stat info = { 0, };
-       if (stat(dst, &info) == 0)
+       if (stat(dst, &info) == 0) {
                return 0;
+       }
 
        if (rename(src, dst)) {
                memset(&info, 0x00, sizeof(struct stat));
index 610727e..e754a95 100644 (file)
@@ -23,7 +23,7 @@
 
 /* callback functions */
 static bool __vp_media_content_info_cb(media_info_h pMediaHandle,
-                                      void *pUserData)
+                                       void *pUserData)
 {
        media_info_h *pAssignItem = (media_info_h *) pUserData;
 
@@ -58,7 +58,7 @@ static bool __vp_media_content_info_cb(media_info_h pMediaHandle,
 
 /* external functions */
 bool vp_media_content_util_get_video_id(const char *szFilePath,
-                                       char **szVideoID)
+                                        char **szVideoID)
 {
        if (szFilePath == NULL) {
                vp_dbgE("szFilePath is NULL");
@@ -86,17 +86,17 @@ bool vp_media_content_util_get_video_id(const char *szFilePath,
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                vp_dbgE("media_filter_set_condition is fail : 0x%x", nRet);
                goto Execption;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_content_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_content_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                vp_dbgE("media_filter_set_condition is fail : 0x%x", nRet);
                goto Execption;
@@ -174,17 +174,17 @@ bool vp_media_content_util_get_first_video(char **szFilePath)
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                vp_dbgE("media_filter_set_condition is fail : 0x%x", nRet);
                goto Execption;
        }
 
        nRet =
-               media_filter_set_order(pFilterHandle, MEDIA_CONTENT_ORDER_DESC,
-                                      MEDIA_MODIFIED_TIME,
-                                      MEDIA_CONTENT_COLLATE_NOCASE);
+           media_filter_set_order(pFilterHandle, MEDIA_CONTENT_ORDER_DESC,
+                                  MEDIA_MODIFIED_TIME,
+                                  MEDIA_CONTENT_COLLATE_NOCASE);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                vp_dbgE("media_filter_set_order is fail : 0x%x", nRet);
                goto Execption;
@@ -197,9 +197,9 @@ bool vp_media_content_util_get_first_video(char **szFilePath)
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_content_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_content_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                vp_dbgE("media_info_foreach_media_from_db is fail : 0x%x", nRet);
                goto Execption;
index 5de2660..8302e51 100644 (file)
@@ -18,8 +18,8 @@
 #include "vp-pinch-zoom.h"
 
 static vp_pinch_event_s *__vp_gesture_create_event_obj(void *data,
-               Evas_Object *
-               object, int device)
+        Evas_Object *
+        object, int device)
 {
        vp_gesture_s *gesture_d = (vp_gesture_s *)data;
        vp_pinch_event_s *ev = NULL;
@@ -34,7 +34,7 @@ static vp_pinch_event_s *__vp_gesture_create_event_obj(void *data,
        evas_object_geometry_get(object, &ev->x, &ev->y, &ev->w, &ev->h);
 
        gesture_d->s_event_elist =
-               eina_list_append(gesture_d->s_event_elist, ev);
+           eina_list_append(gesture_d->s_event_elist, ev);
        return ev;
 }
 
@@ -45,7 +45,7 @@ static int __vp_gesture_destroy_event_obj(void *data,
        ev->pinch_obj = NULL;
        ev->pinch_dis = 0;
        gesture_d->s_event_elist =
-               eina_list_remove(gesture_d->s_event_elist, ev);
+           eina_list_remove(gesture_d->s_event_elist, ev);
        VP_IF_DEL_TIMER(ev->hold_timer);
 
        VP_FREE(ev);
@@ -53,15 +53,16 @@ static int __vp_gesture_destroy_event_obj(void *data,
 }
 
 static vp_pinch_event_s *__vp_gesture_get_event_obj(void *data,
-               int device)
+                               int device)
 {
        vp_gesture_s *gesture_d = (vp_gesture_s *)data;
        Eina_List *l = NULL;
        vp_pinch_event_s *ev = NULL;
 
        EINA_LIST_FOREACH(gesture_d->s_event_elist, l, ev) {
-               if (ev && ev->device == device)
+               if (ev && ev->device == device) {
                        break;
+               }
                ev = NULL;
        }
 
@@ -69,7 +70,7 @@ static vp_pinch_event_s *__vp_gesture_get_event_obj(void *data,
 }
 
 static int __vp_gesture_get_distance(Evas_Coord x1, Evas_Coord y1,
-                                    Evas_Coord x2, Evas_Coord y2)
+                                     Evas_Coord x2, Evas_Coord y2)
 {
        int dis, dx, dy;
 
@@ -94,25 +95,28 @@ static int __vp_gesture_get_multi_device(void *data)
        vp_pinch_event_s *ev = NULL;
 
        EINA_LIST_FOREACH(gesture_d->s_event_elist, l, ev) {
-               if (ev && ev->device != 0)
+               if (ev && ev->device != 0) {
                        return ev->device;
+               }
        }
        return 0;
 }
 
 static void __vp_gesture_mouse_down_event(void *data, Evas *e,
-               Evas_Object *evas_obj,
-               void *ei)
+        Evas_Object *evas_obj,
+        void *ei)
 {
        Evas_Event_Mouse_Down *ev = (Evas_Event_Mouse_Down *)ei;
        vp_pinch_event_s *ev0;
        ev0 = __vp_gesture_get_event_obj(data, 0);
-       if (ev0)
+       if (ev0) {
                return;
+       }
 
        ev0 = __vp_gesture_create_event_obj(data, evas_obj, 0);
-       if (!ev0)
+       if (!ev0) {
                return;
+       }
 
        ev0->hold_timer = NULL;
        ev0->prev.x = ev->output.x;
@@ -120,17 +124,19 @@ static void __vp_gesture_mouse_down_event(void *data, Evas *e,
 }
 
 static void __vp_gesture_multi_down_event(void *data, Evas *evas,
-               Evas_Object *obj, void *ei)
+        Evas_Object *obj, void *ei)
 {
        vp_pinch_event_s *ev;
        Evas_Event_Multi_Down *down = (Evas_Event_Multi_Down *)ei;
        ev = __vp_gesture_get_event_obj(data, down->device);
-       if (ev)
+       if (ev) {
                return;
+       }
 
        ev = __vp_gesture_create_event_obj(data, obj, down->device);
-       if (!ev)
+       if (!ev) {
                return;
+       }
 
        ev->hold_timer = NULL;
        ev->prev.x = down->output.x;
@@ -138,7 +144,7 @@ static void __vp_gesture_multi_down_event(void *data, Evas *evas,
 }
 
 static void __vp_gesture_mouse_up_event(void *data, Evas *e,
-                                       Evas_Object *obj, void *ei)
+                                        Evas_Object *obj, void *ei)
 {
        int mdevice;
        vp_pinch_event_s *ev0;
@@ -160,15 +166,15 @@ static void __vp_gesture_mouse_up_event(void *data, Evas *e,
 
                VP_IF_DEL_TIMER(ev->hold_timer);
                ev->hold_timer =
-                       ecore_timer_add(VP_PINCH_HOLD_TIME_DELAY,
-                                       __vp_gesture_hold_timer_cb, ev);
+                   ecore_timer_add(VP_PINCH_HOLD_TIME_DELAY,
+                                   __vp_gesture_hold_timer_cb, ev);
        }
 
        __vp_gesture_destroy_event_obj(data, ev0);
 }
 
 static void __vp_gesture_multi_up_event(void *data, Evas *evas,
-                                       Evas_Object *obj, void *ei)
+                                        Evas_Object *obj, void *ei)
 {
        vp_gesture_s *gesture_d = (vp_gesture_s *)data;
        Evas_Event_Multi_Up *up = (Evas_Event_Multi_Up *)ei;
@@ -185,8 +191,8 @@ static void __vp_gesture_multi_up_event(void *data, Evas *evas,
        if (ev0) {
                VP_IF_DEL_TIMER(ev0->hold_timer);
                ev0->hold_timer =
-                       ecore_timer_add(VP_PINCH_HOLD_TIME_DELAY,
-                                       __vp_gesture_hold_timer_cb, ev0);
+                   ecore_timer_add(VP_PINCH_HOLD_TIME_DELAY,
+                                   __vp_gesture_hold_timer_cb, ev0);
        } else {
                /* up when device 0 is off */
        }
@@ -194,7 +200,7 @@ static void __vp_gesture_multi_up_event(void *data, Evas *evas,
 }
 
 static void __vp_gesture_mouse_move_event(void *data, Evas *e,
-               Evas_Object *obj, void *ei)
+        Evas_Object *obj, void *ei)
 {
        Evas_Event_Mouse_Move *ev = (Evas_Event_Mouse_Move *)ei;
        vp_pinch_event_s *ev0;
@@ -219,7 +225,7 @@ static void __vp_gesture_zoom_out_job_cb(void *data)
 
        if (gesture_d->zoom_out_cb)
                gesture_d->zoom_out_cb(gesture_d->gesture,
-                                      gesture_d->zoom_out_data);
+                                      gesture_d->zoom_out_data);
 
        VP_IF_DEL_JOB(gesture_d->pinch_job);
 }
@@ -235,14 +241,14 @@ static void __vp_gesture_zoom_in_job_cb(void *data)
 
        if (gesture_d->zoom_in_cb)
                gesture_d->zoom_in_cb(gesture_d->gesture,
-                                     gesture_d->zoom_in_data);
+                                     gesture_d->zoom_in_data);
 
 
        VP_IF_DEL_JOB(gesture_d->pinch_job);
 }
 
 static void __vp_gesture_multi_move_event(void *data, Evas *evas,
-               Evas_Object *obj, void *ei)
+        Evas_Object *obj, void *ei)
 {
        vp_gesture_s *gesture_d = (vp_gesture_s *) data;
        Evas_Event_Multi_Move *move = (Evas_Event_Multi_Move *)ei;
@@ -262,15 +268,15 @@ static void __vp_gesture_multi_move_event(void *data, Evas *evas,
        }
 
        dis_new = __vp_gesture_get_distance(ev0->prev.x, ev0->prev.y,
-                                           ev->prev.x, ev->prev.y);
+                                           ev->prev.x, ev->prev.y);
 
        int dis_old = gesture_d->dis_old;
        if (dis_old != 0) {
                if (dis_old - dis_new > 0
-                               && ev->pinch_dis > VP_PINCH_TOUCH_HOLD_RANGE) {
+                       && ev->pinch_dis > VP_PINCH_TOUCH_HOLD_RANGE) {
                        if (gesture_d->pinch_dis_old
-                                       && ev->pinch_dis <
-                                       (gesture_d->pinch_dis_old * VP_PINCH_TOUCH_FACTOR)) {
+                               && ev->pinch_dis <
+                               (gesture_d->pinch_dis_old * VP_PINCH_TOUCH_FACTOR)) {
                                ev->pinch_dis += (dis_old - dis_new);
                                gesture_d->dis_old = dis_new;
                                return;
@@ -279,7 +285,7 @@ static void __vp_gesture_multi_move_event(void *data, Evas *evas,
                        gesture_d->next_plan = VP_PINCH_PLAN_OUT;       /* plan to zoom-out */
                        if (!gesture_d->pinch_job) {
                                gesture_d->pinch_job =
-                                       ecore_job_add(__vp_gesture_zoom_out_job_cb, data);
+                                   ecore_job_add(__vp_gesture_zoom_out_job_cb, data);
                        } else {
                                VideoLogInfo("Added job pinch zoom out");
                        }
@@ -287,10 +293,10 @@ static void __vp_gesture_multi_move_event(void *data, Evas *evas,
                        gesture_d->pinch_dis_old = ev->pinch_dis;
                        ev->pinch_dis = 0;
                } else if (dis_old - dis_new < 0
-                               && ev->pinch_dis < -VP_PINCH_TOUCH_HOLD_RANGE) {
+                          && ev->pinch_dis < -VP_PINCH_TOUCH_HOLD_RANGE) {
                        if (gesture_d->pinch_dis_old
-                                       && ev->pinch_dis >
-                                       (gesture_d->pinch_dis_old * VP_PINCH_TOUCH_FACTOR)) {
+                               && ev->pinch_dis >
+                               (gesture_d->pinch_dis_old * VP_PINCH_TOUCH_FACTOR)) {
                                ev->pinch_dis += (dis_old - dis_new);
                                gesture_d->dis_old = dis_new;
                                return;
@@ -300,7 +306,7 @@ static void __vp_gesture_multi_move_event(void *data, Evas *evas,
                        if (!gesture_d->pinch_job) {
                                VideoLogInfo("Add job pinch zoom in");
                                gesture_d->pinch_job =
-                                       ecore_job_add(__vp_gesture_zoom_in_job_cb, data);
+                                   ecore_job_add(__vp_gesture_zoom_in_job_cb, data);
                        } else {
                                VideoLogWarning("Added job pinch zoom in");
                        }
@@ -311,14 +317,14 @@ static void __vp_gesture_multi_move_event(void *data, Evas *evas,
                ev->pinch_dis += (dis_old - dis_new);
        }
        VideoLogInfo("dis_new: %d, dis_old: %d, pinch_dis %d", dis_new,
-                    dis_old, ev->pinch_dis);
+                    dis_old, ev->pinch_dis);
 
        /* Reset dis_old value */
        gesture_d->dis_old = dis_new;
 }
 
 static void __vp_gesture_del_cb(void *data, Evas *e, Evas_Object *obj,
-                               void *ei)
+                                void *ei)
 {
        VideoLogWarning("Delete gesture ---");
        if (data) {
@@ -343,7 +349,7 @@ Evas_Object *_vp_gesture_add(void *data, Evas_Object *parent)
        evas_object_color_set(gesture, 0, 0, 0, 0);
 
        vp_gesture_s *gesture_d =
-               (vp_gesture_s *)calloc(1, sizeof(vp_gesture_s));
+           (vp_gesture_s *)calloc(1, sizeof(vp_gesture_s));
        if (gesture_d == NULL) {
                evas_object_del(gesture);
                return NULL;
@@ -354,33 +360,33 @@ Evas_Object *_vp_gesture_add(void *data, Evas_Object *parent)
        gesture_d->gesture = gesture;
 
        evas_object_event_callback_add(gesture, EVAS_CALLBACK_MOUSE_DOWN,
-                                      __vp_gesture_mouse_down_event,
-                                      gesture_d);
+                                      __vp_gesture_mouse_down_event,
+                                      gesture_d);
        evas_object_event_callback_add(gesture, EVAS_CALLBACK_MOUSE_UP,
-                                      __vp_gesture_mouse_up_event,
-                                      gesture_d);
+                                      __vp_gesture_mouse_up_event,
+                                      gesture_d);
        evas_object_event_callback_add(gesture, EVAS_CALLBACK_MOUSE_MOVE,
-                                      __vp_gesture_mouse_move_event,
-                                      gesture_d);
+                                      __vp_gesture_mouse_move_event,
+                                      gesture_d);
        evas_object_event_callback_add(gesture, EVAS_CALLBACK_MULTI_DOWN,
-                                      __vp_gesture_multi_down_event,
-                                      gesture_d);
+                                      __vp_gesture_multi_down_event,
+                                      gesture_d);
        evas_object_event_callback_add(gesture, EVAS_CALLBACK_MULTI_UP,
-                                      __vp_gesture_multi_up_event,
-                                      gesture_d);
+                                      __vp_gesture_multi_up_event,
+                                      gesture_d);
        evas_object_event_callback_add(gesture, EVAS_CALLBACK_MULTI_MOVE,
-                                      __vp_gesture_multi_move_event,
-                                      gesture_d);
+                                      __vp_gesture_multi_move_event,
+                                      gesture_d);
 
        evas_object_data_set(gesture, VP_GESTURE_KEY_DATA,
-                            (void *)gesture_d);
+                            (void *)gesture_d);
        evas_object_event_callback_add(gesture, EVAS_CALLBACK_DEL,
-                                      __vp_gesture_del_cb, gesture_d);
+                                      __vp_gesture_del_cb, gesture_d);
        return gesture;
 }
 
 int _vp_gesture_set_zoom_in_cb(Evas_Object *gesture, vp_gesture_cb cb,
-                              void *data)
+                               void *data)
 {
        if (gesture == NULL || data == NULL) {
                VideoLogInfo("Event Object is NULL");
@@ -390,8 +396,8 @@ int _vp_gesture_set_zoom_in_cb(Evas_Object *gesture, vp_gesture_cb cb,
        vp_gesture_s *gesture_d = NULL;
 
        gesture_d =
-               (vp_gesture_s *)evas_object_data_get(gesture,
-                               VP_GESTURE_KEY_DATA);
+           (vp_gesture_s *)evas_object_data_get(gesture,
+                   VP_GESTURE_KEY_DATA);
        if (gesture_d) {
                gesture_d->zoom_in_cb = cb;
                gesture_d->zoom_in_data = data;
@@ -400,7 +406,7 @@ int _vp_gesture_set_zoom_in_cb(Evas_Object *gesture, vp_gesture_cb cb,
 }
 
 int _vp_gesture_set_zoom_out_cb(Evas_Object *gesture, vp_gesture_cb cb,
-                               void *data)
+                                void *data)
 {
        if (gesture == NULL || data == NULL) {
                VideoLogInfo("Event Object is NULL");
@@ -410,8 +416,8 @@ int _vp_gesture_set_zoom_out_cb(Evas_Object *gesture, vp_gesture_cb cb,
        vp_gesture_s *gesture_d = NULL;
 
        gesture_d =
-               (vp_gesture_s *)evas_object_data_get(gesture,
-                               VP_GESTURE_KEY_DATA);
+           (vp_gesture_s *)evas_object_data_get(gesture,
+                   VP_GESTURE_KEY_DATA);
 
        if (gesture_d != NULL) {
                gesture_d->zoom_out_cb = cb;
@@ -429,12 +435,13 @@ Eina_Bool __vp_pinch_zoom_out_cb(Evas_Object *gesture, void *data)
        }
 
        st_VideoListViewMainViewWidget *ad =
-               (st_VideoListViewMainViewWidget *)data;
+           (st_VideoListViewMainViewWidget *)data;
        VideoLogInfo("%d", ad->zoom_level);
        if (ad->zoom_level > VP_ZOOM_IN_DEFAULT) {
                ad->zoom_level--;
-               if (_grid_view_zoom_out(data, NULL) == 0)
+               if (_grid_view_zoom_out(data, NULL) == 0) {
                        ad->zoom_level = VP_ZOOM_IN_DEFAULT;
+               }
        }
 
        return ECORE_CALLBACK_CANCEL;
@@ -448,13 +455,14 @@ Eina_Bool __vp_pinch_zoom_in_cb(Evas_Object *gesture, void *data)
        }
 
        st_VideoListViewMainViewWidget *ad =
-               (st_VideoListViewMainViewWidget *) data;
+           (st_VideoListViewMainViewWidget *) data;
 
        if ((ad->zoom_level >= VP_ZOOM_IN_DEFAULT) &&
-                       (ad->zoom_level < VP_ZOOM_IN_MAX)) {
+               (ad->zoom_level < VP_ZOOM_IN_MAX)) {
                ad->zoom_level++;
-               if (_grid_view_zoom_in(data, NULL) == 0)
+               if (_grid_view_zoom_in(data, NULL) == 0) {
                        ad->zoom_level = VP_ZOOM_IN_MAX;
+               }
        }
 
        return ECORE_CALLBACK_CANCEL;
@@ -468,7 +476,7 @@ int _vp_pinch_add_event(void *data, Evas_Object *layout)
        }
 
        st_VideoListViewMainViewWidget *ad =
-               (st_VideoListViewMainViewWidget *)data;
+           (st_VideoListViewMainViewWidget *)data;
 
        /* Set initialize level */
        ad->zoom_level = VP_ZOOM_IN_DEFAULT;
index a03277c..8f929cf 100644 (file)
@@ -172,7 +172,7 @@ void vp_preview_db_destroy(vp_preview_db_h hPreviewDB)
 }
 
 bool vp_preview_db_set_media_id(vp_preview_db_h hPreviewDB,
-                               const char *szMediaID)
+                                const char *szMediaID)
 {
        if (hPreviewDB == NULL) {
                vp_dbgE("hPreviewDB is NULL");
@@ -194,7 +194,7 @@ bool vp_preview_db_set_media_id(vp_preview_db_h hPreviewDB,
 }
 
 bool vp_preview_db_set_media_url(vp_preview_db_h hPreviewDB,
-                                const char *szMediaURL)
+                                 const char *szMediaURL)
 {
        if (hPreviewDB == NULL) {
                vp_dbgE("hPreviewDB is NULL");
@@ -214,7 +214,7 @@ bool vp_preview_db_set_media_url(vp_preview_db_h hPreviewDB,
        VP_STRDUP(pPreviewDB->szMediaURL, szMediaURL);
 
        if (!vp_media_content_util_get_video_id
-                       (szMediaURL, &(pPreviewDB->szMediaID))) {
+               (szMediaURL, &(pPreviewDB->szMediaID))) {
                vp_dbgE("vp_media_content_util_get_video_id is fail");
                return FALSE;
        }
@@ -224,7 +224,7 @@ bool vp_preview_db_set_media_url(vp_preview_db_h hPreviewDB,
 
 
 bool vp_preview_db_get_file_path(vp_preview_db_h hPreviewDB,
-                                char **szFilePath)
+                                 char **szFilePath)
 {
        if (hPreviewDB == NULL) {
                vp_dbgE("hPreviewDB is NULL");
@@ -239,7 +239,7 @@ bool vp_preview_db_get_file_path(vp_preview_db_h hPreviewDB,
        }
 
        char *szSql =
-               sqlite3_mprintf(PREVIEW_DB_SELECT_QUERY, pPreviewDB->szMediaID);
+           sqlite3_mprintf(PREVIEW_DB_SELECT_QUERY, pPreviewDB->szMediaID);
        sqlite3_stmt *stmt = NULL;
 
        if (!vp_db_util_query_prepare(szSql, &stmt)) {
@@ -277,7 +277,7 @@ bool vp_preview_db_get_file_path(vp_preview_db_h hPreviewDB,
 }
 
 bool vp_preview_db_get_file_size(vp_preview_db_h hPreviewDB,
-                                int *nFileSize)
+                                 int *nFileSize)
 {
        if (hPreviewDB == NULL) {
                vp_dbgE("hPreviewDB is NULL");
@@ -292,7 +292,7 @@ bool vp_preview_db_get_file_size(vp_preview_db_h hPreviewDB,
        }
 
        char *szSql =
-               sqlite3_mprintf(PREVIEW_DB_SELECT_QUERY, pPreviewDB->szMediaID);
+           sqlite3_mprintf(PREVIEW_DB_SELECT_QUERY, pPreviewDB->szMediaID);
        sqlite3_stmt *stmt = NULL;
 
        if (!vp_db_util_query_prepare(szSql, &stmt)) {
@@ -343,7 +343,7 @@ bool vp_preview_db_item_count(vp_preview_db_h hPreviewDB, int *nCount)
 }
 
 bool vp_preview_db_get_all_items_media_id(vp_preview_db_h hPreviewDB,
-               GList **pPreviewList)
+        GList **pPreviewList)
 {
        if (hPreviewDB == NULL) {
                vp_dbgE("hPreviewDB is NULL");
@@ -387,7 +387,7 @@ bool vp_preview_db_get_all_items_media_id(vp_preview_db_h hPreviewDB,
 }
 
 bool vp_preview_db_insert(vp_preview_db_h hPreviewDB,
-                         const char *szPreviewPath)
+                          const char *szPreviewPath)
 {
        if (hPreviewDB == NULL) {
                vp_dbgE("hPreviewDB is NULL");
@@ -409,8 +409,8 @@ bool vp_preview_db_insert(vp_preview_db_h hPreviewDB,
        long long nSize = vp_file_size(szPreviewPath);
 
        char *szSql =
-               sqlite3_mprintf(PREVIEW_DB_INSERT_QUERY, szPreviewPath,
-                               (int) nSize, pPreviewDB->szMediaID);
+           sqlite3_mprintf(PREVIEW_DB_INSERT_QUERY, szPreviewPath,
+                           (int) nSize, pPreviewDB->szMediaID);
        vp_sdbg("%s", szSql);
 
        sqlite3_stmt *stmt = NULL;
@@ -457,7 +457,7 @@ bool vp_preview_db_delete(vp_preview_db_h hPreviewDB)
        _vp_preview_db_delete_item(pPreviewDB->szMediaID);
 
        char *szSql =
-               sqlite3_mprintf(PREVIEW_DB_DELETE_QUERY, pPreviewDB->szMediaID);
+           sqlite3_mprintf(PREVIEW_DB_DELETE_QUERY, pPreviewDB->szMediaID);
        vp_sdbg("%s", szSql);
 
        sqlite3_stmt *stmt = NULL;
index 02068d9..b41383c 100644 (file)
@@ -175,7 +175,7 @@ void vp_thumb_db_destroy(vp_thumb_db_h hThumbDB)
 }
 
 bool vp_thumb_db_set_media_id(vp_thumb_db_h hThumbDB,
-                             const char *szMediaID)
+                              const char *szMediaID)
 {
        if (hThumbDB == NULL) {
                vp_dbgE("hThumbDB is NULL");
@@ -197,7 +197,7 @@ bool vp_thumb_db_set_media_id(vp_thumb_db_h hThumbDB,
 }
 
 bool vp_thumb_db_set_media_url(vp_thumb_db_h hThumbDB,
-                              const char *szMediaURL)
+                               const char *szMediaURL)
 {
        if (hThumbDB == NULL) {
                vp_dbgE("hThumbDB is NULL");
@@ -217,7 +217,7 @@ bool vp_thumb_db_set_media_url(vp_thumb_db_h hThumbDB,
        VP_STRDUP(pThumbDB->szMediaURL, szMediaURL);
 
        if (!vp_media_content_util_get_video_id
-                       (szMediaURL, &(pThumbDB->szMediaID))) {
+               (szMediaURL, &(pThumbDB->szMediaID))) {
                vp_dbgE("vp_media_content_util_get_video_id is fail");
                return FALSE;
        }
@@ -241,7 +241,7 @@ bool vp_thumb_db_get_items(vp_thumb_db_h hThumbDB, GList **pThumbList)
        }
 
        char *szSql =
-               sqlite3_mprintf(THUMB_DB_SELECT_QUERY, pThumbDB->szMediaID);
+           sqlite3_mprintf(THUMB_DB_SELECT_QUERY, pThumbDB->szMediaID);
        sqlite3_stmt *stmt = NULL;
 
        if (!vp_db_util_query_prepare(szSql, &stmt)) {
@@ -269,7 +269,7 @@ bool vp_thumb_db_get_items(vp_thumb_db_h hThumbDB, GList **pThumbList)
 
                pItem->nIdx = (int) sqlite3_column_int(stmt, 1);
                VP_STRDUP(pItem->szThumbPath,
-                         (char *) sqlite3_column_text(stmt, 2));
+                         (char *) sqlite3_column_text(stmt, 2));
                pItem->nFileSize = (int) sqlite3_column_int(stmt, 3);
 
                *pThumbList = g_list_append(*pThumbList, pItem);
@@ -291,7 +291,7 @@ bool vp_thumb_db_get_items(vp_thumb_db_h hThumbDB, GList **pThumbList)
 }
 
 bool vp_thumb_db_get_all_items_media_id(vp_thumb_db_h hThumbDB,
-                                       GList **pThumbList)
+                                        GList **pThumbList)
 {
        if (hThumbDB == NULL) {
                vp_dbgE("hThumbDB is NULL");
@@ -335,7 +335,7 @@ bool vp_thumb_db_get_all_items_media_id(vp_thumb_db_h hThumbDB,
 
 
 bool vp_thumb_db_insert(vp_thumb_db_h hThumbDB, const char *szThumbPath,
-                       int nIdx)
+                        int nIdx)
 {
        if (hThumbDB == NULL) {
                vp_dbgE("hThumbDB is NULL");
@@ -357,8 +357,8 @@ bool vp_thumb_db_insert(vp_thumb_db_h hThumbDB, const char *szThumbPath,
        long long nSize = vp_file_size(szThumbPath);
 
        char *szSql =
-               sqlite3_mprintf(THUMB_DB_INSERT_QUERY, nIdx, szThumbPath,
-                               (int) nSize, pThumbDB->szMediaID);
+           sqlite3_mprintf(THUMB_DB_INSERT_QUERY, nIdx, szThumbPath,
+                           (int) nSize, pThumbDB->szMediaID);
        vp_sdbg("%s", szSql);
 
        sqlite3_stmt *stmt = NULL;
@@ -406,7 +406,7 @@ bool vp_thumb_db_delete(vp_thumb_db_h hThumbDB)
        _vp_thumb_db_delete_items(pThumbDB->szMediaID);
 
        char *szSql =
-               sqlite3_mprintf(THUMB_DB_DELETE_QUERY, pThumbDB->szMediaID);
+           sqlite3_mprintf(THUMB_DB_DELETE_QUERY, pThumbDB->szMediaID);
        vp_sdbg("%s", szSql);
 
        sqlite3_stmt *stmt = NULL;
index 0e9d7e0..1444d24 100644 (file)
@@ -78,8 +78,7 @@ static char *__vp_util_get_string(const char *ID)
        char *str;
        if (strstr(ID, "IDS_COM") || strstr(ID, "IDS_IDLE")) {
                str = dgettext("sys_string", ID);
-       }
-       else {
+       } else {
                str = dgettext("video-player", ID);
        }
        return str;
@@ -87,12 +86,13 @@ static char *__vp_util_get_string(const char *ID)
 
 static Vp_Storage __vp_util_get_storage_type(const char *filepath)
 {
-       if (!filepath)
+       if (!filepath) {
                return VP_STORAGE_NONE;
+       }
 
        if (g_str_has_prefix(filepath, CLOUD_FOLDER)) {
                return VP_STORAGE_CLOUD;/*store in cloud server*/
-       }else if (g_str_has_prefix(filepath, PHONE_FOLDER)) {
+       } else if (g_str_has_prefix(filepath, PHONE_FOLDER)) {
                return VP_STORAGE_PHONE;/*store in phone*/
        } else if (g_str_has_prefix(filepath, MEMORY_FOLDER)) {
                return VP_STORAGE_MMC;  /*store in MMC*/
@@ -107,8 +107,9 @@ static Vp_Storage __vp_util_get_storage_type(const char *filepath)
 
 static char *__vp_util_get_logic_path(const char *full_path)
 {
-       if (!full_path)
+       if (!full_path) {
                return NULL;
+       }
 
        Vp_Storage store_type = VP_STORAGE_NONE;
        int root_len = 0;
@@ -134,15 +135,17 @@ static char *__vp_util_get_logic_path(const char *full_path)
        /*size of path is DIR_PATH_LEN_MAX+1*/
        char *logic_path = NULL;
        logic_path = (char *)malloc(DIR_PATH_LEN_MAX + 1);
-       if (logic_path == NULL)
+       if (logic_path == NULL) {
                return NULL;
+       }
 
        memset(logic_path, 0, DIR_PATH_LEN_MAX + 1);
 
        g_strlcpy(logic_path, full_path + root_len, DIR_PATH_LEN_MAX);
 
-       if (strlen(logic_path) == 0)
+       if (strlen(logic_path) == 0) {
                g_strlcpy(logic_path, "/", DIR_PATH_LEN_MAX);
+       }
 
        return logic_path;
 }
@@ -191,14 +194,14 @@ char *vp_util_convert_file_location(const char *szFileLocation)
 }
 
 int vp_util_image_rotate(unsigned char *dest, int *dest_width, int *dest_height, const image_util_rotation_e dest_rotation,
-               const unsigned char *src, const int src_w, const int src_h, const image_util_colorspace_e colorspace)
+                         const unsigned char *src, const int src_w, const int src_h, const image_util_colorspace_e colorspace)
 {
        if (!dest || !dest_width || !dest_height || !src) {
                return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
        }
 
        if (IMAGE_UTIL_COLORSPACE_RGB888 != colorspace || src_w <= 0 || src_h <= 0
-                || dest_rotation <= IMAGE_UTIL_ROTATION_NONE || dest_rotation > IMAGE_UTIL_ROTATION_FLIP_VERT) {
+               || dest_rotation <= IMAGE_UTIL_ROTATION_NONE || dest_rotation > IMAGE_UTIL_ROTATION_FLIP_VERT) {
                return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
        }
 
@@ -209,45 +212,45 @@ int vp_util_image_rotate(unsigned char *dest, int *dest_width, int *dest_height,
        int x = 0, y = 0;
 
        switch (dest_rotation) {
-               case IMAGE_UTIL_ROTATION_90:
-               {
-                       const rgb888 * const src_col_0 = (rgb888*) (src + (src_h - 1) * src_stride);
-                       for (y = 0; y < dest_h; y++) {
-                               rgb888 * const dest_row = (rgb888*) (dest + y * dest_stride);
-                               const rgb888 * const src_col = (src_col_0 + y);
-                               for (x = 0; x < dest_w; x++) {
-                                       dest_row[x] = *(rgb888*)((uchar*)src_col - x * src_stride);
-                               }
+       case IMAGE_UTIL_ROTATION_90: {
+               const rgb888 * const src_col_0 = (rgb888*)(src + (src_h - 1) * src_stride);
+               for (y = 0; y < dest_h; y++) {
+                       rgb888 * const dest_row = (rgb888*)(dest + y * dest_stride);
+                       const rgb888 * const src_col = (src_col_0 + y);
+                       for (x = 0; x < dest_w; x++) {
+                               dest_row[x] = *(rgb888*)((uchar*)src_col - x * src_stride);
                        }
-               } break;
-
-               case IMAGE_UTIL_ROTATION_180:
-               {
-                       const rgb888 * const src_row_rev_0 = (rgb888*) (src + (src_h - 1) * src_stride
-                                       + (src_w - 1) * sizeof(rgb888));
-                       for (y = 0; y < dest_h; y++) {
-                               rgb888 * const dest_row = (rgb888*) (dest + y * dest_stride);
-                               const rgb888 * const src_row_rev = (rgb888*) ((uchar*)src_row_rev_0 - y * src_stride);
-                               for (x = 0; x < dest_w; x++) {
-                                       dest_row[x] = *(src_row_rev - x);
-                               }
+               }
+       }
+       break;
+
+       case IMAGE_UTIL_ROTATION_180: {
+               const rgb888 * const src_row_rev_0 = (rgb888*)(src + (src_h - 1) * src_stride
+                                                    + (src_w - 1) * sizeof(rgb888));
+               for (y = 0; y < dest_h; y++) {
+                       rgb888 * const dest_row = (rgb888*)(dest + y * dest_stride);
+                       const rgb888 * const src_row_rev = (rgb888*)((uchar*)src_row_rev_0 - y * src_stride);
+                       for (x = 0; x < dest_w; x++) {
+                               dest_row[x] = *(src_row_rev - x);
                        }
-               } break;
-
-               case IMAGE_UTIL_ROTATION_270:
-               {
-                       const rgb888 * const src_col_rev_0 = (rgb888*) (src + (src_w - 1) * sizeof(rgb888));
-                       for (y = 0; y < dest_h; y++) {
-                               rgb888 * const dest_row = (rgb888*) (dest + y * dest_stride);
-                               const rgb888 * const src_col_rev = (src_col_rev_0 - y);
-                               for (x = 0; x < dest_w; x++) {
-                                       dest_row[x] = *(rgb888*)((uchar*)src_col_rev + x * src_stride);
-                               }
+               }
+       }
+       break;
+
+       case IMAGE_UTIL_ROTATION_270: {
+               const rgb888 * const src_col_rev_0 = (rgb888*)(src + (src_w - 1) * sizeof(rgb888));
+               for (y = 0; y < dest_h; y++) {
+                       rgb888 * const dest_row = (rgb888*)(dest + y * dest_stride);
+                       const rgb888 * const src_col_rev = (src_col_rev_0 - y);
+                       for (x = 0; x < dest_w; x++) {
+                               dest_row[x] = *(rgb888*)((uchar*)src_col_rev + x * src_stride);
                        }
-               } break;
+               }
+       }
+       break;
 
-               default:
-                       return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
+       default:
+               return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
        }
 
        *dest_width = dest_w;
@@ -272,7 +275,7 @@ void vp_util_release_cpu()
 }
 
 int vp_util_image_resize(unsigned char *dest, const int *dest_width , const int *dest_height, const unsigned char *src,
-                                                                               const int src_w, const int src_h, const image_util_colorspace_e colorspace)
+                         const int src_w, const int src_h, const image_util_colorspace_e colorspace)
 {
        if (!dest || !dest_width || !dest_height || !src) {
                return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
@@ -282,7 +285,7 @@ int vp_util_image_resize(unsigned char *dest, const int *dest_width , const int
        int dest_h = *dest_height;
 
        if ((IMAGE_UTIL_COLORSPACE_RGB888 != colorspace && IMAGE_UTIL_COLORSPACE_RGBA8888 != colorspace)
-                       || src_w <= 0 || src_h <= 0 || dest_w <= 0 || dest_h <= 0) {
+               || src_w <= 0 || src_h <= 0 || dest_w <= 0 || dest_h <= 0) {
                return IMAGE_UTIL_ERROR_INVALID_PARAMETER;
        }
 
@@ -295,8 +298,8 @@ int vp_util_image_resize(unsigned char *dest, const int *dest_width , const int
        u_int32_t red, green, blue, alpha;
        red = green = blue = alpha = 0;
        int x = 0, y = 0;
-       const float coef_x = (float) (src_w) / (float) (dest_w);
-       const float coef_y = (float) (src_h) / (float) (dest_h);
+       const float coef_x = (float)(src_w) / (float)(dest_w);
+       const float coef_y = (float)(src_h) / (float)(dest_h);
        const float add_x = 0.5f * coef_x - 0.5f;
        const float add_y = 0.5f * coef_y - 0.5f;
        transform *transform_x = NULL, *transform_y = NULL;
@@ -356,13 +359,13 @@ int vp_util_image_resize(unsigned char *dest, const int *dest_width , const int
                                c3 = t_x.coef * (1 - t_y.coef);
                                c4 = (1 - t_x.coef) * (1 - t_y.coef);
                                red = pixel1.r * c1 + pixel2.r * c2 + pixel3.r * c3
-                                               + pixel4.r * c4;
+                                     + pixel4.r * c4;
                                green = pixel1.g * c1 + pixel2.g * c2 + pixel3.g * c3
-                                               + pixel4.g * c4;
+                                       + pixel4.g * c4;
                                blue = pixel1.b * c1 + pixel2.b * c2 + pixel3.b * c3
-                                               + pixel4.b * c4;
+                                      + pixel4.b * c4;
                                alpha = pixel1.a * c1 + pixel2.a * c2 + pixel3.a * c3
-                                               + pixel4.a * c4;
+                                       + pixel4.a * c4;
                                dest_row[x].r = red;
                                dest_row[x].g = green;
                                dest_row[x].b = blue;
@@ -387,11 +390,11 @@ int vp_util_image_resize(unsigned char *dest, const int *dest_width , const int
                                c3 = t_x.coef * (1 - t_y.coef);
                                c4 = (1 - t_x.coef) * (1 - t_y.coef);
                                red = pixel1.r * c1 + pixel2.r * c2 + pixel3.r * c3
-                                               + pixel4.r * c4;
+                                     + pixel4.r * c4;
                                green = pixel1.g * c1 + pixel2.g * c2 + pixel3.g * c3
-                                               + pixel4.g * c4;
+                                       + pixel4.g * c4;
                                blue = pixel1.b * c1 + pixel2.b * c2 + pixel3.b * c3
-                                               + pixel4.b * c4;
+                                      + pixel4.b * c4;
 
                                dest_row[x].r = red;
                                dest_row[x].g = green;
@@ -400,8 +403,8 @@ int vp_util_image_resize(unsigned char *dest, const int *dest_width , const int
                }
        }
 
-       free (transform_x);
-       free (transform_y);
+       free(transform_x);
+       free(transform_y);
 
        return IMAGE_UTIL_ERROR_NONE;
 }
index 2b0298b..90eb2c8 100644 (file)
@@ -151,7 +151,7 @@ bool vp_drm_is_divx_drm_file(const char *szMediaURL, bool *bIsDivXDRM)
 }
 
 bool vp_drm_is_playready_drm_file(const char *szMediaURL,
-                                 bool *bIsPlayReadyDRM)
+                                  bool *bIsPlayReadyDRM)
 {
        if (!szMediaURL) {
                vp_dbgE("szMediaURL is NULL");
@@ -182,7 +182,7 @@ bool vp_drm_is_playready_drm_file(const char *szMediaURL,
        }
 
        if (drm_type == DRM_TYPE_PLAYREADY
-                       || drm_type == DRM_TYPE_PLAYREADY_ENVELOPE) {
+               || drm_type == DRM_TYPE_PLAYREADY_ENVELOPE) {
                *bIsPlayReadyDRM = TRUE;
                vp_dbgW("%s file is PlayReady", szMediaURL);
        } else {
@@ -205,8 +205,8 @@ bool vp_drm_is_check_license(const char *szMediaURL, bool *bCheckLicense)
 
        drm_license_status_e nLicenseStatus = DRM_LICENSE_STATUS_UNDEFINED;
        int nRet =
-               drm_get_license_status(szMediaURL, DRM_PERMISSION_TYPE_PLAY,
-                                      &nLicenseStatus);
+           drm_get_license_status(szMediaURL, DRM_PERMISSION_TYPE_PLAY,
+                                  &nLicenseStatus);
        if (nRet != DRM_RETURN_SUCCESS) {
                vp_dbgE("drm_get_license_status is fail");
                _vp_drm_print_error_code(nRet);
@@ -222,7 +222,7 @@ bool vp_drm_is_check_license(const char *szMediaURL, bool *bCheckLicense)
 }
 
 bool vp_drm_is_check_forward_lock(const char *szMediaURL,
-                                 bool *bIsFowardLock)
+                                  bool *bIsFowardLock)
 {
        if (!szMediaURL) {
                vp_dbgE("szMediaURL is NULL");
@@ -273,7 +273,7 @@ bool vp_drm_is_check_forward_lock(const char *szMediaURL,
 }
 
 bool vp_drm_get_constarint_info(const char *szMediaURL,
-                               vp_drm_constraint_info *pConstraintInfo)
+                                vp_drm_constraint_info *pConstraintInfo)
 {
        if (!szMediaURL) {
                vp_dbgE("szMediaURL is NULL");
@@ -285,8 +285,8 @@ bool vp_drm_get_constarint_info(const char *szMediaURL,
        memset(&sDrmConstraintInfo, 0, sizeof(drm_constraint_info_s));
 
        int nRet =
-               drm_get_constraint_info(szMediaURL, DRM_PERMISSION_TYPE_PLAY,
-                                       &sDrmConstraintInfo);
+           drm_get_constraint_info(szMediaURL, DRM_PERMISSION_TYPE_PLAY,
+                                   &sDrmConstraintInfo);
        if (nRet != DRM_RETURN_SUCCESS) {
                vp_dbgE("drm_get_constraint_info is fail");
                _vp_drm_print_error_code(nRet);
@@ -320,7 +320,7 @@ bool vp_drm_get_constarint_info(const char *szMediaURL,
        case DRM_CONSTRAINT_TYPE_INVALID_DRM_VERSION:
                vp_dbgW("DRM_CONSTRAINT_TYPE_INVALID_DRM_VERSION");
                pConstraintInfo->status =
-                       VP_DRM_CONSTRAINT_TYPE_INVALID_DRM_VERSION;
+                   VP_DRM_CONSTRAINT_TYPE_INVALID_DRM_VERSION;
                break;
        case DRM_CONSTRAINT_TYPE_UNKNOWN_TYPE:
                vp_dbgW("DRM_CONSTRAINT_TYPE_UNKNOWN_TYPE");
@@ -342,25 +342,25 @@ bool vp_drm_get_constarint_info(const char *szMediaURL,
                vp_dbgW("DRM_COUNT [%d]", sDrmConstraintInfo.remaining_count);
                pConstraintInfo->constraints |= VP_DRM_CONSTRAINT_COUNT;
                pConstraintInfo->original_count =
-                       sDrmConstraintInfo.original_count;
+                   sDrmConstraintInfo.original_count;
                pConstraintInfo->remaining_count =
-                       sDrmConstraintInfo.remaining_count;
+                   sDrmConstraintInfo.remaining_count;
        }
 
        if (sDrmConstraintInfo.const_type.is_datetime) {
                vp_dbgW("DRM_DATETIME");
                pConstraintInfo->constraints |= VP_DRM_CONSTRAINT_DATE_TIME;
                vp_dbgW("%d.%d.%d %d:%d~%d.%d.%d %d:%d",
-                       sDrmConstraintInfo.start_time.tm_mday,
-                       sDrmConstraintInfo.start_time.tm_mon,
-                       sDrmConstraintInfo.start_time.tm_year,
-                       sDrmConstraintInfo.start_time.tm_hour,
-                       sDrmConstraintInfo.start_time.tm_min,
-                       sDrmConstraintInfo.end_time.tm_mday,
-                       sDrmConstraintInfo.end_time.tm_mon,
-                       sDrmConstraintInfo.end_time.tm_year,
-                       sDrmConstraintInfo.end_time.tm_hour,
-                       sDrmConstraintInfo.end_time.tm_min);
+                       sDrmConstraintInfo.start_time.tm_mday,
+                       sDrmConstraintInfo.start_time.tm_mon,
+                       sDrmConstraintInfo.start_time.tm_year,
+                       sDrmConstraintInfo.start_time.tm_hour,
+                       sDrmConstraintInfo.start_time.tm_min,
+                       sDrmConstraintInfo.end_time.tm_mday,
+                       sDrmConstraintInfo.end_time.tm_mon,
+                       sDrmConstraintInfo.end_time.tm_year,
+                       sDrmConstraintInfo.end_time.tm_hour,
+                       sDrmConstraintInfo.end_time.tm_min);
 
                struct timeval tv;
                gettimeofday(&tv, NULL);
@@ -375,10 +375,10 @@ bool vp_drm_get_constarint_info(const char *szMediaURL,
 
 
                vp_dbgW("%d.%d.%d %d:%d",
-                       ptm->tm_mday, ptm->tm_mon, ptm->tm_year,
-                       ptm->tm_hour, ptm->tm_min);
+                       ptm->tm_mday, ptm->tm_mon, ptm->tm_year,
+                       ptm->tm_hour, ptm->tm_min);
 
-               if (local_t >= start_t &&local_t <= end_t) {
+               if (local_t >= start_t && local_t <= end_t) {
                        pConstraintInfo->date_time_expired = FALSE;
                } else {
                        pConstraintInfo->date_time_expired = TRUE;
@@ -390,50 +390,50 @@ bool vp_drm_get_constarint_info(const char *szMediaURL,
                vp_dbgW("DRM_INTERVAL");
                pConstraintInfo->constraints |= VP_DRM_CONSTRAINT_INTERVAL;
                vp_dbgW("Remain... %d.%d.%d %d:%d",
-                       sDrmConstraintInfo.interval_time.tm_mon,
-                       sDrmConstraintInfo.interval_time.tm_mday,
-                       sDrmConstraintInfo.interval_time.tm_year,
-                       sDrmConstraintInfo.interval_time.tm_hour,
-                       sDrmConstraintInfo.interval_time.tm_min);
+                       sDrmConstraintInfo.interval_time.tm_mon,
+                       sDrmConstraintInfo.interval_time.tm_mday,
+                       sDrmConstraintInfo.interval_time.tm_year,
+                       sDrmConstraintInfo.interval_time.tm_hour,
+                       sDrmConstraintInfo.interval_time.tm_min);
 
                pConstraintInfo->remaining_interval_sec =
-                       sDrmConstraintInfo.interval_time.tm_sec +
-                       sDrmConstraintInfo.interval_time.tm_min * 60 +
-                       sDrmConstraintInfo.interval_time.tm_hour * 3600;
+                   sDrmConstraintInfo.interval_time.tm_sec +
+                   sDrmConstraintInfo.interval_time.tm_min * 60 +
+                   sDrmConstraintInfo.interval_time.tm_hour * 3600;
                pConstraintInfo->remaining_interval_sec +=
-                       (sDrmConstraintInfo.interval_time.tm_mday +
-                        sDrmConstraintInfo.interval_time.tm_mon * 30 +
-                        sDrmConstraintInfo.interval_time.tm_year * 365) * (3600 *
-                                        24);
+                   (sDrmConstraintInfo.interval_time.tm_mday +
+                    sDrmConstraintInfo.interval_time.tm_mon * 30 +
+                    sDrmConstraintInfo.interval_time.tm_year * 365) * (3600 *
+                            24);
        }
 
        if (sDrmConstraintInfo.const_type.is_timedcount) {
                vp_dbgW("DRM_TIMED_COUNT");
                vp_dbgW("%d left (%d sec)",
-                       sDrmConstraintInfo.timed_remaining_count,
-                       sDrmConstraintInfo.timed_count_timer);
+                       sDrmConstraintInfo.timed_remaining_count,
+                       sDrmConstraintInfo.timed_count_timer);
                pConstraintInfo->constraints |= VP_DRM_CONSTRAINT_TIMED_COUNT;
                pConstraintInfo->remaining_timed_count =
-                       sDrmConstraintInfo.timed_remaining_count;
+                   sDrmConstraintInfo.timed_remaining_count;
        }
 
        if (sDrmConstraintInfo.const_type.is_accumulated) {
                vp_dbgW("DRM_ACCUMULATED [%d]",
-                       sDrmConstraintInfo.accumulated_remaining_seconds);
+                       sDrmConstraintInfo.accumulated_remaining_seconds);
                pConstraintInfo->constraints |= VP_DRM_CONSTRAINT_ACCUMLATED_TIME;
                pConstraintInfo->remaining_acc_sec =
-                       sDrmConstraintInfo.accumulated_remaining_seconds;
+                   sDrmConstraintInfo.accumulated_remaining_seconds;
        }
 
        if (sDrmConstraintInfo.const_type.is_individual) {
                vp_sdbg("DRM_INDIVISUAL_ID [%s]",
-                       sDrmConstraintInfo.individual_id);
+                       sDrmConstraintInfo.individual_id);
        }
 
        if (sDrmConstraintInfo.const_type.is_system) {
                vp_sdbg("DRM_SYSTEM [ID:%s, type:%d]",
-                       sDrmConstraintInfo.system_id,
-                       sDrmConstraintInfo.system_identity_type);
+                       sDrmConstraintInfo.system_id,
+                       sDrmConstraintInfo.system_identity_type);
        }
 
        return TRUE;
@@ -466,7 +466,7 @@ bool vp_drm_get_file_mime_type(const char *szMediaURL, char **szMime)
        }
 
        if (drm_type == DRM_TYPE_PLAYREADY
-                       || drm_type == DRM_TYPE_PLAYREADY_ENVELOPE) {
+               || drm_type == DRM_TYPE_PLAYREADY_ENVELOPE) {
                vp_sdbg("contentType: video/vnd.ms-playready.media.pyv");
                return FALSE;
        } else if (drm_type == DRM_TYPE_OMA_V1 || drm_type == DRM_TYPE_OMA_V2) {
@@ -494,8 +494,8 @@ bool vp_drm_get_file_mime_type(const char *szMediaURL, char **szMime)
 
 bool
 vp_drm_get_store_item_license(char *pPath, char *pStoreAppId,
-                             char *pUserId, char *pImei, char *pOrderId,
-                             char *pMvId, char *pServerId)
+                              char *pUserId, char *pImei, char *pOrderId,
+                              char *pMvId, char *pServerId)
 {
        int nRet = -1;
 
@@ -545,24 +545,24 @@ vp_drm_get_store_item_license(char *pPath, char *pStoreAppId,
        initiator_info.init_type = DRM_INITIATOR_TYPE_LICENSE_ACQ;
        initiator_info.initiator_url_len = strlen(pPath);
        snprintf(initiator_info.initiator_url, DRM_MAX_LEN_INITIATOR_URL,
-                "%s", pPath);
+                "%s", pPath);
        snprintf(initiator_info.custom_data.app_id, DRM_MAX_LEN_APP_ID + 1,
-                "%s", pStoreAppId);
+                "%s", pStoreAppId);
        snprintf(initiator_info.custom_data.user_guid,
-                DRM_MAX_LEN_USER_GUID + 1, "%s", pUserId);
+                DRM_MAX_LEN_USER_GUID + 1, "%s", pUserId);
        snprintf(initiator_info.custom_data.device_id,
-                DRM_MAX_LEN_DEVICE_ID + 1, "%s", pImei);
+                DRM_MAX_LEN_DEVICE_ID + 1, "%s", pImei);
        snprintf(initiator_info.custom_data.order_id,
-                DRM_MAX_LEN_ORDER_ID + 1, "%s", pOrderId);
+                DRM_MAX_LEN_ORDER_ID + 1, "%s", pOrderId);
        snprintf(initiator_info.custom_data.mv_id, DRM_MAX_LEN_MV_ID + 1,
-                "%s", pMvId);
+                "%s", pMvId);
        snprintf(initiator_info.custom_data.svr_id, DRM_MAX_LEN_SVR_ID + 1,
-                "%s", pServerId);
+                "%s", pServerId);
 
        nRet =
-               drm_process_request(DRM_REQUEST_TYPE_SUBMIT_INITIATOR_URL,
-                                   (void *)(&initiator_info),
-                                   (void *)(&ws_resp_data));
+           drm_process_request(DRM_REQUEST_TYPE_SUBMIT_INITIATOR_URL,
+                               (void *)(&initiator_info),
+                               (void *)(&ws_resp_data));
 
        if (nRet == DRM_RETURN_SUCCESS) {
                vp_dbg("Server Error Code = %d", ws_resp_data.result_code);
index dcdbac9..f17ddd3 100644 (file)
 
 
 bool vp_feature_util_calc_aspect_size(int nSrcW, int nSrcH, int nDestW,
-                                     int nDestH, int nMinW, int nMinH,
-                                     int *nResultW, int *nResultH)
+                                      int nDestH, int nMinW, int nMinH,
+                                      int *nResultW, int *nResultH)
 {
        if (nSrcH == 0 || nSrcW == 0 || nDestW == 0 || nDestW == 0) {
                vp_dbgE("invalid param : (src %d x %d) , (dest %d x %d)", nSrcW,
-                       nSrcH, nDestW, nDestH);
+                       nSrcH, nDestW, nDestH);
                return FALSE;
        }
 
index ccab698..985f34b 100644 (file)
@@ -130,29 +130,29 @@ static void *_vp_thumb_gen_thread_loop(void *pUserData)
                        int nSaveWidth = pThumbGen->nDestWidth;
                        int nSaveHeight = pThumbGen->nDestHeight;
                        int nFileNameSize =
-                               strlen(pThumbGen->szSaveDir) +
-                               THUMB_GEN_FILE_NAME_PREFIX_LEN;
+                           strlen(pThumbGen->szSaveDir) +
+                           THUMB_GEN_FILE_NAME_PREFIX_LEN;
                        bool bResize = pThumbGen->bResize;
 
                        szURL = calloc(1, sizeof(char) * nFileNameSize);
 
                        if (szURL != NULL) {
                                snprintf(szURL, nFileNameSize,
-                                       THUMB_GEN_FILE_NAME_PREFIX,
-                                       pThumbGen->szSaveDir,
-                                       pThumbGen->nGenIdx + pThumbGen->nStartIdx);
+                                        THUMB_GEN_FILE_NAME_PREFIX,
+                                        pThumbGen->szSaveDir,
+                                        pThumbGen->nGenIdx + pThumbGen->nStartIdx);
                        }
 
                        nPosition =
-                               pThumbGen->nStartPosition +
-                               (pThumbGen->nGenIdx * pThumbGen->nInterval);
+                           pThumbGen->nStartPosition +
+                           (pThumbGen->nGenIdx * pThumbGen->nInterval);
 
                        nRet =
-                               metadata_extractor_get_frame_at_time(pThumbGen->meta_h,
-                                               nPosition,
-                                               pThumbGen->bAcuurate,
-                                               &pFrame,
-                                               &nFrameSize);
+                           metadata_extractor_get_frame_at_time(pThumbGen->meta_h,
+                                   nPosition,
+                                   pThumbGen->bAcuurate,
+                                   &pFrame,
+                                   &nFrameSize);
                        if (nRet != METADATA_EXTRACTOR_ERROR_NONE) {
                                vp_dbgE
                                ("metadata_extractor_get_frame_at_time is fail : [0x%x]",
@@ -171,9 +171,9 @@ static void *_vp_thumb_gen_thread_loop(void *pUserData)
                                        unsigned int nResizBufSize = 0;
 
                                        nRet = image_util_calculate_buffer_size(nSaveWidth,
-                                                                               nSaveHeight,
-                                                                               IMAGE_UTIL_COLORSPACE_RGB888,
-                                                                               &nResizBufSize);
+                                                                               nSaveHeight,
+                                                                               IMAGE_UTIL_COLORSPACE_RGB888,
+                                                                               &nResizBufSize);
                                        if (nRet != IMAGE_UTIL_ERROR_NONE) {
                                                vp_dbgE
                                                ("image_util_calculate_buffer_size is fail : [0x%x]",
@@ -183,18 +183,18 @@ static void *_vp_thumb_gen_thread_loop(void *pUserData)
                                        vp_dbgW("ResizeBuf Size : %d", nResizBufSize);
 
                                        pSaveBuf =
-                                               calloc(1, sizeof(unsigned char) * nResizBufSize);
+                                           calloc(1, sizeof(unsigned char) * nResizBufSize);
                                        if (pSaveBuf == NULL) {
                                                vp_dbgE("pSaveBuf alloc fail");
                                                bSuccess = FALSE;
                                        } else {
                                                nRet = vp_util_image_resize(pSaveBuf,
-                                                                           &nSaveWidth,
-                                                                           &nSaveHeight,
-                                                                           (unsigned char *)
-                                                                           pFrame, nSrcWidth,
-                                                                           nSrcHeight,
-                                                                           IMAGE_UTIL_COLORSPACE_RGB888);
+                                                                           &nSaveWidth,
+                                                                           &nSaveHeight,
+                                                                           (unsigned char *)
+                                                                           pFrame, nSrcWidth,
+                                                                           nSrcHeight,
+                                                                           IMAGE_UTIL_COLORSPACE_RGB888);
                                                if (nRet != IMAGE_UTIL_ERROR_NONE) {
                                                        vp_dbgE
                                                        ("vp_util_image_resize is fail : [0x%x]",
@@ -222,9 +222,9 @@ static void *_vp_thumb_gen_thread_loop(void *pUserData)
                                        int nSrcW = nSaveWidth;
                                        int nSrcH = nSaveHeight;
                                        nRet = image_util_calculate_buffer_size(nSaveWidth,
-                                                                               nSaveHeight,
-                                                                               IMAGE_UTIL_COLORSPACE_RGB888,
-                                                                               &nResizBufSize);
+                                                                               nSaveHeight,
+                                                                               IMAGE_UTIL_COLORSPACE_RGB888,
+                                                                               &nResizBufSize);
                                        if (nRet != IMAGE_UTIL_ERROR_NONE) {
                                                vp_dbgE
                                                ("image_util_calculate_buffer_size is fail : [0x%x]",
@@ -233,18 +233,18 @@ static void *_vp_thumb_gen_thread_loop(void *pUserData)
                                        }
 
                                        pRotBuf =
-                                               calloc(1, sizeof(unsigned char) * nResizBufSize);
+                                           calloc(1, sizeof(unsigned char) * nResizBufSize);
                                        if (pRotBuf == NULL) {
                                                vp_dbgE("pRotBuf alloc fail");
                                                bSuccess = FALSE;
                                        } else {
                                                vp_dbgW("ResizeBuf Size : %d", nResizBufSize);
                                                nRet = vp_util_image_rotate(pRotBuf,
-                                                                           &nSaveWidth,
-                                                                           &nSaveHeight,
-                                                                           nRot, pSaveBuf,
-                                                                           nSrcW, nSrcH,
-                                                                           IMAGE_UTIL_COLORSPACE_RGB888);
+                                                                           &nSaveWidth,
+                                                                           &nSaveHeight,
+                                                                           nRot, pSaveBuf,
+                                                                           nSrcW, nSrcH,
+                                                                           IMAGE_UTIL_COLORSPACE_RGB888);
                                                if (nRet != IMAGE_UTIL_ERROR_NONE) {
                                                        vp_dbgE
                                                        ("vp_util_image_rotate is fail : [0x%x]",
@@ -257,27 +257,27 @@ static void *_vp_thumb_gen_thread_loop(void *pUserData)
 
                        if (bSuccess) {
                                vp_sdbg("w:%d, h:%d, URL : %s", nSaveWidth, nSaveHeight,
-                                       szURL);
+                                       szURL);
                                if (pRotBuf) {
                                        nRet = image_util_encode_jpeg(pRotBuf,
-                                                                     nSaveWidth,
-                                                                     nSaveHeight,
-                                                                     IMAGE_UTIL_COLORSPACE_RGB888,
-                                                                     100, szURL);
+                                                                     nSaveWidth,
+                                                                     nSaveHeight,
+                                                                     IMAGE_UTIL_COLORSPACE_RGB888,
+                                                                     100, szURL);
                                        if (nRet != IMAGE_UTIL_ERROR_NONE) {
                                                vp_dbgE("image_util_encode_jpeg is fail : [0x%x]",
-                                                       nRet);
+                                                       nRet);
                                                bSuccess = FALSE;
                                        }
                                } else {
                                        nRet = image_util_encode_jpeg(pSaveBuf,
-                                                                     nSaveWidth,
-                                                                     nSaveHeight,
-                                                                     IMAGE_UTIL_COLORSPACE_RGB888,
-                                                                     100, szURL);
+                                                                     nSaveWidth,
+                                                                     nSaveHeight,
+                                                                     IMAGE_UTIL_COLORSPACE_RGB888,
+                                                                     100, szURL);
                                        if (nRet != IMAGE_UTIL_ERROR_NONE) {
                                                vp_dbgE("image_util_encode_jpeg is fail : [0x%x]",
-                                                       nRet);
+                                                       nRet);
                                                bSuccess = FALSE;
                                        }
                                }
@@ -293,8 +293,8 @@ static void *_vp_thumb_gen_thread_loop(void *pUserData)
                        if (pThumbGen->progress_cb) {
                                vp_dbgW(" ==> %p, %p", pThumbGen, pThumbGen->progress_cb);
                                pThumbGen->progress_cb(bSuccess, pThumbGen->nGenIdx,
-                                                      szURL, nPosition,
-                                                      pThumbGen->pUserData);
+                                                      szURL, nPosition,
+                                                      pThumbGen->pUserData);
                        }
 
                        pThumbGen->nGenIdx++;
@@ -398,8 +398,8 @@ vp_thumb_gen_h vp_thumb_gen_create(const char *szMediaURL)
        char *szVal = NULL;
 
        nRet =
-               metadata_extractor_get_metadata(pThumbGen->meta_h,
-                                               METADATA_DURATION, &szVal);
+           metadata_extractor_get_metadata(pThumbGen->meta_h,
+                                           METADATA_DURATION, &szVal);
        if (nRet != METADATA_EXTRACTOR_ERROR_NONE) {
                _vp_thumb_gen_destroy_handle(pThumbGen);
                vp_dbgE("metadata_extractor_get_metadata is fail : [0x%x]", nRet);
@@ -409,8 +409,8 @@ vp_thumb_gen_h vp_thumb_gen_create(const char *szMediaURL)
        VP_FREE(szVal);
 
        nRet =
-               metadata_extractor_get_metadata(pThumbGen->meta_h,
-                                               METADATA_ROTATE, &szVal);
+           metadata_extractor_get_metadata(pThumbGen->meta_h,
+                                           METADATA_ROTATE, &szVal);
        if (nRet != METADATA_EXTRACTOR_ERROR_NONE) {
                _vp_thumb_gen_destroy_handle(pThumbGen);
                vp_dbgE("metadata_extractor_get_metadata is fail : [0x%x]", nRet);
@@ -426,8 +426,8 @@ vp_thumb_gen_h vp_thumb_gen_create(const char *szMediaURL)
        }
 
        nRet =
-               metadata_extractor_get_metadata(pThumbGen->meta_h,
-                                               METADATA_VIDEO_WIDTH, &szVal);
+           metadata_extractor_get_metadata(pThumbGen->meta_h,
+                                           METADATA_VIDEO_WIDTH, &szVal);
        if (nRet != METADATA_EXTRACTOR_ERROR_NONE) {
                _vp_thumb_gen_destroy_handle(pThumbGen);
                vp_dbgE("metadata_extractor_get_metadata is fail : [0x%x]", nRet);
@@ -437,8 +437,8 @@ vp_thumb_gen_h vp_thumb_gen_create(const char *szMediaURL)
        VP_FREE(szVal);
 
        nRet =
-               metadata_extractor_get_metadata(pThumbGen->meta_h,
-                                               METADATA_VIDEO_HEIGHT, &szVal);
+           metadata_extractor_get_metadata(pThumbGen->meta_h,
+                                           METADATA_VIDEO_HEIGHT, &szVal);
        if (nRet != METADATA_EXTRACTOR_ERROR_NONE) {
                _vp_thumb_gen_destroy_handle(pThumbGen);
                vp_dbgE("metadata_extractor_get_metadata is fail : [0x%x]", nRet);
@@ -484,11 +484,11 @@ bool vp_thumb_gen_realize(vp_thumb_gen_h hThumbGen)
                int nResultW = 0;
                int nResultH = 0;
                if (!vp_feature_util_calc_aspect_size(pThumbGen->nSrcWidth,
-                                                     pThumbGen->nSrcHeight,
-                                                     pThumbGen->nDestWidth,
-                                                     pThumbGen->nDestHeight,
-                                                     0, 0,
-                                                     &nResultW, &nResultH)) {
+                                                     pThumbGen->nSrcHeight,
+                                                     pThumbGen->nDestWidth,
+                                                     pThumbGen->nDestHeight,
+                                                     0, 0,
+                                                     &nResultW, &nResultH)) {
                        vp_dbgE("vp_feature_util_calc_aspect_size is fail");
 
                } else {
@@ -505,8 +505,8 @@ bool vp_thumb_gen_realize(vp_thumb_gen_h hThumbGen)
        }
 #if 1
        if (pthread_create
-                       (&g_thread_id, NULL, _vp_thumb_gen_thread_loop,
-                        (void *) pThumbGen) != 0) {
+               (&g_thread_id, NULL, _vp_thumb_gen_thread_loop,
+                (void *) pThumbGen) != 0) {
                vp_dbgE("pthread_create fail");
                pThumbGen->bIsRealize = FALSE;
                return FALSE;
@@ -518,11 +518,11 @@ bool vp_thumb_gen_realize(vp_thumb_gen_h hThumbGen)
        status = pthread_attr_init(&thread_attr);
        if (0 == status) {
                status = pthread_attr_setdetachstate(&thread_attr,
-                                                    PTHREAD_CREATE_DETACHED);
+                                                    PTHREAD_CREATE_DETACHED);
                if (0 == status) {
                        if (pthread_create
-                                       (&g_thread_id, &thread_attr, _vp_thumb_gen_thread_loop,
-                                        (void *) pThumbGen) != 0) {
+                               (&g_thread_id, &thread_attr, _vp_thumb_gen_thread_loop,
+                                (void *) pThumbGen) != 0) {
                                vp_dbgE("pthread_create fail");
                                pThumbGen->bIsRealize = FALSE;
                                return FALSE;
@@ -589,7 +589,7 @@ bool vp_thumb_gen_is_realize(vp_thumb_gen_h hThumbGen, bool *bIsRealize)
 }
 
 bool vp_thumb_gen_set_dest_size(vp_thumb_gen_h hThumbGen, int nWidth,
-                               int nHeight)
+                                int nHeight)
 {
        if (hThumbGen == NULL) {
                vp_dbgE("hThumbGen is NULL");
@@ -604,7 +604,7 @@ bool vp_thumb_gen_set_dest_size(vp_thumb_gen_h hThumbGen, int nWidth,
        pThumbGen->nDestHeight = nHeight;
 
        if (nWidth != pThumbGen->nSrcWidth
-                       || nHeight != pThumbGen->nSrcHeight) {
+               || nHeight != pThumbGen->nSrcHeight) {
                pThumbGen->bResize = TRUE;
        }
 
@@ -614,7 +614,7 @@ bool vp_thumb_gen_set_dest_size(vp_thumb_gen_h hThumbGen, int nWidth,
 }
 
 bool vp_thumb_gen_set_save_directory(vp_thumb_gen_h hThumbGen,
-                                    char *szSaveDir)
+                                     char *szSaveDir)
 {
        if (hThumbGen == NULL) {
                vp_dbgE("hThumbGen is NULL");
@@ -639,7 +639,7 @@ bool vp_thumb_gen_set_save_directory(vp_thumb_gen_h hThumbGen,
 }
 
 bool vp_thumb_gen_set_start_position(vp_thumb_gen_h hThumbGen,
-                                    int nPosition)
+                                     int nPosition)
 {
        if (hThumbGen == NULL) {
                vp_dbgE("hThumbGen is NULL");
@@ -658,7 +658,7 @@ bool vp_thumb_gen_set_start_position(vp_thumb_gen_h hThumbGen,
 }
 
 bool vp_thumb_gen_set_end_position(vp_thumb_gen_h hThumbGen,
-                                  int nPosition)
+                                   int nPosition)
 {
        if (hThumbGen == NULL) {
                vp_dbgE("hThumbGen is NULL");
@@ -716,7 +716,7 @@ bool vp_thumb_gen_set_count(vp_thumb_gen_h hThumbGen, int nCount)
                pThumbGen->nEndPosition = pThumbGen->nDuration;
        }
        pThumbGen->nInterval =
-               (pThumbGen->nEndPosition - pThumbGen->nStartPosition) / nCount;
+           (pThumbGen->nEndPosition - pThumbGen->nStartPosition) / nCount;
 
        _vp_thumb_gen_unlock();
 
@@ -835,7 +835,7 @@ bool vp_thumb_gen_set_user_data(vp_thumb_gen_h hThumbGen, void *pUserData)
 }
 
 bool vp_thumb_gen_set_progress_cb(vp_thumb_gen_h hThumbGen,
-                                 vp_thumb_gen_progress_cb progress_cb)
+                                  vp_thumb_gen_progress_cb progress_cb)
 {
        if (hThumbGen == NULL) {
                vp_dbgE("hThumbGen is NULL");
@@ -854,7 +854,7 @@ bool vp_thumb_gen_set_progress_cb(vp_thumb_gen_h hThumbGen,
 }
 
 bool vp_thumb_gen_set_complete_cb(vp_thumb_gen_h hThumbGen,
-                                 vp_thumb_gen_complete_cb complete_cb)
+                                  vp_thumb_gen_complete_cb complete_cb)
 {
        if (hThumbGen == NULL) {
                vp_dbgE("hThumbGen is NULL");
@@ -873,7 +873,7 @@ bool vp_thumb_gen_set_complete_cb(vp_thumb_gen_h hThumbGen,
 }
 
 bool vp_thumb_gen_set_cancle_cb(vp_thumb_gen_h hThumbGen,
-                               vp_thumb_gen_cancle_cb cancle_cb)
+                                vp_thumb_gen_cancle_cb cancle_cb)
 {
        if (hThumbGen == NULL) {
                vp_dbgE("hThumbGen is NULL");
index 3ee80d5..4da4b47 100644 (file)
@@ -54,7 +54,7 @@ bool vp_play_config_get_multi_play_status(bool *bMultiPlay)
                return FALSE;
        }
 
-       *bMultiPlay = (nVal == 0)? FALSE:TRUE;
+       *bMultiPlay = (nVal == 0) ? FALSE : TRUE;
 
        return TRUE;
 }
@@ -93,8 +93,7 @@ bool vp_play_config_get_sort_type_key(int *nType)
 
 bool vp_play_config_set_preview_url_videos(const char *szMediaURL)
 {
-       if (!szMediaURL)
-       {
+       if (!szMediaURL) {
                VideoLogError("szMediaURL is null");
                return FALSE;
        }
@@ -102,8 +101,7 @@ bool vp_play_config_set_preview_url_videos(const char *szMediaURL)
        int             nErr            = 0;
        const char      *pStorePath = ".video-store";
 
-       if (strstr(szMediaURL, pStorePath) == NULL)
-       {
+       if (strstr(szMediaURL, pStorePath) == NULL) {
                nErr = preference_set_string(PREF_VP_VIDEO_PREVIEW_URL_VIDEOS, szMediaURL);
                if (nErr != 0) {
                        VideoLogError("failed to set preview url [0x%x]", nErr);
@@ -191,7 +189,7 @@ bool vp_play_config_get_call_state(bool *bCallOn)
 
        int tel_valid = telephony_init(&tel_list);
        if (tel_valid != 0) {
-               VideoLogError("telephony is not initialized. ERROR Code is %d",tel_valid);
+               VideoLogError("telephony is not initialized. ERROR Code is %d", tel_valid);
                return false;
        }
 
@@ -230,7 +228,7 @@ bool vp_play_config_get_battery_charge_state(bool *bChargeState)
                return FALSE;
        }
 
-       *bChargeState = (nVal == RUNTIME_INFO_KEY_CHARGER_CONNECTED)? TRUE:FALSE;
+       *bChargeState = (nVal == RUNTIME_INFO_KEY_CHARGER_CONNECTED) ? TRUE : FALSE;
        VideoLogInfo("bChargeState: %d", *bChargeState);
        return TRUE;
 }
@@ -248,10 +246,9 @@ bool vp_play_config_get_lcd_off_state(bool *bLCDOff)
        }
 
        if (nVal >= VCONFKEY_PM_STATE_LCDOFF) {
-                *bLCDOff = TRUE;
-       }
-       else {
-                *bLCDOff = FALSE;
+               *bLCDOff = TRUE;
+       } else {
+               *bLCDOff = FALSE;
        }
 
        return TRUE;
@@ -298,7 +295,7 @@ bool vp_play_wifi_initialize()
        int nErr = -1;
        nErr = wifi_initialize();
        if (nErr != WIFI_ERROR_NONE) {
-               VideoLogError("wifi_initialize is fail [0x%x]", nErr);
+               VideoLogError("wifi_initialize is fail [0x%x]", nErr);
                return FALSE;
        }
 
index 2241cfe..5c52396 100644 (file)
@@ -70,15 +70,15 @@ void vp_play_preference_init()
        bool exist;
 
        nErr =
-               preference_is_existing
-               (VP_PREFERENCE_KEY_GENERAL_BACKGROUND_PLAYING, &exist);
+           preference_is_existing
+           (VP_PREFERENCE_KEY_GENERAL_BACKGROUND_PLAYING, &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_int
-                               (VP_PREFERENCE_KEY_GENERAL_BACKGROUND_PLAYING, 0);
+                           preference_set_int
+                           (VP_PREFERENCE_KEY_GENERAL_BACKGROUND_PLAYING, 0);
                        if (nErr != 0) {
                                VideoLogError
                                ("VP_PREFERENCE_KEY_GENERAL_BACKGROUND_PLAYING is fail [%d]",
@@ -93,7 +93,7 @@ void vp_play_preference_init()
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_boolean(VP_PREFERENCE_KEY_SUBTILE_SHOW, 1);
+                           preference_set_boolean(VP_PREFERENCE_KEY_SUBTILE_SHOW, 1);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_SUBTILE_SHOW is fail [%d]",
@@ -136,8 +136,8 @@ void vp_play_preference_init()
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_string(VP_PREFERENCE_KEY_SUBTILE_FONT,
-                                                     "Tizen");
+                           preference_set_string(VP_PREFERENCE_KEY_SUBTILE_FONT,
+                                                 "Tizen");
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_SUBTILE_FONT is fail [%d]",
@@ -147,15 +147,15 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR,
-                                      &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR,
+                                  &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_int(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR,
-                                                  0);
+                           preference_set_int(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR,
+                                              0);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR is fail [%d]",
@@ -165,15 +165,15 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR_HEX,
-                                      &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR_HEX,
+                                  &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_string
-                               (VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR_HEX, "#ffffffff");
+                           preference_set_string
+                           (VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR_HEX, "#ffffffff");
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR_HEX is fail [%d]",
@@ -183,14 +183,14 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_SUBTILE_BG_COLOR,
-                                      &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_SUBTILE_BG_COLOR,
+                                  &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_int(VP_PREFERENCE_KEY_SUBTILE_BG_COLOR, 1);
+                           preference_set_int(VP_PREFERENCE_KEY_SUBTILE_BG_COLOR, 1);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_SUBTILE_BG_COLOR is fail [%d]",
@@ -200,15 +200,15 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_SUBTILE_BG_COLOR_HEX,
-                                      &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_SUBTILE_BG_COLOR_HEX,
+                                  &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_string
-                               (VP_PREFERENCE_KEY_SUBTILE_BG_COLOR_HEX, "#00000000");
+                           preference_set_string
+                           (VP_PREFERENCE_KEY_SUBTILE_BG_COLOR_HEX, "#00000000");
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_SUBTILE_BG_COLOR_HEX is fail [%d]",
@@ -218,16 +218,16 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing
-               (VP_PREFERENCE_KEY_SUBTILE_CAPTION_WIN_COLOR_HEX, &exist);
+           preference_is_existing
+           (VP_PREFERENCE_KEY_SUBTILE_CAPTION_WIN_COLOR_HEX, &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_string
-                               (VP_PREFERENCE_KEY_SUBTILE_CAPTION_WIN_COLOR_HEX,
-                                "#00000000");
+                           preference_set_string
+                           (VP_PREFERENCE_KEY_SUBTILE_CAPTION_WIN_COLOR_HEX,
+                            "#00000000");
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_SUBTILE_CAPTION_WIN_COLOR_HEX is fail [%d]",
@@ -237,15 +237,15 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_SUBTILE_ALIGNMENT,
-                                      &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_SUBTILE_ALIGNMENT,
+                                  &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_int(VP_PREFERENCE_KEY_SUBTILE_ALIGNMENT,
-                                                  1);
+                           preference_set_int(VP_PREFERENCE_KEY_SUBTILE_ALIGNMENT,
+                                              1);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_SUBTILE_ALIGNMENT is fail [%d]",
@@ -283,15 +283,15 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_PREVIEW_URL_VIDEOS,
-                                      &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_PREVIEW_URL_VIDEOS,
+                                  &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_string
-                               (VP_PREFERENCE_KEY_PREVIEW_URL_VIDEOS, "");
+                           preference_set_string
+                           (VP_PREFERENCE_KEY_PREVIEW_URL_VIDEOS, "");
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_PREVIEW_URL_VIDEOS is fail [%d]",
@@ -301,15 +301,15 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_PREVIEW_AUDIO_TRACK,
-                                      &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_PREVIEW_AUDIO_TRACK,
+                                  &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_int(VP_PREFERENCE_KEY_PREVIEW_AUDIO_TRACK,
-                                                  0);
+                           preference_set_int(VP_PREFERENCE_KEY_PREVIEW_AUDIO_TRACK,
+                                              0);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_PREVIEW_AUDIO_TRACK is fail [%d]",
@@ -324,7 +324,7 @@ void vp_play_preference_init()
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_boolean(VP_PREFERENCE_KEY_SENSOR_ASKED, 0);
+                           preference_set_boolean(VP_PREFERENCE_KEY_SENSOR_ASKED, 0);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_SENSOR_ASKED is fail [%d]",
@@ -334,14 +334,14 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_VIDEOS_SORT_TYPE,
-                                      &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_VIDEOS_SORT_TYPE,
+                                  &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_int(VP_PREFERENCE_KEY_VIDEOS_SORT_TYPE, 0);
+                           preference_set_int(VP_PREFERENCE_KEY_VIDEOS_SORT_TYPE, 0);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_VIDEOS_SORT_TYPE is fail [%d]",
@@ -351,14 +351,14 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_CAPTURE_MODE_ON, &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_CAPTURE_MODE_ON, &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_boolean(VP_PREFERENCE_KEY_CAPTURE_MODE_ON,
-                                                      0);
+                           preference_set_boolean(VP_PREFERENCE_KEY_CAPTURE_MODE_ON,
+                                                  0);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_CAPTURE_MODE_ON is fail [%d]",
@@ -373,7 +373,7 @@ void vp_play_preference_init()
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_boolean(VP_PREFERENCE_KEY_TAG_ACTIVE, 1);
+                           preference_set_boolean(VP_PREFERENCE_KEY_TAG_ACTIVE, 1);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_TAG_ACTIVE is fail [%d]",
@@ -388,7 +388,7 @@ void vp_play_preference_init()
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_boolean(VP_PREFERENCE_KEY_TAG_WEATHER, 1);
+                           preference_set_boolean(VP_PREFERENCE_KEY_TAG_WEATHER, 1);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_TAG_WEATHER is fail [%d]",
@@ -403,7 +403,7 @@ void vp_play_preference_init()
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_boolean(VP_PREFERENCE_KEY_TAG_LOCATION, 1);
+                           preference_set_boolean(VP_PREFERENCE_KEY_TAG_LOCATION, 1);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_TAG_LOCATION is fail [%d]",
@@ -413,14 +413,14 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_TAG_EDIT_WEATHER,
-                                      &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_TAG_EDIT_WEATHER,
+                                  &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_int(VP_PREFERENCE_KEY_TAG_EDIT_WEATHER, 0);
+                           preference_set_int(VP_PREFERENCE_KEY_TAG_EDIT_WEATHER, 0);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_TAG_EDIT_WEATHER is fail [%d]",
@@ -430,15 +430,15 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_ALLOW_DOCK_CONNECT,
-                                      &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_ALLOW_DOCK_CONNECT,
+                                  &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_boolean
-                               (VP_PREFERENCE_KEY_ALLOW_DOCK_CONNECT, 1);
+                           preference_set_boolean
+                           (VP_PREFERENCE_KEY_ALLOW_DOCK_CONNECT, 1);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_ALLOW_DOCK_CONNECT is fail [%d]",
@@ -453,7 +453,7 @@ void vp_play_preference_init()
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_boolean(VP_PREFERENCE_KEY_EXTERN_MODE, 0);
+                           preference_set_boolean(VP_PREFERENCE_KEY_EXTERN_MODE, 0);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_EXTERN_MODE is fail [%d]",
@@ -463,14 +463,14 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_MULTI_PLAY_FLAG, &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_MULTI_PLAY_FLAG, &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_boolean(VP_PREFERENCE_KEY_MULTI_PLAY_FLAG,
-                                                      0);
+                           preference_set_boolean(VP_PREFERENCE_KEY_MULTI_PLAY_FLAG,
+                                                  0);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_MULTI_PLAY_FLAG is fail [%d]",
@@ -480,15 +480,15 @@ void vp_play_preference_init()
        }
 
        nErr =
-               preference_is_existing(VP_PREFERENCE_KEY_SCREEN_MIRRORING_WARNING,
-                                      &exist);
+           preference_is_existing(VP_PREFERENCE_KEY_SCREEN_MIRRORING_WARNING,
+                                  &exist);
        if (nErr != 0) {
                VideoLogError("preference_is_existing is fail [%d]", nErr);
        } else {
                if (!exist) {
                        nErr =
-                               preference_set_boolean
-                               (VP_PREFERENCE_KEY_SCREEN_MIRRORING_WARNING, 1);
+                           preference_set_boolean
+                           (VP_PREFERENCE_KEY_SCREEN_MIRRORING_WARNING, 1);
                        if (nErr != 0) {
                                VideoLogError
                                ("SET VP_PREFERENCE_KEY_SCREEN_MIRRORING_WARNING is fail [%d]",
@@ -517,8 +517,8 @@ bool vp_play_preference_set_multi_play_status(bool bMultiPlay)
        int nErr = 0;
 
        nErr =
-               preference_set_boolean(VP_PREFERENCE_KEY_MULTI_PLAY_FLAG,
-                                      bMultiPlay);
+           preference_set_boolean(VP_PREFERENCE_KEY_MULTI_PLAY_FLAG,
+                                  bMultiPlay);
        if (nErr != 0) {
                VideoLogError
                ("SET VP_PREFERENCE_KEY_MULTI_PLAY_FLAG is fail [%d]", nErr);
@@ -534,7 +534,7 @@ bool vp_play_preference_get_multi_play_status(bool *bMultiPlay)
        bool nVal = 0;
 
        nErr =
-               preference_get_boolean(VP_PREFERENCE_KEY_MULTI_PLAY_FLAG, &nVal);
+           preference_get_boolean(VP_PREFERENCE_KEY_MULTI_PLAY_FLAG, &nVal);
        if (nErr != 0) {
                VideoLogError("GET preference_get_boolean is fail [%d]", nErr);
                return FALSE;
@@ -550,8 +550,8 @@ bool vp_play_preference_set_mirroring_warning_status(bool bMultiPlay)
        int nErr = 0;
 
        nErr =
-               preference_set_boolean(VP_PREFERENCE_KEY_SCREEN_MIRRORING_WARNING,
-                                      bMultiPlay);
+           preference_set_boolean(VP_PREFERENCE_KEY_SCREEN_MIRRORING_WARNING,
+                                  bMultiPlay);
        if (nErr != 0) {
                VideoLogError
                ("SET VP_PREFERENCE_KEY_SCREEN_MIRRORING_WARNING is fail [%d]",
@@ -568,8 +568,8 @@ bool vp_play_preference_get_mirroring_warning_status(bool *bWarning)
        bool nVal = 0;
 
        nErr =
-               preference_get_boolean(VP_PREFERENCE_KEY_SCREEN_MIRRORING_WARNING,
-                                      &nVal);
+           preference_get_boolean(VP_PREFERENCE_KEY_SCREEN_MIRRORING_WARNING,
+                                  &nVal);
        if (nErr != 0) {
                VideoLogError
                ("GET VP_PREFERENCE_KEY_SCREEN_MIRRORING_WARNING is fail [%d]",
@@ -590,7 +590,7 @@ bool vp_play_preference_get_subtitle_show_key(bool *bShow)
        nErr = preference_get_boolean(VP_PREFERENCE_KEY_SUBTILE_SHOW, &nVal);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_SHOW is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -606,7 +606,7 @@ bool vp_play_preference_set_subtitle_show_key(bool bShow)
        nErr = preference_set_boolean(VP_PREFERENCE_KEY_SUBTILE_SHOW, bShow);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_SHOW is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -618,10 +618,10 @@ bool vp_play_preference_set_subtitle_font_name_key(const char *szFontName)
        int nErr = 0;
 
        nErr =
-               preference_set_string(VP_PREFERENCE_KEY_SUBTILE_FONT, szFontName);
+           preference_set_string(VP_PREFERENCE_KEY_SUBTILE_FONT, szFontName);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_FONT is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -632,10 +632,10 @@ bool vp_play_preference_get_subtitle_font_name_key(char **szFontName)
 {
        int nErr = 0;
        nErr =
-               preference_get_string(VP_PREFERENCE_KEY_SUBTILE_FONT, szFontName);
+           preference_get_string(VP_PREFERENCE_KEY_SUBTILE_FONT, szFontName);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_FONT is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -650,7 +650,7 @@ bool vp_play_preference_get_subtitle_size_key(int *nSize)
        nErr = preference_get_int(VP_PREFERENCE_KEY_SUBTILE_SIZE, &nVal);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_SIZE is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -667,7 +667,7 @@ bool vp_play_preference_set_subtitle_size_key(int nSize)
        nErr = preference_set_int(VP_PREFERENCE_KEY_SUBTILE_SIZE, nSize);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_SIZE is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -683,7 +683,7 @@ bool vp_play_preference_get_subtitle_edge_key(int *nEdge)
        nErr = preference_get_int(VP_PREFERENCE_KEY_SUBTILE_EDGE, &nVal);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_EDGE is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -700,7 +700,7 @@ bool vp_play_preference_set_subtitle_edge_key(int nEdge)
        nErr = preference_set_int(VP_PREFERENCE_KEY_SUBTILE_EDGE, nEdge);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_EDGE is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -712,11 +712,11 @@ bool vp_play_preference_set_subtitle_alignment_key(int nAlignment)
        int nErr = 0;
 
        nErr =
-               preference_set_int(VP_PREFERENCE_KEY_SUBTILE_ALIGNMENT,
-                                  nAlignment);
+           preference_set_int(VP_PREFERENCE_KEY_SUBTILE_ALIGNMENT,
+                              nAlignment);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_SIZE is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -731,7 +731,7 @@ bool vp_play_preference_get_subtitle_alignment_key(int *nAlignment)
        nErr = preference_get_int(VP_PREFERENCE_KEY_SUBTILE_ALIGNMENT, &nVal);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_SIZE is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -746,10 +746,10 @@ bool vp_play_preference_set_subtitle_font_color_key(int nColor)
        int nErr = 0;
 
        nErr =
-               preference_set_int(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR, nColor);
+           preference_set_int(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR, nColor);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_SIZE is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -762,10 +762,10 @@ bool vp_play_preference_get_subtitle_font_color_key(int *nColor)
        int nVal = 0;
 
        nErr =
-               preference_get_int(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR, &nVal);
+           preference_get_int(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR, &nVal);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_SIZE is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -776,13 +776,13 @@ bool vp_play_preference_get_subtitle_font_color_key(int *nColor)
 }
 
 bool vp_play_preference_set_subtitle_font_color_hex_key(const char
-               *szColorHex)
+        *szColorHex)
 {
        int nErr = 0;
 
        nErr =
-               preference_set_string(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR_HEX,
-                                     szColorHex);
+           preference_set_string(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR_HEX,
+                                 szColorHex);
        if (nErr != 0) {
                VideoLogError
                ("VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR_HEX is fail [%d]",
@@ -797,8 +797,8 @@ bool vp_play_preference_get_subtitle_font_color_hex_key(char **szColorHex)
 {
        int nErr = 0;
        nErr =
-               preference_get_string(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR_HEX,
-                                     szColorHex);
+           preference_get_string(VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR_HEX,
+                                 szColorHex);
        if (nErr != 0) {
                VideoLogError
                ("VP_PREFERENCE_KEY_SUBTILE_FONT_COLOR_HEX is fail [%d]",
@@ -810,13 +810,13 @@ bool vp_play_preference_get_subtitle_font_color_hex_key(char **szColorHex)
 }
 
 bool vp_play_preference_set_subtitle_bg_color_hex_key(const char
-               *szColorHex)
+        *szColorHex)
 {
        int nErr = 0;
 
        nErr =
-               preference_set_string(VP_PREFERENCE_KEY_SUBTILE_BG_COLOR_HEX,
-                                     szColorHex);
+           preference_set_string(VP_PREFERENCE_KEY_SUBTILE_BG_COLOR_HEX,
+                                 szColorHex);
        if (nErr != 0) {
                VideoLogError
                ("VP_PREFERENCE_KEY_SUBTILE_BG_COLOR_HEX is fail [%d]", nErr);
@@ -830,8 +830,8 @@ bool vp_play_preference_get_subtitle_bg_color_hex_key(char **szColorHex)
 {
        int nErr = 0;
        nErr =
-               preference_get_string(VP_PREFERENCE_KEY_SUBTILE_BG_COLOR_HEX,
-                                     szColorHex);
+           preference_get_string(VP_PREFERENCE_KEY_SUBTILE_BG_COLOR_HEX,
+                                 szColorHex);
        if (nErr != 0) {
                VideoLogError
                ("VP_PREFERENCE_KEY_SUBTILE_BG_COLOR_HEX is fail [%d]", nErr);
@@ -842,13 +842,13 @@ bool vp_play_preference_get_subtitle_bg_color_hex_key(char **szColorHex)
 }
 
 bool vp_play_preference_set_subtitle_caption_win_color_hex_key(const char
-               *szColorHex)
+        *szColorHex)
 {
        int nErr = 0;
 
        nErr =
-               preference_set_string
-               (VP_PREFERENCE_KEY_SUBTILE_CAPTION_WIN_COLOR_HEX, szColorHex);
+           preference_set_string
+           (VP_PREFERENCE_KEY_SUBTILE_CAPTION_WIN_COLOR_HEX, szColorHex);
        if (nErr != 0) {
                VideoLogError
                ("VP_PREFERENCE_KEY_SUBTILE_CAPTION_WIN_COLOR_HEX is fail [%d]",
@@ -860,12 +860,12 @@ bool vp_play_preference_set_subtitle_caption_win_color_hex_key(const char
 }
 
 bool vp_play_preference_get_subtitle_caption_win_color_hex_key(char
-               **szColorHex)
+        **szColorHex)
 {
        int nErr = 0;
        nErr =
-               preference_get_string
-               (VP_PREFERENCE_KEY_SUBTILE_CAPTION_WIN_COLOR_HEX, szColorHex);
+           preference_get_string
+           (VP_PREFERENCE_KEY_SUBTILE_CAPTION_WIN_COLOR_HEX, szColorHex);
        if (nErr != 0) {
                VideoLogError
                ("VP_PREFERENCE_KEY_SUBTILE_CAPTION_WIN_COLOR_HEX is fail [%d]",
@@ -884,7 +884,7 @@ bool vp_play_preference_get_subtitle_bg_color_key(int *nColor)
        nErr = preference_get_int(VP_PREFERENCE_KEY_SUBTILE_BG_COLOR, &nVal);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_BG_COLOR is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -901,7 +901,7 @@ bool vp_play_preference_set_subtitle_bg_color_key(int nColor)
        nErr = preference_set_int(VP_PREFERENCE_KEY_SUBTILE_BG_COLOR, nColor);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SUBTILE_BG_COLOR is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -976,10 +976,10 @@ bool vp_play_preference_get_capture_on_key(bool *bEnable)
        bool nVal = 0;
 
        nErr =
-               preference_get_boolean(VP_PREFERENCE_KEY_CAPTURE_MODE_ON, &nVal);
+           preference_get_boolean(VP_PREFERENCE_KEY_CAPTURE_MODE_ON, &nVal);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_CAPTURE_MODE_ON is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -993,11 +993,11 @@ bool vp_play_preference_set_capture_on_key(bool bEnable)
        int nErr = 0;
 
        nErr =
-               preference_set_boolean(VP_PREFERENCE_KEY_CAPTURE_MODE_ON,
-                                      bEnable);
+           preference_set_boolean(VP_PREFERENCE_KEY_CAPTURE_MODE_ON,
+                                  bEnable);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_CAPTURE_MODE_ON is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -1072,7 +1072,7 @@ bool vp_play_preference_get_tag_location_key(bool *bEnable)
        nErr = preference_get_boolean(VP_PREFERENCE_KEY_TAG_LOCATION, &nVal);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_TAG_LOCATION is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -1086,10 +1086,10 @@ bool vp_play_preference_set_tag_location_key(bool bEnable)
        int nErr = 0;
 
        nErr =
-               preference_set_boolean(VP_PREFERENCE_KEY_TAG_LOCATION, bEnable);
+           preference_set_boolean(VP_PREFERENCE_KEY_TAG_LOCATION, bEnable);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_TAG_LOCATION is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -1105,7 +1105,7 @@ bool vp_play_preference_get_tag_edit_weather_key(int *nWeather)
        nErr = preference_get_int(VP_PREFERENCE_KEY_TAG_EDIT_WEATHER, &nVal);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_TAG_EDIT_WEATHER is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -1119,10 +1119,10 @@ bool vp_play_preference_set_tag_edit_weather_key(int nWeather)
        int nErr = 0;
 
        nErr =
-               preference_set_int(VP_PREFERENCE_KEY_TAG_EDIT_WEATHER, nWeather);
+           preference_set_int(VP_PREFERENCE_KEY_TAG_EDIT_WEATHER, nWeather);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_TAG_EDIT_WEATHER is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -1139,7 +1139,7 @@ bool vp_play_preference_get_sort_type_key(int *nType)
        nErr = preference_get_int(VP_PREFERENCE_KEY_VIDEOS_SORT_TYPE, &nVal);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_VIDEOS_SORT_TYPE is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -1160,8 +1160,8 @@ bool vp_play_preference_set_preview_url_videos(const char *szMediaURL)
 
        if (strstr(szMediaURL, pStorePath) == NULL) {
                nErr =
-                       preference_set_string(VP_PREFERENCE_KEY_PREVIEW_URL_VIDEOS,
-                                             szMediaURL);
+                   preference_set_string(VP_PREFERENCE_KEY_PREVIEW_URL_VIDEOS,
+                                         szMediaURL);
                if (nErr != 0) {
                        VideoLogError
                        ("VP_PREFERENCE_KEY_PREVIEW_URL_VIDEOS is fail [%d]",
@@ -1178,11 +1178,11 @@ bool vp_play_preference_get_preview_url_videos(char **szMediaURL)
        int nErr = 0;
 
        nErr =
-               preference_get_string(VP_PREFERENCE_KEY_PREVIEW_URL_VIDEOS,
-                                     szMediaURL);
+           preference_get_string(VP_PREFERENCE_KEY_PREVIEW_URL_VIDEOS,
+                                 szMediaURL);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_PREVIEW_URL_VIDEOS is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -1194,8 +1194,8 @@ bool vp_play_preference_set_preview_audio_track(int nAudioTrack)
        int nErr = 0;
 
        nErr =
-               preference_set_int(VP_PREFERENCE_KEY_PREVIEW_AUDIO_TRACK,
-                                  nAudioTrack);
+           preference_set_int(VP_PREFERENCE_KEY_PREVIEW_AUDIO_TRACK,
+                              nAudioTrack);
        if (nErr != 0) {
                VideoLogError
                ("VP_PREFERENCE_KEY_PREVIEW_AUDIO_TRACK is fail [%d]", nErr);
@@ -1211,7 +1211,7 @@ bool vp_play_preference_get_preview_audio_track(int *nAudioTrack)
        int nVal = 0;
 
        nErr =
-               preference_get_int(VP_PREFERENCE_KEY_PREVIEW_AUDIO_TRACK, &nVal);
+           preference_get_int(VP_PREFERENCE_KEY_PREVIEW_AUDIO_TRACK, &nVal);
        if (nErr != 0) {
                VideoLogError
                ("VP_PREFERENCE_KEY_PREVIEW_AUDIO_TRACK is fail [%d]", nErr);
@@ -1231,7 +1231,7 @@ bool vp_play_preference_get_sensor_asked_state(bool *bAsked)
        nErr = preference_get_boolean(VP_PREFERENCE_KEY_SENSOR_ASKED, &nVal);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SENSOR_ASKED is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -1247,7 +1247,7 @@ bool vp_play_preference_set_sensor_asked_state(bool bAsked)
        nErr = preference_set_boolean(VP_PREFERENCE_KEY_SENSOR_ASKED, bAsked);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_SENSOR_ASKED is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -1260,11 +1260,11 @@ bool vp_play_preference_get_allow_dock_connect_key(bool *bEnable)
        bool nVal = 0;
 
        nErr =
-               preference_get_boolean(VP_PREFERENCE_KEY_ALLOW_DOCK_CONNECT,
-                                      &nVal);
+           preference_get_boolean(VP_PREFERENCE_KEY_ALLOW_DOCK_CONNECT,
+                                  &nVal);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_ALLOW_DOCK_CONNECT is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
@@ -1278,11 +1278,11 @@ bool vp_play_preference_set_allow_dock_connect_key(bool bEnable)
        int nErr = 0;
 
        nErr =
-               preference_set_boolean(VP_PREFERENCE_KEY_ALLOW_DOCK_CONNECT,
-                                      bEnable);
+           preference_set_boolean(VP_PREFERENCE_KEY_ALLOW_DOCK_CONNECT,
+                                  bEnable);
        if (nErr != 0) {
                VideoLogError("VP_PREFERENCE_KEY_ALLOW_DOCK_CONNECT is fail [%d]",
-                             nErr);
+                             nErr);
                return FALSE;
        }
 
index 26bbd4f..6a66c6e 100644 (file)
@@ -47,9 +47,9 @@
 
 /* callback functions */
 static void __vp_play_ug_reply_cb(app_control_h pRequest,
-                                 app_control_h pReply,
-                                 app_control_result_e nResult,
-                                 void *pUserData)
+                                  app_control_h pReply,
+                                  app_control_result_e nResult,
+                                  void *pUserData)
 {
        if (pRequest) {
                char *appId;
@@ -68,7 +68,7 @@ static void __vp_play_ug_reply_cb(app_control_h pRequest,
 }
 
 bool vp_play_app_launch_videos(Evas_Object *pWin, bool bRaise,
-                              void *pUserData)
+                               void *pUserData)
 {
        app_control_h pService = NULL;
 
@@ -80,27 +80,27 @@ bool vp_play_app_launch_videos(Evas_Object *pWin, bool bRaise,
        }
 
        nRet =
-               app_control_set_operation(pService, APP_CONTROL_OPERATION_VIEW);
+           app_control_set_operation(pService, APP_CONTROL_OPERATION_VIEW);
        if (nRet != APP_CONTROL_ERROR_NONE) {
                VideoLogError("app_control_set_operation is fail [0x%x]", nRet);
                goto Execption;
        }
        if (bRaise) {
                nRet =
-                       app_control_add_extra_data(pService, VP_VIDEOS_ONLY_RAISE,
-                                                  VP_VIDEOS_VALUE_TRUE);
+                   app_control_add_extra_data(pService, VP_VIDEOS_ONLY_RAISE,
+                                              VP_VIDEOS_VALUE_TRUE);
                if (nRet != APP_CONTROL_ERROR_NONE) {
                        VideoLogError("app_control_add_extra_data is fail [0x%x]",
-                                     nRet);
+                                     nRet);
                        goto Execption;
                }
        } else {
                nRet =
-                       app_control_add_extra_data(pService, VP_VIDEOS_ONLY_RAISE,
-                                                  VP_VIDEOS_VALUE_FALSE);
+                   app_control_add_extra_data(pService, VP_VIDEOS_ONLY_RAISE,
+                                              VP_VIDEOS_VALUE_FALSE);
                if (nRet != APP_CONTROL_ERROR_NONE) {
                        VideoLogError("app_control_add_extra_data is fail [0x%x]",
-                                     nRet);
+                                     nRet);
                        goto Execption;
                }
        }
@@ -112,11 +112,11 @@ bool vp_play_app_launch_videos(Evas_Object *pWin, bool bRaise,
        }
 
        nRet =
-               app_control_send_launch_request(pService, __vp_play_ug_reply_cb,
-                                               pUserData);
+           app_control_send_launch_request(pService, __vp_play_ug_reply_cb,
+                                           pUserData);
        if (nRet != APP_CONTROL_ERROR_NONE) {
                VideoLogError("app_control_send_launch_request is fail [0x%x]",
-                             nRet);
+                             nRet);
                goto Execption;
        }
 
@@ -134,8 +134,8 @@ Execption:
 }
 
 bool vp_play_app_launch_share_panel(Evas_Object *pWin,
-                                   const char *szMediaURL,
-                                   void *pUserData)
+                                    const char *szMediaURL,
+                                    void *pUserData)
 {
        if (szMediaURL == NULL) {
                VideoLogError("szMediaURL is NULL");
@@ -177,11 +177,11 @@ bool vp_play_app_launch_share_panel(Evas_Object *pWin,
        }
 
        nRet =
-               app_control_send_launch_request(pService, __vp_play_ug_reply_cb,
-                                               pUserData);
+           app_control_send_launch_request(pService, __vp_play_ug_reply_cb,
+                                           pUserData);
        if (nRet != APP_CONTROL_ERROR_NONE) {
                VideoLogError("app_control_send_launch_request is fail [0x%x]",
-                             nRet);
+                             nRet);
                goto Execption;
        }
        VP_FREE(szFileName);
index 16b0bf6..a294b1a 100644 (file)
@@ -71,9 +71,9 @@ enum VP_FILE_SIZE_TYPE {
 };
 
 static char *_vp_play_util_convert_string(const char *szLocale,
-               const char *szCustomSkeleton,
-               const char *szTimezone,
-               UDate st_Date)
+        const char *szCustomSkeleton,
+        const char *szTimezone,
+        UDate st_Date)
 {
 #define UG_ICU_ARR_LENGTH                      256
 
@@ -84,7 +84,7 @@ static char *_vp_play_util_convert_string(const char *szLocale,
        i18n_uchar ucustomSkeleton[UG_ICU_ARR_LENGTH] = { 0, };
 
        if (i18n_ustring_copy_ua_n
-                       (ucustomSkeleton, szCustomSkeleton, UG_ICU_ARR_LENGTH) == NULL) {
+               (ucustomSkeleton, szCustomSkeleton, UG_ICU_ARR_LENGTH) == NULL) {
                VideoLogInfo("i18n_ustring_copy_au_n() error.");
                return NULL;
        }
@@ -92,7 +92,7 @@ static char *_vp_play_util_convert_string(const char *szLocale,
        i18n_uchar utimezone[UG_ICU_ARR_LENGTH] = { 0, };
 
        if (i18n_ustring_copy_ua_n(utimezone, szTimezone, UG_ICU_ARR_LENGTH)
-                       == NULL) {
+               == NULL) {
                VideoLogInfo("i18n_ustring_copy_au_n() error.");
                return NULL;
        }
@@ -124,27 +124,27 @@ static char *_vp_play_util_convert_string(const char *szLocale,
        }
 
        status =
-               i18n_udatepg_get_best_pattern(generator, ucustomSkeleton,
-                                             i18n_ustring_get_length
-                                             (ucustomSkeleton), bestPattern,
-                                             UG_ICU_ARR_LENGTH,
-                                             &bestPatternLength);
+           i18n_udatepg_get_best_pattern(generator, ucustomSkeleton,
+                                         i18n_ustring_get_length
+                                         (ucustomSkeleton), bestPattern,
+                                         UG_ICU_ARR_LENGTH,
+                                         &bestPatternLength);
        if (bestPatternLength <= 0 || status != I18N_ERROR_NONE) {
                i18n_udatepg_destroy(generator);
                return NULL;
        }
 
        status =
-               i18n_udate_create(I18N_UDATE_MEDIUM, I18N_UDATE_MEDIUM, szLocale,
-                                 NULL, -1, bestPattern, -1, &formatter);
+           i18n_udate_create(I18N_UDATE_MEDIUM, I18N_UDATE_MEDIUM, szLocale,
+                             NULL, -1, bestPattern, -1, &formatter);
        if (formatter == NULL || status != I18N_ERROR_NONE) {
                i18n_udatepg_destroy(generator);
                return NULL;
        }
 
        status =
-               i18n_udate_format_date(formatter, st_Date, formatted,
-                                      UG_ICU_ARR_LENGTH, NULL, &formattedLength);
+           i18n_udate_format_date(formatter, st_Date, formatted,
+                                  UG_ICU_ARR_LENGTH, NULL, &formattedLength);
        if (formattedLength <= 0 || status != I18N_ERROR_NONE) {
                VideoLogInfo("i18n_udate_format_date() is failed.");
                i18n_udate_destroy(formatter);
@@ -287,7 +287,7 @@ bool vp_play_util_get_landscape_check(int nRotateVal)
        nRotate = (video_play_rotate_t) nRotateVal;
 
        if (nRotate == VIDEO_PLAY_ROTATE_90 ||
-                       nRotate == VIDEO_PLAY_ROTATE_270) {
+               nRotate == VIDEO_PLAY_ROTATE_270) {
                return TRUE;
        }
        return FALSE;
@@ -307,9 +307,9 @@ int vp_play_util_get_root_window_angle(Evas_Object *pWin)
        Ecore_X_Window xwin = elm_win_xwindow_get(pWin);
        Ecore_X_Window root = ecore_x_window_root_get(xwin);
        nRet = ecore_x_window_prop_property_get(root,
-                                               ECORE_X_ATOM_E_ILLUME_ROTATE_ROOT_ANGLE,
-                                               ECORE_X_ATOM_CARDINAL, 32,
-                                               &pProp_data, &nCount);
+                                               ECORE_X_ATOM_E_ILLUME_ROTATE_ROOT_ANGLE,
+                                               ECORE_X_ATOM_CARDINAL, 32,
+                                               &pProp_data, &nCount);
 
        if (nRet && pProp_data) {
                memcpy(&nAngle, pProp_data, sizeof(int));
@@ -393,7 +393,7 @@ bool vp_play_util_local_file_check(char *szMediaURL)
 }
 
 bool vp_play_util_get_subtitle_path(const char *szMediaURL,
-                                   char **szSubtitle)
+                                    char **szSubtitle)
 {
        if (!szMediaURL) {
                VideoLogError("szMediaURL is NULL");
@@ -435,11 +435,11 @@ bool vp_play_util_get_subtitle_path(const char *szMediaURL,
                memset(szCheckFilePath, 0, nOutputLen);
                strncpy(szCheckFilePath, szMediaURL, nStrLength);
                strncat(szCheckFilePath, szExtWildkey[nCount],
-                               strlen(szExtWildkey[nCount]));
+                       strlen(szExtWildkey[nCount]));
 
                if (!stat(szCheckFilePath, &buf)) {
                        VideoLogWarning("Success finding subtitle file. - %d, %s",
-                                       nCount, szCheckFilePath);
+                                       nCount, szCheckFilePath);
                        VP_STRDUP(*szSubtitle, szCheckFilePath);
                        break;
                }
@@ -470,7 +470,7 @@ bool vp_play_util_status_noti_show(const char *szStr)
        int nRet = notification_status_message_post(szStr);
        if (nRet != 0) {
                VideoLogError("notification_status_message_post() : [0x%x]",
-                             nRet);
+                             nRet);
                return FALSE;
        }
 
@@ -486,10 +486,10 @@ char *vp_play_util_remove_prefix_to_url(char *szURL)
 
        if (strstr(szURL, VP_PLAY_FILE_PREFIX)) {
                char *szTemp =
-                       calloc(1, strlen(szURL) - strlen(VP_PLAY_FILE_PREFIX) + 1);
+                   calloc(1, strlen(szURL) - strlen(VP_PLAY_FILE_PREFIX) + 1);
                if (szTemp) {
                        snprintf(szTemp, strlen(szURL) - strlen(VP_PLAY_FILE_PREFIX) + 1,
-                                "%s", szURL + strlen(VP_PLAY_FILE_PREFIX));
+                                "%s", szURL + strlen(VP_PLAY_FILE_PREFIX));
                }
                return szTemp;
        }
@@ -525,8 +525,7 @@ char *vp_play_util_get_sdp_url(const char *szUri)
 
        for (uri_idx = 0; splited_str[uri_idx]; uri_idx++) {
                VideoLogInfo("szUrl = %s", splited_str[uri_idx]);
-               if (eina_str_has_prefix(splited_str[uri_idx], "http"))  // http(or https)
-               {
+               if (eina_str_has_prefix(splited_str[uri_idx], "http")) {        // http(or https)
                        parsed_url = g_strdup(splited_str[uri_idx]);
                        VideoLogInfo("parsed_url = %s", parsed_url);
                        break;
@@ -569,8 +568,8 @@ void vp_play_util_get_convert_time(double dtime, char **szFileDate)
 
        char *szLocale = NULL;  // eg en_US.UTF-8
        int retcode =
-               system_settings_get_value_string
-               (SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY, &szLocale);
+           system_settings_get_value_string
+           (SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY, &szLocale);
        if ((retcode != SYSTEM_SETTINGS_ERROR_NONE) || (szLocale == NULL)) {
                VideoLogInfo("Cannot get region format.");
                VP_STRDUP(szLocale, "en_US");   //// Default value.
@@ -586,16 +585,16 @@ void vp_play_util_get_convert_time(double dtime, char **szFileDate)
 
        char *szTimezone = NULL;
        retcode =
-               system_settings_get_value_string
-               (SYSTEM_SETTINGS_KEY_LOCALE_TIMEZONE, &szTimezone);
+           system_settings_get_value_string
+           (SYSTEM_SETTINGS_KEY_LOCALE_TIMEZONE, &szTimezone);
        if ((retcode != SYSTEM_SETTINGS_ERROR_NONE) || (szTimezone == NULL)) {
                VideoLogWarning("Cannot get time zone.");
                VP_STRDUP(szTimezone, VP_PLAY_STRING_COM_UNKNOWN);
        }
 
        *szFileDate =
-               _vp_play_util_convert_string(szLocale, szSkeleton, szTimezone,
-                                            (UDate) dtime * 1000);
+           _vp_play_util_convert_string(szLocale, szSkeleton, szTimezone,
+                                        (UDate) dtime * 1000);
        if (*szFileDate == NULL) {
                VideoLogWarning("Cannot get time string.");
                VP_STRDUP(*szFileDate, VP_PLAY_STRING_COM_UNKNOWN);
@@ -605,7 +604,7 @@ void vp_play_util_get_convert_time(double dtime, char **szFileDate)
 }
 
 bool vp_play_util_get_file_info(const char *szMediaURL, char **szFileSize,
-                               char **szFileDate, char **szFileExtention)
+                                char **szFileDate, char **szFileExtention)
 {
        if (!szMediaURL) {
                VideoLogError("szMediaURL is NULL.");
@@ -661,7 +660,7 @@ bool vp_play_util_get_file_info(const char *szMediaURL, char **szFileSize,
        int nErr = 0;
        if (vp_drm_get_file_mime_type(szMediaURL, &szMime)) {
                nErr =
-                       mime_type_get_file_extension(szMime, &dTempExt, &nArrayLen);
+                   mime_type_get_file_extension(szMime, &dTempExt, &nArrayLen);
 
                VP_FREE(szMime);
 
@@ -672,7 +671,7 @@ bool vp_play_util_get_file_info(const char *szMediaURL, char **szFileSize,
 
                        if (szExt == NULL) {
                                *szFileExtention =
-                                       g_strdup_printf(VP_PLAY_STRING_COM_UNKNOWN);
+                                   g_strdup_printf(VP_PLAY_STRING_COM_UNKNOWN);
                        } else {
                                VP_STRDUP(*szFileExtention, (szExt + 1));
                        }
@@ -685,7 +684,7 @@ bool vp_play_util_get_file_info(const char *szMediaURL, char **szFileSize,
                        }
                } else {
                        *szFileExtention =
-                               g_strdup_printf(VP_PLAY_STRING_COM_UNKNOWN);
+                           g_strdup_printf(VP_PLAY_STRING_COM_UNKNOWN);
                }
                VP_FREE(dTempExt);
        } else
@@ -695,7 +694,7 @@ bool vp_play_util_get_file_info(const char *szMediaURL, char **szFileSize,
                szExt = strrchr(szMediaURL, EXT_SPLITTER);
                if (szExt == NULL) {
                        *szFileExtention =
-                               g_strdup_printf(VP_PLAY_STRING_COM_UNKNOWN);
+                           g_strdup_printf(VP_PLAY_STRING_COM_UNKNOWN);
                } else {
                        VP_STRDUP(*szFileExtention, (szExt + 1));
                }
@@ -747,8 +746,8 @@ bool vp_play_util_rtsp_url_check(const char *szURL)
        while (rtsp_protocal_name[i] != NULL) {
                if (strlen(szURL) > strlen(rtsp_protocal_name[i])) {
                        if (strncmp
-                                       (szURL, rtsp_protocal_name[i],
-                                        strlen(rtsp_protocal_name[i])) == 0) {
+                               (szURL, rtsp_protocal_name[i],
+                                strlen(rtsp_protocal_name[i])) == 0) {
                                return true;
                        }
                }
@@ -761,9 +760,9 @@ bool vp_play_util_rtsp_url_check(const char *szURL)
 
 
 bool vp_play_util_calculator_position(Evas_Coord_Rectangle rtSrc,
-                                     Evas_Coord_Rectangle rtDst,
-                                     Evas_Coord_Rectangle *rtResult,
-                                     int nType)
+                                      Evas_Coord_Rectangle rtDst,
+                                      Evas_Coord_Rectangle *rtResult,
+                                      int nType)
 {
        video_play_display_mode_t nMode = (video_play_display_mode_t) nType;
 
@@ -796,7 +795,7 @@ bool vp_play_util_calculator_position(Evas_Coord_Rectangle rtSrc,
                rtResult->y = (rtDst.h - rtResult->h) / 2;
 
        } else if ((nMode == VIDEO_DISPLAY_FULL)
-                       || (nMode == VIDEO_DISPLAY_CROPPED_FULL)) {
+                  || (nMode == VIDEO_DISPLAY_CROPPED_FULL)) {
                rtResult->w = rtDst.w;
                rtResult->h = rtDst.h;
                rtResult->x = 0;
@@ -808,7 +807,7 @@ bool vp_play_util_calculator_position(Evas_Coord_Rectangle rtSrc,
 }
 
 bool vp_play_util_save_file(const char *szFileName, char *szBuffer,
-                           int nSize)
+                            int nSize)
 {
        if (!szFileName) {
                VideoLogError("szFileName is NULL");
@@ -827,7 +826,7 @@ bool vp_play_util_save_file(const char *szFileName, char *szBuffer,
        }
 
        if (!g_file_set_contents
-                       (szFileName, (const char *) szBuffer, nSize, NULL)) {
+               (szFileName, (const char *) szBuffer, nSize, NULL)) {
                VideoLogError("g_file_set_contents is fail");
                return FALSE;
        }
@@ -855,7 +854,7 @@ bool vp_play_util_get_network_status(void)
 
                if (err != CONNECTION_ERROR_NONE) {
                        VideoLogWarning("connection_get_type error. err is [%d]",
-                                       err);
+                                       err);
                        bSuccessful = false;
                }
 
@@ -875,10 +874,10 @@ bool vp_play_util_check_personal_status(const char *szPreviewUrl)
        Eina_Bool bRet = EINA_FALSE;
        if (szPreviewUrl) {
                bRet =
-                       eina_str_has_prefix(szPreviewUrl, VP_PLAY_PERSONAL_HEAD_STR);
+                   eina_str_has_prefix(szPreviewUrl, VP_PLAY_PERSONAL_HEAD_STR);
        }
        VideoSecureLogInfo("eina_str_has_prefix=%s:%d", szPreviewUrl,
-                          (int) bRet);
+                          (int) bRet);
        return (bool) bRet;
 }
 
@@ -940,7 +939,7 @@ bool vp_play_util_is_exist_subtitle_from_path(const char *szPath)
 }
 
 bool vp_play_util_get_subtitles_from_path(const char *szPath,
-               GList **pSubtitleList)
+        GList **pSubtitleList)
 {
        if (szPath == NULL) {
                VideoLogError("szPath is NULL");
@@ -981,9 +980,9 @@ bool vp_play_util_get_subtitles_from_path(const char *szPath,
                                if (strcmp(szExt, szExtWildkey[nIdx]) == 0) {
                                        char *szSubtitleName = NULL;
                                        szSubtitleName =
-                                               g_strdup_printf("%s/%s", szPath, szFileName);
+                                           g_strdup_printf("%s/%s", szPath, szFileName);
                                        *pSubtitleList =
-                                               g_list_append(*pSubtitleList, szSubtitleName);
+                                           g_list_append(*pSubtitleList, szSubtitleName);
                                }
                        }
                        VP_FREE(szName);
@@ -1107,7 +1106,7 @@ bool vp_play_util_check_valid_file_name(const char *szFileName)
 }
 
 unsigned long long vp_play_util_get_disk_available_space(const char
-               *szFilePath)
+        *szFilePath)
 {
        if (szFilePath == NULL) {
                VideoLogError("szFilePath is NULL");
@@ -1116,8 +1115,8 @@ unsigned long long vp_play_util_get_disk_available_space(const char
        int nRet = 0;
        struct statvfs info;
        if (szFilePath
-                       && 0 == strncmp(szFilePath, VP_ROOT_PATH_MMC,
-                                       strlen(VP_ROOT_PATH_MMC))) {
+               && 0 == strncmp(szFilePath, VP_ROOT_PATH_MMC,
+                               strlen(VP_ROOT_PATH_MMC))) {
                if (-1 == statvfs(VP_ROOT_PATH_MMC, &info)) {
                        return 0;
                }
@@ -1183,9 +1182,9 @@ bool vp_play_util_is_Xwindow_focused(Ecore_X_Window nXwinID)
 
        nXWindowFocus = ecore_x_window_focus_get();
 
-       if (nXWindowFocus == nXwinID)
+       if (nXWindowFocus == nXwinID) {
                return TRUE;
-       else
+       else
 #endif
                return FALSE;
 }
@@ -1195,15 +1194,15 @@ char *vp_play_util_convert_rgba_to_hex(int r, int g, int b, int a)
        char *pColorHex;
 
        pColorHex =
-               g_strdup_printf("#%08lx",
-                               (long unsigned int)(r << 24 | g << 16 | b << 8 |
-                                               a));
+           g_strdup_printf("#%08lx",
+                           (long unsigned int)(r << 24 | g << 16 | b << 8 |
+                                               a));
 
        return pColorHex;
 }
 
 bool vp_play_util_convert_hex_to_rgba(char *pColorHex, int *r, int *g,
-                                     int *b, int *a)
+                                      int *b, int *a)
 {
        if (pColorHex == NULL) {
                return FALSE;
@@ -1235,8 +1234,8 @@ bool vp_play_util_convert_hex_to_rgba(char *pColorHex, int *r, int *g,
 void vp_play_util_set_object_size(Evas_Object *obj, int w, int h, int id)
 {
        Edje_Message_Int_Set *msg =
-               (Edje_Message_Int_Set *) malloc(sizeof(Edje_Message_Int_Set) +
-                                               3 * sizeof(int));
+           (Edje_Message_Int_Set *) malloc(sizeof(Edje_Message_Int_Set) +
+                                           3 * sizeof(int));
        if (!msg) {
                return;
        }
@@ -1248,11 +1247,11 @@ void vp_play_util_set_object_size(Evas_Object *obj, int w, int h, int id)
 }
 
 void vp_play_util_set_object_color(Evas_Object *obj, int r, int g, int b,
-                                  int a, int id)
+                                   int a, int id)
 {
        Edje_Message_Int_Set *msg =
-               (Edje_Message_Int_Set *) malloc(sizeof(Edje_Message_Int_Set) +
-                                               4 * sizeof(int));
+           (Edje_Message_Int_Set *) malloc(sizeof(Edje_Message_Int_Set) +
+                                           4 * sizeof(int));
        if (!msg) {
                return;
        }
@@ -1267,11 +1266,11 @@ void vp_play_util_set_object_color(Evas_Object *obj, int r, int g, int b,
 }
 
 void vp_play_util_set_object_offset(Evas_Object *obj, int left, int top,
-                                   int id)
+                                    int id)
 {
        Edje_Message_Int_Set *msg =
-               (Edje_Message_Int_Set *) malloc(sizeof(Edje_Message_Int_Set) +
-                                               2 * sizeof(float));
+           (Edje_Message_Int_Set *) malloc(sizeof(Edje_Message_Int_Set) +
+                                           2 * sizeof(float));
        if (!msg) {
                return;
        }
@@ -1326,8 +1325,8 @@ static int __vp_play_util_append_variant(DBusMessageIter *iter, const char *sig,
 
 #define DBUS_REPLY_TIMEOUT (120 * 1000)
 DBusMessage * vp_play_util_invoke_dbus_method(const char *dest, const char *path,
-                                                                                         const char *interface, const char *method,
-                                                                                         const char *sig, const char *param[])
+        const char *interface, const char *method,
+        const char *sig, const char *param[])
 {
        VideoLogInfo("");
 
@@ -1340,7 +1339,7 @@ DBusMessage * vp_play_util_invoke_dbus_method(const char *dest, const char *path
 
        conn = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
        if (!conn) {
-               VideoLogError( "dbus_bus_get error");
+               VideoLogError("dbus_bus_get error");
                return NULL;
        }
 
@@ -1386,7 +1385,7 @@ vp_play_util_set_lock_power_key()
        DBusMessage *msg;
 
        msg = vp_play_util_invoke_dbus_method("org.tizen.system.deviced", "/Org/Tizen/System/DeviceD/Display",
-                                                                                 "org.tizen.system.deviced.display", "lockstate", "sssi", arr);
+                                             "org.tizen.system.deviced.display", "lockstate", "sssi", arr);
 
        if (!msg) {
                VideoLogError("vp_play_util_invoke_dbus_method failed");
@@ -1402,7 +1401,7 @@ vp_play_util_set_unlock_power_key()
        DBusMessage *msg;
 
        msg = vp_play_util_invoke_dbus_method("org.tizen.system.deviced", "/Org/Tizen/System/DeviceD/Display",
-                                                                                 "org.tizen.system.deviced.display", "unlockstate", "ss", arr);
+                                             "org.tizen.system.deviced.display", "unlockstate", "ss", arr);
 
        if (!msg) {
                VideoLogError("vp_play_util_invoke_dbus_method failed");
@@ -1421,10 +1420,11 @@ vp_play_util_set_unlock_power_key()
 }
 #endif
 void vp_play_util_focus_next_object_set(Evas_Object *obj,
-                                       Evas_Object *next,
-                                       Elm_Focus_Direction dir)
+                                        Evas_Object *next,
+                                        Elm_Focus_Direction dir)
 {
-       if (obj)
+       if (obj) {
                elm_object_focus_next_object_set(obj, next, dir);
+       }
 
 }
index b9b7a3f..6902a8b 100644 (file)
@@ -29,8 +29,8 @@
 
 /* internal functions */
 void _vp_avrcp_connection_state_changed_cb(bool connected,
-               const char *remote_address,
-               void *user_data)
+        const char *remote_address,
+        void *user_data)
 {
        VideoLogInfo("");
 }
@@ -47,8 +47,8 @@ bool vp_avrcp_initialize()
        }
 
        nRet =
-               bt_avrcp_target_initialize(_vp_avrcp_connection_state_changed_cb,
-                                          NULL);
+           bt_avrcp_target_initialize(_vp_avrcp_connection_state_changed_cb,
+                                      NULL);
        if (nRet != BT_ERROR_NONE) {
                VideoLogError("bt_avrcp_target_initialize fail. nRet[%d]", nRet);
                bt_deinitialize();
@@ -69,7 +69,7 @@ bool vp_avrcp_deinitialize()
        nRet = bt_avrcp_target_deinitialize();
        if (nRet != BT_ERROR_NONE) {
                VideoLogError("bt_avrcp_target_deinitialize fail. nRet[%d]",
-                             nRet);
+                             nRet);
                return FALSE;
        }
 
@@ -86,8 +86,8 @@ bool vp_avrcp_deinitialize()
 }
 
 bool vp_avrcp_noti_track(const char *title, const char *artist,
-                        const char *album, const char *genre,
-                        unsigned int duration)
+                         const char *album, const char *genre,
+                         unsigned int duration)
 {
        VideoLogInfo("vp_avrcp_noti_track start");
 
@@ -96,11 +96,11 @@ bool vp_avrcp_noti_track(const char *title, const char *artist,
        VideoLogWarning("set avrcp noti tack. duration[%d]", duration);
 
        nRet =
-               bt_avrcp_target_notify_track(title, artist, album, genre, 1, 1,
-                                            duration);
+           bt_avrcp_target_notify_track(title, artist, album, genre, 1, 1,
+                                        duration);
        if (nRet != BT_ERROR_NONE) {
                VideoLogError("bt_avrcp_target_notify_track fail. nRet[%d]",
-                             nRet);
+                             nRet);
                return FALSE;
        }
 
@@ -115,11 +115,11 @@ bool vp_avrcp_noti_track_position(unsigned int position)
 
        int nRet = BT_ERROR_NONE;
        VideoLogWarning("set avrcp noti track position. duration[%d]",
-                       position);
+                       position);
        nRet = bt_avrcp_target_notify_position(position);
        if (nRet != BT_ERROR_NONE) {
                VideoLogError("bt_avrcp_target_notify_position fail. nRet[%d]",
-                             nRet);
+                             nRet);
                return FALSE;
        }
 
@@ -132,7 +132,7 @@ bool vp_avrcp_noti_player_state(vp_mm_player_state_t nState)
 {
        VideoLogInfo("vp_avrcp_noti_player_state start");
        if (nState == VP_MM_PLAYER_STATE_NONE
-                       || nState == VP_MM_PLAYER_STATE_IDLE) {
+               || nState == VP_MM_PLAYER_STATE_IDLE) {
                VideoLogWarning
                ("player state : [%d]. don't need to send player state",
                 nState);
@@ -155,7 +155,7 @@ bool vp_avrcp_noti_player_state(vp_mm_player_state_t nState)
                break;
        }
        VideoLogWarning("set avrcp noti player state. player_state[%d]",
-                       player_state);
+                       player_state);
 
        int nRet = BT_ERROR_NONE;
        nRet = bt_avrcp_target_notify_player_state(player_state);
index 02a395d..949ed34 100644 (file)
@@ -74,19 +74,19 @@ static void _vp_language_get_list(xmlNodePtr cur)
        for (cur_node = cur; cur_node; cur_node = cur_node->next) {
                if (cur_node->type == XML_ELEMENT_NODE) {
                        pId =
-                               (char *) g_strdup((char *)
-                                                 xmlGetProp(cur_node,
-                                                            (const xmlChar *) "id"));
+                           (char *)g_strdup((char *)
+                                             xmlGetProp(cur_node,
+                                                        (const xmlChar *) "id"));
                        pName =
-                               (char *) g_strdup((char *)
-                                                 xmlGetProp(cur_node,
-                                                            (const xmlChar *) "string"));
+                           (char *)g_strdup((char *)
+                                             xmlGetProp(cur_node,
+                                                        (const xmlChar *) "string"));
                        pMcc =
-                               (char *) g_strdup((char *)
-                                                 xmlGetProp(cur_node,
-                                                            (const xmlChar *) "mcc"));
+                           (char *)g_strdup((char *)
+                                             xmlGetProp(cur_node,
+                                                        (const xmlChar *) "mcc"));
                        stLanguage *szNode =
-                               (stLanguage *) calloc(1, sizeof(stLanguage));
+                           (stLanguage *)calloc(1, sizeof(stLanguage));
                        if (szNode) {
                                szNode->szLanguageCode = pId;
                                szNode->szLanguageName = pName;
index 4623015..fdda7c2 100644 (file)
@@ -65,7 +65,7 @@ bool vp_device_set_brightness(int nVal)
        nRet = device_display_set_brightness(0, nVal);  // 0 is main display, brightness
        if (nRet != 0) {
                VideoLogError("device_display_set_brightness set fail : %d",
-                             nRet);
+                             nRet);
                return FALSE;
        }
 
@@ -79,7 +79,7 @@ bool vp_device_get_brightness(int *nCurVal)
        nRet = device_display_get_brightness(0, &nVal);
        if (nVal < 0 || nRet != DEVICE_ERROR_NONE) {
                VideoLogError("device_display_get_brightness set fail : %d",
-                             nVal);
+                             nVal);
                return FALSE;
        }
 
@@ -96,7 +96,7 @@ bool vp_device_get_max_brightness(int *nMaxVal)
        nRet = device_display_get_max_brightness(0, &nVal);
        if (nVal < 0 || nRet != DEVICE_ERROR_NONE) {
                VideoLogError("device_display_get_max_brightness get fail : %d",
-                             nVal);
+                             nVal);
                return FALSE;
        }
 
@@ -118,13 +118,13 @@ bool vp_device_set_screen_off(bool bLock)
 {
        if (bLock) {
                if (device_power_request_lock(POWER_LOCK_CPU, 0) !=
-                               DEVICE_ERROR_NONE) {
+                       DEVICE_ERROR_NONE) {
                        VideoLogError("lock failed");
                        return FALSE;
                }
        } else {
                if (device_power_release_lock(POWER_LOCK_CPU) !=
-                               DEVICE_ERROR_NONE) {
+                       DEVICE_ERROR_NONE) {
                        VideoLogError("unlock failed");
                        return FALSE;
                }
index 2c2765d..dc3a949 100644 (file)
@@ -32,7 +32,7 @@ typedef struct _HollIC_handle {
 } HollIC_handle;
 
 hollic_handle vp_hollic_create_handle(HollICEventCbFunc pEventCb,
-                                     void *pUserData)
+                                      void *pUserData)
 {
        return NULL;
 }
index cbb24af..6736c46 100644 (file)
@@ -29,9 +29,9 @@
 #include "vp-util.h"
 
 bool vp_image_util_image_resize_save(const char *szFilePath,
-                                    const unsigned char *pSrcBuf,
-                                    int nSrcW, int nSrcH, int nDestW,
-                                    int nDestH, int nQuality)
+                                     const unsigned char *pSrcBuf,
+                                     int nSrcW, int nSrcH, int nDestW,
+                                     int nDestH, int nQuality)
 {
        if (szFilePath == NULL) {
                VideoLogError("szFilePath is NULL");
@@ -50,9 +50,9 @@ bool vp_image_util_image_resize_save(const char *szFilePath,
        int nResizeH = nDestH + (nDestH) % 2;
 
        nRet =
-               image_util_calculate_buffer_size(nResizeW, nResizeH,
-                               IMAGE_UTIL_COLORSPACE_RGB888,
-                               &nResizBufSize);
+           image_util_calculate_buffer_size(nResizeW, nResizeH,
+                                            IMAGE_UTIL_COLORSPACE_RGB888,
+                                            &nResizBufSize);
        if (nRet != IMAGE_UTIL_ERROR_NONE) {
                VideoLogWarning
                ("image_util_calculate_buffer_size is fail : [0x%x]", nRet);
@@ -65,8 +65,8 @@ bool vp_image_util_image_resize_save(const char *szFilePath,
        }
 
        nRet =
-               vp_util_image_resize(pSaveBuf, &nResizeW, &nResizeH, pSrcBuf,
-                                    nSrcW, nSrcH, IMAGE_UTIL_COLORSPACE_RGB888);
+           vp_util_image_resize(pSaveBuf, &nResizeW, &nResizeH, pSrcBuf,
+                                nSrcW, nSrcH, IMAGE_UTIL_COLORSPACE_RGB888);
        if (nRet != IMAGE_UTIL_ERROR_NONE) {
                VideoLogWarning("vp_util_image_resize is fail : [0x%x]", nRet);
                VP_FREE(pSaveBuf);
@@ -74,9 +74,9 @@ bool vp_image_util_image_resize_save(const char *szFilePath,
        }
 
        nRet =
-               image_util_encode_jpeg(pSaveBuf, nResizeW, nResizeH,
-                                      IMAGE_UTIL_COLORSPACE_RGB888, nQuality,
-                                      szFilePath);
+           image_util_encode_jpeg(pSaveBuf, nResizeW, nResizeH,
+                                  IMAGE_UTIL_COLORSPACE_RGB888, nQuality,
+                                  szFilePath);
        if (nRet != IMAGE_UTIL_ERROR_NONE) {
                VideoLogWarning("image_util_encode_jpeg is fail : [0x%x]", nRet);
                VP_FREE(pSaveBuf);
@@ -90,8 +90,8 @@ bool vp_image_util_image_resize_save(const char *szFilePath,
 
 
 bool vp_image_util_image_save(const char *szFilePath,
-                             const unsigned char *pSrcBuf, int nSrcW,
-                             int nSrcH, int nQuality)
+                              const unsigned char *pSrcBuf, int nSrcW,
+                              int nSrcH, int nQuality)
 {
        if (szFilePath == NULL) {
                VideoLogError("szFilePath is NULL");
@@ -106,9 +106,9 @@ bool vp_image_util_image_save(const char *szFilePath,
        int nRet = IMAGE_UTIL_ERROR_NONE;
 
        nRet =
-               image_util_encode_jpeg(pSrcBuf, nSrcW, nSrcH,
-                                      IMAGE_UTIL_COLORSPACE_RGB888, nQuality,
-                                      szFilePath);
+           image_util_encode_jpeg(pSrcBuf, nSrcW, nSrcH,
+                                  IMAGE_UTIL_COLORSPACE_RGB888, nQuality,
+                                  szFilePath);
        if (nRet != IMAGE_UTIL_ERROR_NONE) {
                VideoLogWarning("image_util_encode_jpeg is fail : [0x%x]", nRet);
                return FALSE;
index 7e07ecd..66bd027 100644 (file)
@@ -37,7 +37,7 @@ static MediaUpdateCb g_media_update_cb = NULL;
 
 /* callback functions */
 static bool __vp_media_contents_info_cb(media_info_h pMediaHandle,
-                                       void *pUserData)
+                                        void *pUserData)
 {
        media_info_h *pAssignItem = (media_info_h *) pUserData;
 
@@ -54,7 +54,7 @@ static bool __vp_media_contents_info_cb(media_info_h pMediaHandle,
                nRet = media_info_get_display_name(*pAssignItem, &szTmpStr);
                if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                        VideoLogError("media_info_get_display_name is fail : 0x%x",
-                                     nRet);
+                                     nRet);
                        return FALSE;
                }
 
@@ -69,8 +69,8 @@ static bool __vp_media_contents_info_cb(media_info_h pMediaHandle,
 }
 
 static bool __vp_media_contents_bookmark_iter_cb(media_bookmark_h
-               pBookmark,
-               void *pUserData)
+                                        pBookmark,
+                                        void *pUserData)
 {
        if (pBookmark == NULL) {
                VideoLogError("pBookmark is NULL");
@@ -100,7 +100,7 @@ static bool __vp_media_contents_bookmark_iter_cb(media_bookmark_h
 
 
 static bool __vp_media_contents_video_iter_cb(media_info_h pMediaInfo,
-               void *pUserData)
+                                               void *pUserData)
 {
        if (pMediaInfo == NULL) {
                VideoLogError("pMediaInfo is NULL");
@@ -141,16 +141,16 @@ static int __vp_media_contents_get_pid(void)
 }
 
 static void __vp_media_contents_db_update_cb(media_content_error_e nError,
-               int nPid,
-               media_content_db_update_item_type_e
-               nUpdateItem,
-               media_content_db_update_type_e
-               nUpdateType,
-               media_content_type_e
-               nMediaType, char *szUuid,
-               char *szPath,
-               char *szMimeType,
-               void *pUserData)
+                       int nPid,
+                       media_content_db_update_item_type_e
+                       nUpdateItem,
+                       media_content_db_update_type_e
+                       nUpdateType,
+                       media_content_type_e
+                       nMediaType, char *szUuid,
+                       char *szPath,
+                       char *szMimeType,
+                       void *pUserData)
 {
        if (g_media_update_cb == NULL) {
                VideoLogError("g_media_update_cb is NULL.");
@@ -171,7 +171,7 @@ static void __vp_media_contents_db_update_cb(media_content_error_e nError,
 }
 
 static bool __vp_media_contents_folder_iter_cb(media_folder_h pFolderItem,
-               void *pUserData)
+                       void *pUserData)
 {
        if (pFolderItem == NULL) {
                VideoLogError("pFolderItem is NULL");
@@ -198,7 +198,7 @@ static bool __vp_media_contents_folder_iter_cb(media_folder_h pFolderItem,
 }
 
 static bool __vp_media_contents_subtitles_iter_cb(media_info_h pMediaInfo,
-               void *pUserData)
+                       void *pUserData)
 {
        if (pMediaInfo == NULL) {
                VideoLogError("pMediaInfo is NULL");
@@ -271,7 +271,7 @@ bool vp_media_contents_disconnect()
 
 
 bool vp_media_contents_get_video_id(const char *szFilePath,
-                                   char **szVideoID)
+                                    char **szVideoID)
 {
        if (szVideoID == NULL) {
                VideoLogError("szVideoID is NULL");
@@ -296,8 +296,8 @@ bool vp_media_contents_get_video_id(const char *szFilePath,
 
        char szTmpStr[4096] = {0,};
        snprintf(szTmpStr, 4096,
-                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
-                szFilePath);
+                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
+                szFilePath);
 
        nRet = media_filter_create(&pFilterHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
@@ -311,17 +311,17 @@ bool vp_media_contents_get_video_id(const char *szFilePath,
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x", nRet);
                goto Exception;
@@ -373,7 +373,7 @@ Exception:
 }
 
 bool vp_media_contents_get_video_thumbnail_path(const char *szFilePath,
-               char **szThumbnailPath)
+        char **szThumbnailPath)
 {
        if (szFilePath == NULL) {
                VideoLogError("szFilePath is NULL");
@@ -390,8 +390,8 @@ bool vp_media_contents_get_video_thumbnail_path(const char *szFilePath,
 
        char szTmpStr[4096] = {0,};
        snprintf(szTmpStr, 4096,
-                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
-                szFilePath);
+                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
+                szFilePath);
 
        nRet = media_filter_create(&pFilterHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
@@ -405,17 +405,17 @@ bool vp_media_contents_get_video_thumbnail_path(const char *szFilePath,
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x", nRet);
                goto Exception;
@@ -429,7 +429,7 @@ bool vp_media_contents_get_video_thumbnail_path(const char *szFilePath,
        nRet = media_info_get_thumbnail_path(pMediaHandle, &szThumbnail);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_get_thumbnail_path is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -514,7 +514,7 @@ bool vp_media_contents_refresh_db(const char *szMediaID)
        nRet = media_info_refresh_metadata_to_db(szMediaID);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_refresh_metadata_to_db fail : %d",
-                             nRet);
+                             nRet);
                return FALSE;
        }
        return TRUE;
@@ -537,8 +537,8 @@ bool vp_media_contents_set_played_time(const char *szFilePath)
 
        char szTmpStr[4096] = { 0, };
        snprintf(szTmpStr, 4096,
-                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
-                szFilePath);
+                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
+                szFilePath);
 
        nRet = media_filter_create(&pFilterHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
@@ -552,17 +552,17 @@ bool vp_media_contents_set_played_time(const char *szFilePath)
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x", nRet);
                goto Exception;
@@ -639,7 +639,7 @@ Exception:
 }
 
 bool vp_media_contents_set_played_position(const char *szFilePath,
-               int nPosition)
+        int nPosition)
 {
        if (szFilePath == NULL) {
                VideoLogError("szFilePath is NULL");
@@ -656,8 +656,8 @@ bool vp_media_contents_set_played_position(const char *szFilePath,
 
        char szTmpStr[4096] = { 0, };
        snprintf(szTmpStr, 4096,
-                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
-                szFilePath);
+                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
+                szFilePath);
 
        nRet = media_filter_create(&pFilterHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
@@ -671,17 +671,17 @@ bool vp_media_contents_set_played_position(const char *szFilePath,
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x", nRet);
                goto Exception;
@@ -706,7 +706,7 @@ bool vp_media_contents_set_played_position(const char *szFilePath,
        nRet = video_meta_set_played_position(pVideoHandle, nPosition);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError(" video_meta_set_played_position is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -756,7 +756,7 @@ Exception:
 }
 
 bool vp_media_contents_get_played_position(const char *szFilePath,
-               int *nPosition)
+        int *nPosition)
 {
        if (szFilePath == NULL) {
                VideoLogError("szFilePath is NULL");
@@ -773,8 +773,8 @@ bool vp_media_contents_get_played_position(const char *szFilePath,
 
        char szTmpStr[4096] = { 0, };
        snprintf(szTmpStr, 4096,
-                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
-                szFilePath);
+                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
+                szFilePath);
 
        nRet = media_filter_create(&pFilterHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
@@ -788,17 +788,17 @@ bool vp_media_contents_get_played_position(const char *szFilePath,
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x", nRet);
                goto Exception;
@@ -823,7 +823,7 @@ bool vp_media_contents_get_played_position(const char *szFilePath,
        nRet = video_meta_get_played_position(pVideoHandle, nPosition);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("video_meta_get_played_position is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -869,7 +869,7 @@ Exception:
 }
 
 int vp_media_contents_get_modified_time(media_info_h pMediaHandle,
-                                       char **szLastModified)
+                                        char **szLastModified)
 {
        if (!pMediaHandle) {
                VideoLogInfo("pMediaHandle is NULL.");
@@ -888,24 +888,24 @@ int vp_media_contents_get_modified_time(media_info_h pMediaHandle,
        nRet = media_info_get_modified_time(pVideoItem, &pModifiedTime);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_get_modified_time failed : [%d]!!!",
-                             nRet);
+                             nRet);
                return nRet;
        }
 
        gmtime_r(&pModifiedTime, &sModifiedTime);
        strftime(szModifiedTime, BYTE_SIZE - 1, "%d %b. %Y. %H:%M",
-                        &sModifiedTime);
+                &sModifiedTime);
        *szLastModified = g_strdup(szModifiedTime);
 
        return nRet;
 }
 
 bool vp_media_contents_get_content_info(const char *szFilePath,
-                                       char **szTitle, int *nWidth,
-                                       int *nHeight, int *nDuration,
-                                       double *dLatitude,
-                                       double *dLongitude,
-                                       char **szTmpLastModified)
+                                        char **szTitle, int *nWidth,
+                                        int *nHeight, int *nDuration,
+                                        double *dLatitude,
+                                        double *dLongitude,
+                                        char **szTmpLastModified)
 {
        if (szFilePath == NULL) {
                VideoLogError("szFilePath is NULL");
@@ -922,8 +922,8 @@ bool vp_media_contents_get_content_info(const char *szFilePath,
 
        char szTmpStr[4096] = {0,};
        snprintf(szTmpStr, 4096,
-                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
-                szFilePath);
+                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
+                szFilePath);
 
        nRet = media_filter_create(&pFilterHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
@@ -937,17 +937,17 @@ bool vp_media_contents_get_content_info(const char *szFilePath,
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x", nRet);
                goto Exception;
@@ -970,11 +970,11 @@ bool vp_media_contents_get_content_info(const char *szFilePath,
        }
 
        nRet =
-               vp_media_contents_get_modified_time(pMediaHandle,
-                               szTmpLastModified);
+           vp_media_contents_get_modified_time(pMediaHandle,
+                                               szTmpLastModified);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_get_modified_time is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -1053,7 +1053,7 @@ Exception:
 }
 
 bool vp_media_metadata_get_gps_info(const char *szFilePath,
-                                   double *dLatitude, double *dLongitude)
+                                    double *dLatitude, double *dLongitude)
 {
        if (szFilePath == NULL) {
                VideoLogError("szFilePath is NULL");
@@ -1078,11 +1078,11 @@ bool vp_media_metadata_get_gps_info(const char *szFilePath,
        }
 
        nRet =
-               metadata_extractor_get_metadata(pMetadata, METADATA_LATITUDE,
-                                               &szVal);
+           metadata_extractor_get_metadata(pMetadata, METADATA_LATITUDE,
+                                           &szVal);
        if (nRet != METADATA_EXTRACTOR_ERROR_NONE) {
                VideoLogError("metadata_extractor_get_metadata is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -1094,11 +1094,11 @@ bool vp_media_metadata_get_gps_info(const char *szFilePath,
        VP_FREE(szVal);
 
        nRet =
-               metadata_extractor_get_metadata(pMetadata, METADATA_LONGITUDE,
-                                               &szVal);
+           metadata_extractor_get_metadata(pMetadata, METADATA_LONGITUDE,
+                                           &szVal);
        if (nRet != METADATA_EXTRACTOR_ERROR_NONE) {
                VideoLogError("metadata_extractor_get_metadata is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -1129,7 +1129,7 @@ Exception:
 }
 
 bool vp_media_metadata_get_duration(const char *szFilePath,
-                                   int *nDuration)
+                                    int *nDuration)
 {
        if (szFilePath == NULL) {
                VideoLogError("szFilePath is NULL");
@@ -1154,11 +1154,11 @@ bool vp_media_metadata_get_duration(const char *szFilePath,
        }
 
        nRet =
-               metadata_extractor_get_metadata(pMetadata, METADATA_DURATION,
-                                               &szVal);
+           metadata_extractor_get_metadata(pMetadata, METADATA_DURATION,
+                                           &szVal);
        if (nRet != METADATA_EXTRACTOR_ERROR_NONE) {
                VideoLogError("metadata_extractor_get_metadata is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -1214,11 +1214,11 @@ bool vp_media_metadata_get_width(const char *szFilePath, int *nWidth)
        }
 
        nRet =
-               metadata_extractor_get_metadata(pMetadata, METADATA_VIDEO_WIDTH,
-                                               &szVal);
+           metadata_extractor_get_metadata(pMetadata, METADATA_VIDEO_WIDTH,
+                                           &szVal);
        if (nRet != METADATA_EXTRACTOR_ERROR_NONE) {
                VideoLogError("metadata_extractor_get_metadata is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -1274,11 +1274,11 @@ bool vp_media_metadata_get_height(const char *szFilePath, int *nHeight)
        }
 
        nRet =
-               metadata_extractor_get_metadata(pMetadata, METADATA_VIDEO_HEIGHT,
-                                               &szVal);
+           metadata_extractor_get_metadata(pMetadata, METADATA_VIDEO_HEIGHT,
+                                           &szVal);
        if (nRet != METADATA_EXTRACTOR_ERROR_NONE) {
                VideoLogError("metadata_extractor_get_metadata is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -1311,7 +1311,7 @@ Exception:
 
 
 bool vp_media_contents_bookmark_list_get(const char *szMediaID,
-               GList **list)
+        GList **list)
 {
        if (!szMediaID) {
                VideoLogError("No exist szMediaID.");
@@ -1340,18 +1340,18 @@ bool vp_media_contents_bookmark_list_get(const char *szMediaID,
        }
 
        nRet =
-               media_filter_set_order(pFilterHandle, MEDIA_CONTENT_ORDER_ASC,
-                                      BOOKMARK_MARKED_TIME,
-                                      MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_order(pFilterHandle, MEDIA_CONTENT_ORDER_ASC,
+                                  BOOKMARK_MARKED_TIME,
+                                  MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_order is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_bookmark_from_db(szMediaID, pFilterHandle,
-                               __vp_media_contents_bookmark_iter_cb,
-                               list);
+           media_info_foreach_bookmark_from_db(szMediaID, pFilterHandle,
+                                               __vp_media_contents_bookmark_iter_cb,
+                                               list);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError
                ("media_info_foreach_bookmark_from_db is fail : 0x%x", nRet);
@@ -1407,8 +1407,8 @@ bool vp_media_contents_bookmark_list_clear(GList *pList)
 }
 
 bool vp_media_contents_bookmark_insert(const char *szMediaID,
-                                      int nPosition,
-                                      const char *szFilePath)
+                                       int nPosition,
+                                       const char *szFilePath)
 {
 
        if (szMediaID == NULL) {
@@ -1446,7 +1446,7 @@ bool vp_media_contents_bookmark_insert(const char *szMediaID,
 
 
 bool vp_media_contents_bookmark_delete(const char *szMediaID,
-                                      int nPosition)
+                                       int nPosition)
 {
        if (szMediaID == NULL) {
                VideoLogError("szMediaID is NULL");
@@ -1477,8 +1477,8 @@ bool vp_media_contents_bookmark_delete(const char *szMediaID,
                if (pBookmarkItem) {
                        time_t nMarkedTime;
                        nRet =
-                               media_bookmark_get_marked_time(pBookmarkItem,
-                                                              &nMarkedTime);
+                           media_bookmark_get_marked_time(pBookmarkItem,
+                                                          &nMarkedTime);
                        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                                VideoLogWarning
                                ("media_bookmark_get_marked_time is fail : 0x%x",
@@ -1488,8 +1488,8 @@ bool vp_media_contents_bookmark_delete(const char *szMediaID,
 
                        if (nPosition == nMarkedTime) {
                                nRet =
-                                       media_bookmark_get_bookmark_id(pBookmarkItem,
-                                                                      &nDeleteBookmarkID);
+                                   media_bookmark_get_bookmark_id(pBookmarkItem,
+                                                                  &nDeleteBookmarkID);
                                if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                                        VideoLogWarning
                                        ("media_bookmark_get_bookmark_id is fail : 0x%x",
@@ -1498,8 +1498,8 @@ bool vp_media_contents_bookmark_delete(const char *szMediaID,
                                }
 
                                nRet =
-                                       media_bookmark_get_thumbnail_path(pBookmarkItem,
-                                                       &szDeletePath);
+                                   media_bookmark_get_thumbnail_path(pBookmarkItem,
+                                                                     &szDeletePath);
                                if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                                        VideoLogWarning
                                        ("media_bookmark_get_thumbnail_path is fail : 0x%x",
@@ -1516,7 +1516,7 @@ bool vp_media_contents_bookmark_delete(const char *szMediaID,
 
        if (nDeleteBookmarkID == -1 || szDeletePath == NULL) {
                VideoLogError("Not match item : %d , %s", nDeleteBookmarkID,
-                             szDeletePath);
+                             szDeletePath);
                VP_FREE(szDeletePath);
                return FALSE;
        }
@@ -1524,7 +1524,7 @@ bool vp_media_contents_bookmark_delete(const char *szMediaID,
        nRet = media_bookmark_delete_from_db(nDeleteBookmarkID);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_bookmark_delete_from_db is fail : 0x%x",
-                             nRet);
+                             nRet);
                VP_FREE(szDeletePath);
                return FALSE;
        }
@@ -1571,8 +1571,8 @@ bool vp_media_contents_bookmark_delete_all(const char *szMediaID)
                pBookmarkItem = (media_bookmark_h) g_list_nth_data(list, idx);
                if (pBookmarkItem) {
                        nRet =
-                               media_bookmark_get_bookmark_id(pBookmarkItem,
-                                                              &nDeleteBookmarkID);
+                           media_bookmark_get_bookmark_id(pBookmarkItem,
+                                                          &nDeleteBookmarkID);
                        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                                VideoLogWarning
                                ("media_bookmark_get_bookmark_id is fail : 0x%x",
@@ -1580,8 +1580,8 @@ bool vp_media_contents_bookmark_delete_all(const char *szMediaID)
                        }
 
                        nRet =
-                               media_bookmark_get_thumbnail_path(pBookmarkItem,
-                                               &szDeletePath);
+                           media_bookmark_get_thumbnail_path(pBookmarkItem,
+                                                             &szDeletePath);
                        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                                VideoLogWarning
                                ("media_bookmark_get_thumbnail_path is fail : 0x%x",
@@ -1616,8 +1616,8 @@ bool vp_media_contents_bookmark_delete_all(const char *szMediaID)
 
 
 bool vp_media_contents_bookmark_get_item_info(void *pItem,
-               char **szFilePath,
-               int *nPosition)
+        char **szFilePath,
+        int *nPosition)
 {
        if (pItem == NULL) {
                VideoLogError("szMediaID is NULL");
@@ -1628,17 +1628,17 @@ bool vp_media_contents_bookmark_get_item_info(void *pItem,
        int nRet = MEDIA_CONTENT_ERROR_NONE;
 
        nRet =
-               media_bookmark_get_marked_time(bookmark_h, (time_t *) nPosition);
+           media_bookmark_get_marked_time(bookmark_h, (time_t *) nPosition);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_bookmark_get_marked_time is fail : 0x%x",
-                             nRet);
+                             nRet);
                return FALSE;
        }
 
        nRet = media_bookmark_get_thumbnail_path(bookmark_h, szFilePath);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_bookmark_get_thumbnail_path is fail : 0x%x",
-                             nRet);
+                             nRet);
                return FALSE;
        }
 
@@ -1646,8 +1646,8 @@ bool vp_media_contents_bookmark_get_item_info(void *pItem,
 }
 
 bool vp_media_contents_get_video_items_to_folder(int nSortType,
-               char *szFolder,
-               GList **pList)
+        char *szFolder,
+        GList **pList)
 {
        if (szFolder == NULL) {
                VideoLogError("szFolder is NULL");
@@ -1707,21 +1707,21 @@ bool vp_media_contents_get_video_items_to_folder(int nSortType,
        }
 
        szCondition =
-               g_strdup_printf
-               ("MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE IS NOT 101) and FOLDER_PATH = \"%s\"",
-                szFolder);
+           g_strdup_printf
+           ("MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE IS NOT 101) and FOLDER_PATH = \"%s\"",
+            szFolder);
        nRet =
-               media_filter_set_condition(pFilterHandle, szCondition,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szCondition,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_folder_foreach_folder_from_db(pFilterHandle,
-                               __vp_media_contents_folder_iter_cb,
-                               &pFolderHandle);
+           media_folder_foreach_folder_from_db(pFilterHandle,
+                                               __vp_media_contents_folder_iter_cb,
+                                               &pFolderHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError
                ("media_folder_foreach_folder_from_db is fail : 0x%x", nRet);
@@ -1743,28 +1743,28 @@ bool vp_media_contents_get_video_items_to_folder(int nSortType,
 
        szCondition = g_strdup_printf("MEDIA_TYPE = 1");
        nRet =
-               media_filter_set_condition(pFilterHandle, szCondition,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szCondition,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_filter_set_order(pFilterHandle, nOrderType, szOrder,
-                                      MEDIA_CONTENT_COLLATE_NOCASE);
+           media_filter_set_order(pFilterHandle, nOrderType, szOrder,
+                                  MEDIA_CONTENT_COLLATE_NOCASE);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_order is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_folder_foreach_media_from_db(szFolderID, pFilterHandle,
-                               __vp_media_contents_video_iter_cb,
-                               pList);
+           media_folder_foreach_media_from_db(szFolderID, pFilterHandle,
+                                              __vp_media_contents_video_iter_cb,
+                                              pList);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -1844,32 +1844,32 @@ bool vp_media_contents_get_video_items(int nSortType, GList **pList)
        }
 
        szCondition =
-               g_strdup_printf
-               ("MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE IS NOT 101)");
+           g_strdup_printf
+           ("MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE IS NOT 101)");
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szCondition,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szCondition,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_filter_set_order(pFilterHandle, nOrderType, szOrder,
-                                      MEDIA_CONTENT_COLLATE_NOCASE);
+           media_filter_set_order(pFilterHandle, nOrderType, szOrder,
+                                  MEDIA_CONTENT_COLLATE_NOCASE);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_order is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_video_iter_cb,
-                               pList);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_video_iter_cb,
+                                            pList);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -1925,8 +1925,8 @@ bool vp_media_contents_free_video_items(GList *pList)
 }
 
 bool vp_media_contents_get_next_file_path(const char *szMediaURL,
-               char **szNextURL, bool bLoop,
-               GList *pList)
+        char **szNextURL, bool bLoop,
+        GList *pList)
 {
        if (!szMediaURL) {
                VideoLogError("No exist szMediaID.");
@@ -1961,7 +1961,7 @@ bool vp_media_contents_get_next_file_path(const char *szMediaURL,
                nRet = media_info_get_file_path(pMediaItem, &szPath);
                if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                        VideoLogWarning("media_info_get_file_path is fail : 0x%x",
-                                       nRet);
+                                       nRet);
                        continue;
                }
 
@@ -1996,8 +1996,8 @@ bool vp_media_contents_get_next_file_path(const char *szMediaURL,
 }
 
 bool vp_media_contents_get_prev_file_path(const char *szMediaURL,
-               char **szPrevURL, bool bLoop,
-               GList *pList)
+        char **szPrevURL, bool bLoop,
+        GList *pList)
 {
        if (!szMediaURL) {
                VideoLogError("No exist szMediaID.");
@@ -2033,7 +2033,7 @@ bool vp_media_contents_get_prev_file_path(const char *szMediaURL,
                nRet = media_info_get_file_path(pMediaItem, &szPath);
                if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                        VideoLogWarning("media_info_get_file_path is fail : 0x%x",
-                                       nRet);
+                                       nRet);
                        continue;
                }
                if (szPath) {
@@ -2078,9 +2078,9 @@ bool vp_media_contents_set_update_cb(MediaUpdateCb pFunc, void *pUserData)
        g_media_update_cb = pFunc;
 
        nRet =
-               media_content_set_db_updated_cb((void *)
-                                               __vp_media_contents_db_update_cb,
-                                               pUserData);
+           media_content_set_db_updated_cb((void *)
+                                           __vp_media_contents_db_update_cb,
+                                           pUserData);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogWarning("media_content_set_db_updated_cb is fail : 0x%x", nRet);
                return FALSE;
@@ -2098,7 +2098,7 @@ void vp_media_contents_unset_update_cb()
 }
 
 bool vp_media_contents_get_cloud_attribute(const char *szFilePath,
-               bool *bCloud)
+        bool *bCloud)
 {
 
        if (szFilePath == NULL) {
@@ -2115,8 +2115,8 @@ bool vp_media_contents_get_cloud_attribute(const char *szFilePath,
 
        char szTmpStr[4096] = { 0, };
        snprintf(szTmpStr, 4096,
-                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
-                szFilePath);
+                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
+                szFilePath);
 
        nRet = media_filter_create(&pFilterHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
@@ -2130,17 +2130,17 @@ bool vp_media_contents_get_cloud_attribute(const char *szFilePath,
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x", nRet);
                goto Exception;
@@ -2189,7 +2189,7 @@ Exception:
 }
 
 bool vp_media_contents_set_location_tag(const char *szFilePath,
-                                       const char *pLocation)
+                                        const char *pLocation)
 {
        if (szFilePath == NULL || pLocation == NULL) {
                VideoLogError("szFilePath or city is NULL");
@@ -2205,8 +2205,8 @@ bool vp_media_contents_set_location_tag(const char *szFilePath,
 
        char szTmpStr[4096] = { 0, };
        snprintf(szTmpStr, 4096,
-                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
-                szFilePath);
+                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
+                szFilePath);
 
        nRet = media_filter_create(&pFilterHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
@@ -2220,17 +2220,17 @@ bool vp_media_contents_set_location_tag(const char *szFilePath,
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x", nRet);
                goto Exception;
@@ -2244,7 +2244,7 @@ bool vp_media_contents_set_location_tag(const char *szFilePath,
        nRet = media_info_set_location_tag(pMediaHandle, pLocation);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_set_location_tag is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -2283,7 +2283,7 @@ Exception:
 }
 
 bool vp_media_contents_get_location_tag(const char *szFilePath,
-                                       char **szLocationTag)
+                                        char **szLocationTag)
 {
        if (szFilePath == NULL) {
                VideoLogError("szFilePath is NULL");
@@ -2300,8 +2300,8 @@ bool vp_media_contents_get_location_tag(const char *szFilePath,
 
        char szTmpStr[4096] = { 0, };
        snprintf(szTmpStr, 4096,
-                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
-                szFilePath);
+                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
+                szFilePath);
 
        nRet = media_filter_create(&pFilterHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
@@ -2315,17 +2315,17 @@ bool vp_media_contents_get_location_tag(const char *szFilePath,
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_dbmedia_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
@@ -2339,7 +2339,7 @@ bool vp_media_contents_get_location_tag(const char *szFilePath,
        nRet = media_info_get_location_tag(pMediaHandle, &szLocation);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_get_location_tag is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -2377,7 +2377,7 @@ Exception:
 }
 
 bool vp_media_contents_set_weahter_tag(const char *szFilePath,
-                                      const char *pWeather)
+                                       const char *pWeather)
 {
        if (szFilePath == NULL || pWeather == NULL) {
                VideoLogError("szFilePath or pWeather is NULL");
@@ -2394,8 +2394,8 @@ bool vp_media_contents_set_weahter_tag(const char *szFilePath,
 
        char szTmpStr[4096] = { 0, };
        snprintf(szTmpStr, 4096,
-                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
-                szFilePath);
+                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
+                szFilePath);
 
        nRet = media_filter_create(&pFilterHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
@@ -2409,17 +2409,17 @@ bool vp_media_contents_set_weahter_tag(const char *szFilePath,
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x", nRet);
                goto Exception;
@@ -2471,7 +2471,7 @@ Exception:
 }
 
 bool vp_media_contents_get_weahter_tag(const char *szFilePath,
-                                      char **szWeatherTag)
+                                       char **szWeatherTag)
 {
        if (szFilePath == NULL) {
                VideoLogError("szFilePath is NULL");
@@ -2488,8 +2488,8 @@ bool vp_media_contents_get_weahter_tag(const char *szFilePath,
 
        char szTmpStr[4096] = { 0, };
        snprintf(szTmpStr, 4096,
-                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
-                szFilePath);
+                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
+                szFilePath);
 
        nRet = media_filter_create(&pFilterHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
@@ -2503,17 +2503,17 @@ bool vp_media_contents_get_weahter_tag(const char *szFilePath,
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_info_cb,
-                               &pMediaHandle);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_info_cb,
+                                            &pMediaHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x", nRet);
                goto Exception;
@@ -2589,10 +2589,10 @@ bool vp_media_contents_subtitle_list_get(GList **pList)
        }
        // media_type 4 : other file
        szCondition =
-               (char *)
-               g_strdup_printf
-               ("MEDIA_TYPE = 4 AND (MEDIA_DISPLAY_NAME like \"%%%s\" OR MEDIA_DISPLAY_NAME like \"%%%s\" OR MEDIA_DISPLAY_NAME like \"%%%s\")",
-                ".smi", ".sub", ".srt");
+           (char *)
+           g_strdup_printf
+           ("MEDIA_TYPE = 4 AND (MEDIA_DISPLAY_NAME like \"%%%s\" OR MEDIA_DISPLAY_NAME like \"%%%s\" OR MEDIA_DISPLAY_NAME like \"%%%s\")",
+            ".smi", ".sub", ".srt");
        if (szCondition == NULL) {
                VideoLogError("szCondition NULL");
                goto Exception;
@@ -2601,28 +2601,28 @@ bool vp_media_contents_subtitle_list_get(GList **pList)
        VideoSecureLogInfo("szCondition is szCondition: %s", szCondition);
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szCondition,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szCondition,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_filter_set_order(pFilterHandle, MEDIA_CONTENT_ORDER_ASC,
-                                      MEDIA_TITLE, MEDIA_CONTENT_COLLATE_NOCASE);
+           media_filter_set_order(pFilterHandle, MEDIA_CONTENT_ORDER_ASC,
+                                  MEDIA_TITLE, MEDIA_CONTENT_COLLATE_NOCASE);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_order is fail : 0x%x", nRet);
                goto Exception;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_subtitles_iter_cb,
-                               pList);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_subtitles_iter_cb,
+                                            pList);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x",
-                             nRet);
+                             nRet);
                goto Exception;
        }
 
@@ -2649,8 +2649,8 @@ Exception:
 
 /* callback functions */
 static bool __vp_media_contents_file_is_exist_cb(media_info_h
-               pMediaHandle,
-               void *pUserData)
+        pMediaHandle,
+        void *pUserData)
 {
        bool *bExist = (bool *) pUserData;
 
@@ -2681,8 +2681,8 @@ bool vp_media_contents_file_is_exist(const char *szFilePath)
 
        char szTmpStr[4096] = { 0, };
        snprintf(szTmpStr, 4096,
-                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
-                szFilePath);
+                "MEDIA_TYPE = 1 AND (MEDIA_STORAGE_TYPE=0 OR MEDIA_STORAGE_TYPE=1 OR MEDIA_STORAGE_TYPE=101) AND MEDIA_PATH = \"%s\"",
+                szFilePath);
 
        nRet = media_filter_create(&pFilterHandle);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
@@ -2696,17 +2696,17 @@ bool vp_media_contents_file_is_exist(const char *szFilePath)
        }
 
        nRet =
-               media_filter_set_condition(pFilterHandle, szTmpStr,
-                                          MEDIA_CONTENT_COLLATE_DEFAULT);
+           media_filter_set_condition(pFilterHandle, szTmpStr,
+                                      MEDIA_CONTENT_COLLATE_DEFAULT);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_filter_set_condition is fail : 0x%x", nRet);
                goto End;
        }
 
        nRet =
-               media_info_foreach_media_from_db(pFilterHandle,
-                               __vp_media_contents_file_is_exist_cb,
-                               &bExist);
+           media_info_foreach_media_from_db(pFilterHandle,
+                                            __vp_media_contents_file_is_exist_cb,
+                                            &bExist);
        if (nRet != MEDIA_CONTENT_ERROR_NONE) {
                VideoLogError("media_info_foreach_media_from_db is fail : 0x%x", nRet);
                goto End;
index 4f70152..2f8638c 100644 (file)
@@ -35,8 +35,8 @@ static void _vp_media_key_destroy_handle(MediaKey *pMediaKey);
 
 /* callback functions */
 static void __vp_media_key_event_cb(media_key_e nKey,
-                                   media_key_event_e nEvent,
-                                   void *pUserData)
+                                    media_key_event_e nEvent,
+                                    void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("User data is NULL.");
@@ -63,36 +63,36 @@ static void __vp_media_key_event_cb(media_key_e nKey,
        switch (nKey) {
        case MEDIA_KEY_PLAY:
                pMediaKey->pEventCb(VP_MEDIA_KEY_PLAY, bReleased,
-                                   pMediaKey->pUserData);
+                                   pMediaKey->pUserData);
                break;
        case MEDIA_KEY_PAUSE:
                pMediaKey->pEventCb(VP_MEDIA_KEY_PAUSE, bReleased,
-                                   pMediaKey->pUserData);
+                                   pMediaKey->pUserData);
                break;
 
        case MEDIA_KEY_PLAYPAUSE:
                pMediaKey->pEventCb(VP_MEDIA_KEY_PLAYPAUSE, bReleased,
-                                   pMediaKey->pUserData);
+                                   pMediaKey->pUserData);
                break;
        case MEDIA_KEY_PREVIOUS:
                pMediaKey->pEventCb(VP_MEDIA_KEY_PREVIOUS, bReleased,
-                                   pMediaKey->pUserData);
+                                   pMediaKey->pUserData);
                break;
        case MEDIA_KEY_REWIND:
                pMediaKey->pEventCb(VP_MEDIA_KEY_REWIND, bReleased,
-                                   pMediaKey->pUserData);
+                                   pMediaKey->pUserData);
                break;
        case MEDIA_KEY_NEXT:
                pMediaKey->pEventCb(VP_MEDIA_KEY_NEXT, bReleased,
-                                   pMediaKey->pUserData);
+                                   pMediaKey->pUserData);
                break;
        case MEDIA_KEY_FASTFORWARD:
                pMediaKey->pEventCb(VP_MEDIA_KEY_FASTFORWARD, bReleased,
-                                   pMediaKey->pUserData);
+                                   pMediaKey->pUserData);
                break;
        case MEDIA_KEY_STOP:
                pMediaKey->pEventCb(VP_MEDIA_KEY_STOP, bReleased,
-                                   pMediaKey->pUserData);
+                                   pMediaKey->pUserData);
                break;
        default:
                VideoLogWarning("Undefined key : %d", nKey);
@@ -116,7 +116,7 @@ static void _vp_media_key_destroy_handle(MediaKey *pMediaKey)
 
 /* external functions */
 media_key_handle vp_media_key_create(Evas_Object *pWin,
-                                    MediaKeyEventCbFunc pEventCb)
+                                     MediaKeyEventCbFunc pEventCb)
 {
        if (pWin == NULL) {
                VideoLogError("pWin is NULL");
@@ -188,7 +188,7 @@ bool vp_media_key_unrealize(media_key_handle pMediaKeyHandle)
 }
 
 bool vp_media_key_set_user_data(media_key_handle pMediaKeyHandle,
-                               void *pUserData)
+                                void *pUserData)
 {
        if (pMediaKeyHandle == NULL) {
                VideoLogError("pMediaKeyHandle is NULL");
index b70af94..e8e4a83 100644 (file)
@@ -251,7 +251,7 @@ static int _vp_mm_player_priv_convert_interrupt(int nCode, bool bAppToFW)
                        return VP_MM_PLAYER_INTERRUPTED_BY_ALARM;
                case PLAYER_INTERRUPTED_BY_EMERGENCY:
                        return VP_MM_PLAYER_INTERRUPTED_BY_EMERGENCY;
-               //case PLAYER_INTERRUPTED_BY_RESUMABLE_MEDIA:   return VP_MM_PLAYER_INTERRUPTED_RESUMABLE_MEDIA;
+                       //case PLAYER_INTERRUPTED_BY_RESUMABLE_MEDIA:   return VP_MM_PLAYER_INTERRUPTED_RESUMABLE_MEDIA;
                case PLAYER_INTERRUPTED_BY_NOTIFICATION:
                        return VP_MM_PLAYER_INTERRUPTED_NOTIFICATION;
                }
@@ -271,7 +271,8 @@ static int _vp_mm_player_priv_convert_interrupt(int nCode, bool bAppToFW)
                        return PLAYER_INTERRUPTED_BY_ALARM;
                case VP_MM_PLAYER_INTERRUPTED_BY_EMERGENCY:
                        return PLAYER_INTERRUPTED_BY_EMERGENCY;
-               //case VP_MM_PLAYER_INTERRUPTED_RESUMABLE_MEDIA:                return PLAYER_INTERRUPTED_BY_RESUMABLE_MEDIA;
+               //case VP_MM_PLAYER_INTERRUPTED_RESUMABLE_MEDIA:
+               //      return PLAYER_INTERRUPTED_BY_RESUMABLE_MEDIA;
                case VP_MM_PLAYER_INTERRUPTED_NOTIFICATION:
                        return PLAYER_INTERRUPTED_BY_NOTIFICATION;
                }
@@ -280,7 +281,7 @@ static int _vp_mm_player_priv_convert_interrupt(int nCode, bool bAppToFW)
 }
 
 static int _vp_mm_player_priv_convert_player_state(int nCode,
-               bool bAppToFW)
+        bool bAppToFW)
 {
 
        if (bAppToFW) {
@@ -315,7 +316,7 @@ static int _vp_mm_player_priv_convert_player_state(int nCode,
 
 
 static int _vp_mm_player_priv_convert_display_mode(int nCode,
-               bool bAppToFW)
+        bool bAppToFW)
 {
        if (bAppToFW) {
                switch (nCode) {
@@ -373,7 +374,7 @@ static int _vp_mm_player_priv_convert_display_mode(int nCode,
 
 /* callback functions */
 static void __vp_mm_player_pipe_prepare_cb(void *pUserData, void *pBuff,
-               unsigned int nByte)
+                       unsigned int nByte)
 {
        if (pUserData == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -392,8 +393,8 @@ static void __vp_mm_player_pipe_prepare_cb(void *pUserData, void *pBuff,
 }
 
 static void __vp_mm_player_pipe_end_of_stream_cb(void *pUserData,
-               void *pBuff,
-               unsigned int nByte)
+                       void *pBuff,
+                       unsigned int nByte)
 {
        if (pUserData == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -411,8 +412,8 @@ static void __vp_mm_player_pipe_end_of_stream_cb(void *pUserData,
 }
 
 static void __vp_mm_player_pipe_seek_complete_cb(void *pUserData,
-               void *pBuff,
-               unsigned int nByte)
+                       void *pBuff,
+                       unsigned int nByte)
 {
        if (pUserData == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -429,8 +430,8 @@ static void __vp_mm_player_pipe_seek_complete_cb(void *pUserData,
 }
 
 static void __vp_mm_player_pipe_interrupted_cb(void *pUserData,
-               void *pBuff,
-               unsigned int nByte)
+                        void *pBuff,
+                        unsigned int nByte)
 {
        if (pUserData == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -443,20 +444,20 @@ static void __vp_mm_player_pipe_interrupted_cb(void *pUserData,
                int nInterruptCode = 0;
                if (pMMPlayer->pInterruptParam) {
                        nInterruptCode =
-                               _vp_mm_player_priv_convert_interrupt(pMMPlayer->
-                                               pInterruptParam->
-                                               nInterrupt, TRUE);
+                           _vp_mm_player_priv_convert_interrupt(pMMPlayer->
+                                   pInterruptParam->
+                                   nInterrupt, TRUE);
                }
 
                pMMPlayer->pCbFunc->pInterruptedCb(nInterruptCode,
-                                                  pMMPlayer->pParam);
+                                                  pMMPlayer->pParam);
        }
 
        return;
 }
 
 static void __vp_mm_player_pipe_error_cb(void *pUserData, void *pBuff,
-               unsigned int nByte)
+                        unsigned int nByte)
 {
        if (pUserData == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -468,8 +469,8 @@ static void __vp_mm_player_pipe_error_cb(void *pUserData, void *pBuff,
                int nErr = 0;
                if (pMMPlayer->pErrorParam) {
                        nErr =
-                               _vp_mm_player_priv_convert_error(pMMPlayer->pErrorParam->
-                                               nError, TRUE);
+                           _vp_mm_player_priv_convert_error(pMMPlayer->pErrorParam->
+                                                            nError, TRUE);
                }
 
                pMMPlayer->pCbFunc->pErrorCb(nErr, pMMPlayer->pParam);
@@ -478,7 +479,7 @@ static void __vp_mm_player_pipe_error_cb(void *pUserData, void *pBuff,
 }
 
 static void __vp_mm_player_pipe_buffering_cb(void *pUserData, void *pBuff,
-               unsigned int nByte)
+                        unsigned int nByte)
 {
        if (pUserData == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -498,8 +499,8 @@ static void __vp_mm_player_pipe_buffering_cb(void *pUserData, void *pBuff,
 }
 
 static void __vp_mm_player_pipe_subtitle_update_cb(void *pUserData,
-               void *pBuff,
-               unsigned int nByte)
+                        void *pBuff,
+                        unsigned int nByte)
 {
        if (pUserData == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -522,8 +523,8 @@ static void __vp_mm_player_pipe_subtitle_update_cb(void *pUserData,
 
                if (szSubtitleText && strlen(szSubtitleText) > 0)
                        pMMPlayer->pCbFunc->pSubtitleUpdateCb(nDuration,
-                                                             szSubtitleText,
-                                                             pMMPlayer->pParam);
+                                                             szSubtitleText,
+                                                             pMMPlayer->pParam);
                VP_FREE(szSubtitleText);
        }
 
@@ -532,8 +533,8 @@ static void __vp_mm_player_pipe_subtitle_update_cb(void *pUserData,
 }
 
 static void __vp_mm_player_pipe_pd_message_cb(void *pUserData,
-               void *pBuff,
-               unsigned int nByte)
+                        void *pBuff,
+                        unsigned int nByte)
 {
        if (pUserData == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -555,7 +556,7 @@ static void __vp_mm_player_pipe_pd_message_cb(void *pUserData,
 }
 
 static void __vp_mm_player_pipe_captured_cb(void *pUserData, void *pBuff,
-               unsigned int nByte)
+                        unsigned int nByte)
 {
        if (pUserData == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -578,15 +579,15 @@ static void __vp_mm_player_pipe_captured_cb(void *pUserData, void *pBuff,
                }
 
                pMMPlayer->pCbFunc->pCapturedCb(pFrame, nWidth, nHeight, nSize,
-                                               pMMPlayer->pParam);
+                                               pMMPlayer->pParam);
        }
 
        return;
 }
 
 static void __vp_mm_player_pipe_missed_plugin_cb(void *pUserData,
-               void *pBuff,
-               unsigned int nByte)
+                        void *pBuff,
+                        unsigned int nByte)
 {
        if (pUserData == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -598,14 +599,14 @@ static void __vp_mm_player_pipe_missed_plugin_cb(void *pUserData,
        if (pMMPlayer->pCbFunc->pMissedPluginCb) {
 
                vp_mm_player_missed_plugin_t nMissedType =
-                       VP_MM_PLAYER_MISSED_PLUGIN_UNKNOWN;
+                   VP_MM_PLAYER_MISSED_PLUGIN_UNKNOWN;
 
                if (pMMPlayer->pMissedParam) {
                        nMissedType = pMMPlayer->pMissedParam->nMissedType;
                }
 
                pMMPlayer->pCbFunc->pMissedPluginCb(nMissedType,
-                                                   pMMPlayer->pParam);
+                                                   pMMPlayer->pParam);
        }
 
        return;
@@ -614,8 +615,8 @@ static void __vp_mm_player_pipe_missed_plugin_cb(void *pUserData,
 
 
 static void __vp_mm_player_pipe_image_buffer_cb(void *pUserData,
-               void *pBuff,
-               unsigned int nByte)
+                        void *pBuff,
+                        unsigned int nByte)
 {
        if (pUserData == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -634,7 +635,7 @@ static void __vp_mm_player_pipe_image_buffer_cb(void *pUserData,
                }
 
                pMMPlayer->pCbFunc->pImageBufferCb(pBuffer, nSize,
-                                                  pMMPlayer->pParam);
+                                                  pMMPlayer->pParam);
        }
 
        return;
@@ -656,8 +657,8 @@ static void __vp_mm_player_prepare_cb(void *pUserData)
        if (pMMPlayer->pCbPipe->pPreparePipe) {
                Eina_Bool bRet = EINA_FALSE;
                bRet =
-                       ecore_pipe_write(pMMPlayer->pCbPipe->pPreparePipe,
-                                        (void *) pMMPlayer, sizeof(MMPlayer));
+                   ecore_pipe_write(pMMPlayer->pCbPipe->pPreparePipe,
+                                    (void *) pMMPlayer, sizeof(MMPlayer));
                if (bRet != EINA_TRUE) {
                        VideoLogError(" : ecore pipe write fail");
                }
@@ -678,8 +679,8 @@ static void __vp_mm_player_completed_cb(void *pUserData)
        if (pMMPlayer->pCbPipe->pEndOfStreamPipe) {
                Eina_Bool bRet = EINA_FALSE;
                bRet =
-                       ecore_pipe_write(pMMPlayer->pCbPipe->pEndOfStreamPipe,
-                                        (void *) pMMPlayer, sizeof(MMPlayer));
+                   ecore_pipe_write(pMMPlayer->pCbPipe->pEndOfStreamPipe,
+                                    (void *) pMMPlayer, sizeof(MMPlayer));
                if (bRet != EINA_TRUE) {
                        VideoLogError(" : ecore pipe write fail");
                }
@@ -700,8 +701,8 @@ static void __vp_mm_player_seek_completed_cb(void *pUserData)
        if (pMMPlayer->pCbPipe->pSeekCompletePipe) {
                Eina_Bool bRet = EINA_FALSE;
                bRet =
-                       ecore_pipe_write(pMMPlayer->pCbPipe->pSeekCompletePipe,
-                                        (void *) pMMPlayer, sizeof(MMPlayer));
+                   ecore_pipe_write(pMMPlayer->pCbPipe->pSeekCompletePipe,
+                                    (void *) pMMPlayer, sizeof(MMPlayer));
                if (bRet != EINA_TRUE) {
                        VideoLogError(" : ecore pipe write fail");
                }
@@ -712,7 +713,7 @@ static void __vp_mm_player_seek_completed_cb(void *pUserData)
 }
 
 static void __vp_mm_player_interrupted_cb(player_interrupted_code_e nCode,
-               void *pUserData)
+        void *pUserData)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -729,8 +730,8 @@ static void __vp_mm_player_interrupted_cb(player_interrupted_code_e nCode,
                }
 
                bRet =
-                       ecore_pipe_write(pMMPlayer->pCbPipe->pInterruptedPipe,
-                                        (void *) pMMPlayer, sizeof(MMPlayer));
+                   ecore_pipe_write(pMMPlayer->pCbPipe->pInterruptedPipe,
+                                    (void *) pMMPlayer, sizeof(MMPlayer));
                if (bRet != EINA_TRUE) {
                        VideoLogError(" : ecore pipe write fail");
                }
@@ -757,8 +758,8 @@ static void __vp_mm_player_error_cb(int nError, void *pUserData)
                }
 
                bRet =
-                       ecore_pipe_write(pMMPlayer->pCbPipe->pErrorPipe,
-                                        (void *) pMMPlayer, sizeof(MMPlayer));
+                   ecore_pipe_write(pMMPlayer->pCbPipe->pErrorPipe,
+                                    (void *) pMMPlayer, sizeof(MMPlayer));
                if (bRet != EINA_TRUE) {
                        VideoLogError(" : ecore pipe write fail");
                }
@@ -785,8 +786,8 @@ static void __vp_mm_player_buffering_cb(int nPercent, void *pUserData)
                }
 
                bRet =
-                       ecore_pipe_write(pMMPlayer->pCbPipe->pBufferingPipe,
-                                        (void *) pMMPlayer, sizeof(MMPlayer));
+                   ecore_pipe_write(pMMPlayer->pCbPipe->pBufferingPipe,
+                                    (void *) pMMPlayer, sizeof(MMPlayer));
                if (bRet != EINA_TRUE) {
                        VideoLogError(" : ecore pipe write fail");
                }
@@ -797,8 +798,8 @@ static void __vp_mm_player_buffering_cb(int nPercent, void *pUserData)
 }
 
 static void __vp_mm_player_subtitle_updated_cb(unsigned long nDuration,
-               char *text,
-               void *pUserData)
+                        char *text,
+                        void *pUserData)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -807,8 +808,9 @@ static void __vp_mm_player_subtitle_updated_cb(unsigned long nDuration,
 
        MMPlayer *pMMPlayer = (MMPlayer *) pUserData;
 
-       if (pMMPlayer->bDeactivateSubtitle)
+       if (pMMPlayer->bDeactivateSubtitle) {
                return;
+       }
 
        if (pMMPlayer->pCbPipe->pSubtitleUpdatePipe) {
                if (pMMPlayer->pSubtitleParam) {
@@ -826,11 +828,11 @@ static void __vp_mm_player_subtitle_updated_cb(unsigned long nDuration,
                }
 
                if (pMMPlayer->pSubtitleParam && pMMPlayer->pSubtitleParam->txt
-                               && strlen(pMMPlayer->pSubtitleParam->txt) > 0) {
+                       && strlen(pMMPlayer->pSubtitleParam->txt) > 0) {
                        Eina_Bool bRet = EINA_FALSE;
                        bRet =
-                               ecore_pipe_write(pMMPlayer->pCbPipe->pSubtitleUpdatePipe,
-                                                (void *) pMMPlayer, sizeof(MMPlayer));
+                           ecore_pipe_write(pMMPlayer->pCbPipe->pSubtitleUpdatePipe,
+                                            (void *) pMMPlayer, sizeof(MMPlayer));
                        if (bRet != EINA_TRUE) {
                                VideoLogError(" : ecore pipe write fail");
                        }
@@ -841,9 +843,9 @@ static void __vp_mm_player_subtitle_updated_cb(unsigned long nDuration,
 }
 
 static void __vp_mm_player_video_captured_cb(unsigned char *pFrame,
-               int nWidth, int nHeight,
-               unsigned int nSize,
-               void *pUserData)
+                        int nWidth, int nHeight,
+                        unsigned int nSize,
+                        void *pUserData)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -874,8 +876,8 @@ static void __vp_mm_player_video_captured_cb(unsigned char *pFrame,
                        pMMPlayer->pCaptureParam->pParam = pMMPlayer->pParam;
                }
                bRet =
-                       ecore_pipe_write(pMMPlayer->pCbPipe->pCapturedPipe,
-                                        (void *) pMMPlayer, sizeof(MMPlayer));
+                   ecore_pipe_write(pMMPlayer->pCbPipe->pCapturedPipe,
+                                    (void *) pMMPlayer, sizeof(MMPlayer));
                if (bRet != EINA_TRUE) {
                        VideoLogError(" : ecore pipe write fail");
                }
@@ -961,7 +963,7 @@ static void __vp_mm_player_video_captured_cb(unsigned char *pFrame,
 
 
 static void _vp_mm_callback_param_free(vp_mm_player_callback_t nType,
-                                      void *pParam)
+                                       void *pParam)
 {
        if (pParam == NULL) {
                VideoLogError("Param data is NULL");
@@ -970,7 +972,7 @@ static void _vp_mm_callback_param_free(vp_mm_player_callback_t nType,
 
        if (nType == VP_MM_PLAYER_CAPTURE_VIDEO_CB) {
                MMPlayerCaptureParam *pCaptureParam =
-                       (MMPlayerCaptureParam *) pParam;
+                   (MMPlayerCaptureParam *) pParam;
                if (pCaptureParam->pFrame) {
                        free(pCaptureParam->pFrame);
                        pCaptureParam->pFrame = NULL;
@@ -980,7 +982,7 @@ static void _vp_mm_callback_param_free(vp_mm_player_callback_t nType,
                pCaptureParam = NULL;
        } else if (nType == VP_MM_PLAYER_SUBTITLE_UPDATE_CB) {
                MMPlayerSubtitleParam *pSubtitleParam =
-                       (MMPlayerSubtitleParam *) pParam;
+                   (MMPlayerSubtitleParam *) pParam;
                if (pSubtitleParam->txt) {
                        free(pSubtitleParam->txt);
                        pSubtitleParam->txt = NULL;
@@ -989,7 +991,7 @@ static void _vp_mm_callback_param_free(vp_mm_player_callback_t nType,
                pSubtitleParam = NULL;
        } else if (nType == VP_MM_PLAYER_IMAGE_BUFFER_CB) {
                MMPlayerImageBufferParam *pImageBufferParam =
-                       (MMPlayerImageBufferParam *) pParam;
+                   (MMPlayerImageBufferParam *) pParam;
                if (pImageBufferParam->pBuffer) {
                        free(pImageBufferParam->pBuffer);
                        pImageBufferParam->pBuffer = NULL;
@@ -1015,83 +1017,83 @@ static void _vp_mm_ecore_pipe_create(MMPlayer *pMMPlayer)
        }
 
        pCbPipe->pPreparePipe =
-               ecore_pipe_add((Ecore_Pipe_Cb) __vp_mm_player_pipe_prepare_cb,
-                              (void *) pMMPlayer);
+           ecore_pipe_add((Ecore_Pipe_Cb) __vp_mm_player_pipe_prepare_cb,
+                          (void *) pMMPlayer);
        if (pCbPipe->pPreparePipe == NULL) {
                VideoLogWarning("pPreparePipe create fail");
        }
 
        pCbPipe->pEndOfStreamPipe =
-               ecore_pipe_add((Ecore_Pipe_Cb)
-                              __vp_mm_player_pipe_end_of_stream_cb,
-                              (void *) pMMPlayer);
+           ecore_pipe_add((Ecore_Pipe_Cb)
+                          __vp_mm_player_pipe_end_of_stream_cb,
+                          (void *) pMMPlayer);
        if (pCbPipe->pEndOfStreamPipe == NULL) {
                VideoLogWarning("pEndOfStreamPipe create fail");
        }
 
        pCbPipe->pSeekCompletePipe =
-               ecore_pipe_add((Ecore_Pipe_Cb)
-                              __vp_mm_player_pipe_seek_complete_cb,
-                              (void *) pMMPlayer);
+           ecore_pipe_add((Ecore_Pipe_Cb)
+                          __vp_mm_player_pipe_seek_complete_cb,
+                          (void *) pMMPlayer);
        if (pCbPipe->pSeekCompletePipe == NULL) {
                VideoLogWarning("pSeekCompletePipe create fail");
        }
 
        pCbPipe->pInterruptedPipe =
-               ecore_pipe_add((Ecore_Pipe_Cb) __vp_mm_player_pipe_interrupted_cb,
-                              (void *) pMMPlayer);
+           ecore_pipe_add((Ecore_Pipe_Cb) __vp_mm_player_pipe_interrupted_cb,
+                          (void *) pMMPlayer);
        if (pCbPipe->pInterruptedPipe == NULL) {
                VideoLogWarning("pInterruptedPipe create fail");
        }
 
        pCbPipe->pErrorPipe =
-               ecore_pipe_add((Ecore_Pipe_Cb) __vp_mm_player_pipe_error_cb,
-                              (void *) pMMPlayer);
+           ecore_pipe_add((Ecore_Pipe_Cb) __vp_mm_player_pipe_error_cb,
+                          (void *) pMMPlayer);
        if (pCbPipe->pErrorPipe == NULL) {
                VideoLogWarning("pErrorPipe create fail");
        }
 
        pCbPipe->pBufferingPipe =
-               ecore_pipe_add((Ecore_Pipe_Cb) __vp_mm_player_pipe_buffering_cb,
-                              (void *) pMMPlayer);
+           ecore_pipe_add((Ecore_Pipe_Cb) __vp_mm_player_pipe_buffering_cb,
+                          (void *) pMMPlayer);
        if (pCbPipe->pBufferingPipe == NULL) {
                VideoLogWarning("pBufferingPipe create fail");
        }
 
        pCbPipe->pSubtitleUpdatePipe =
-               ecore_pipe_add((Ecore_Pipe_Cb)
-                              __vp_mm_player_pipe_subtitle_update_cb,
-                              (void *) pMMPlayer);
+           ecore_pipe_add((Ecore_Pipe_Cb)
+                          __vp_mm_player_pipe_subtitle_update_cb,
+                          (void *) pMMPlayer);
        if (pCbPipe->pSubtitleUpdatePipe == NULL) {
                VideoLogWarning("pSubtitleUpdatePipe create fail");
        }
 
        pCbPipe->pPDMessagePipe =
-               ecore_pipe_add((Ecore_Pipe_Cb) __vp_mm_player_pipe_pd_message_cb,
-                              (void *) pMMPlayer);
+           ecore_pipe_add((Ecore_Pipe_Cb) __vp_mm_player_pipe_pd_message_cb,
+                          (void *) pMMPlayer);
        if (pCbPipe->pPDMessagePipe == NULL) {
                VideoLogWarning("pPDMessagePipe create fail");
        }
 
        pCbPipe->pCapturedPipe =
-               ecore_pipe_add((Ecore_Pipe_Cb) __vp_mm_player_pipe_captured_cb,
-                              (void *) pMMPlayer);
+           ecore_pipe_add((Ecore_Pipe_Cb) __vp_mm_player_pipe_captured_cb,
+                          (void *) pMMPlayer);
        if (pCbPipe->pCapturedPipe == NULL) {
                VideoLogWarning("pCapturedPipe create fail");
        }
 
        pCbPipe->pMissedPluginPipe =
-               ecore_pipe_add((Ecore_Pipe_Cb)
-                              __vp_mm_player_pipe_missed_plugin_cb,
-                              (void *) pMMPlayer);
+           ecore_pipe_add((Ecore_Pipe_Cb)
+                          __vp_mm_player_pipe_missed_plugin_cb,
+                          (void *) pMMPlayer);
        if (pCbPipe->pMissedPluginPipe == NULL) {
                VideoLogWarning("pMissedPluginPipe create fail");
        }
 
        pCbPipe->pImageBufferPipe =
-               ecore_pipe_add((Ecore_Pipe_Cb)
-                              __vp_mm_player_pipe_image_buffer_cb,
-                              (void *) pMMPlayer);
+           ecore_pipe_add((Ecore_Pipe_Cb)
+                          __vp_mm_player_pipe_image_buffer_cb,
+                          (void *) pMMPlayer);
        if (pCbPipe->pImageBufferPipe == NULL) {
                VideoLogWarning("pImageBufferPipe create fail");
        }
@@ -1125,44 +1127,44 @@ static void _vp_mm_register_default_callback(MMPlayer *pMMPlayer)
        }
        int nRet = PLAYER_ERROR_NONE;
        nRet =
-               player_set_completed_cb(pMMPlayer->pPlayer,
-                                       __vp_mm_player_completed_cb,
-                                       (void *) pMMPlayer);
+           player_set_completed_cb(pMMPlayer->pPlayer,
+                                   __vp_mm_player_completed_cb,
+                                   (void *) pMMPlayer);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_set_completed_cb fail : %d", nRet);
        }
 
        nRet =
-               player_set_interrupted_cb(pMMPlayer->pPlayer,
-                                         __vp_mm_player_interrupted_cb,
-                                         (void *) pMMPlayer);
+           player_set_interrupted_cb(pMMPlayer->pPlayer,
+                                     __vp_mm_player_interrupted_cb,
+                                     (void *) pMMPlayer);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_set_interrupted_cb fail : %d", nRet);
        }
 
        nRet =
-               player_set_error_cb(pMMPlayer->pPlayer, __vp_mm_player_error_cb,
-                                   (void *) pMMPlayer);
+           player_set_error_cb(pMMPlayer->pPlayer, __vp_mm_player_error_cb,
+                               (void *) pMMPlayer);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_set_error_cb fail : %d", nRet);
        }
 
        nRet =
-               player_set_buffering_cb(pMMPlayer->pPlayer,
-                                       __vp_mm_player_buffering_cb,
-                                       (void *) pMMPlayer);
+           player_set_buffering_cb(pMMPlayer->pPlayer,
+                                   __vp_mm_player_buffering_cb,
+                                   (void *) pMMPlayer);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_set_buffering_cb fail : %d", nRet);
        }
 
        nRet =
-               player_set_subtitle_updated_cb(pMMPlayer->pPlayer,
-                                              __vp_mm_player_subtitle_updated_cb,
-                                              (void *) pMMPlayer);
+           player_set_subtitle_updated_cb(pMMPlayer->pPlayer,
+                                          __vp_mm_player_subtitle_updated_cb,
+                                          (void *) pMMPlayer);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_set_subtitle_updated_cb fail : %d", nRet);
@@ -1293,7 +1295,7 @@ mm_player_handle vp_mm_player_create()
        }
 
        pMMPlayer->pInterruptParam =
-               calloc(1, sizeof(MMPlayerInterruptParam));
+           calloc(1, sizeof(MMPlayerInterruptParam));
        if (pMMPlayer->pInterruptParam == NULL) {
                VideoLogError("MMPlayer pInterruptParam alloc fail");
        }
@@ -1303,7 +1305,7 @@ mm_player_handle vp_mm_player_create()
                VideoLogError("MMPlayer pErrorParam alloc fail");
        }
        pMMPlayer->pBufferingParam =
-               calloc(1, sizeof(MMPlayerBufferingParam));
+           calloc(1, sizeof(MMPlayerBufferingParam));
        if (pMMPlayer->pBufferingParam == NULL) {
                VideoLogError("MMPlayer pBufferingParam alloc fail");
        }
@@ -1314,13 +1316,13 @@ mm_player_handle vp_mm_player_create()
        }
 
        pMMPlayer->pMissedParam =
-               calloc(1, sizeof(MMPlayerMissedPluginParam));
+           calloc(1, sizeof(MMPlayerMissedPluginParam));
        if (pMMPlayer->pMissedParam == NULL) {
                VideoLogError("MMPlayer pMissedParam alloc fail");
        }
 
        pMMPlayer->pImageBufferParam =
-               calloc(1, sizeof(MMPlayerImageBufferParam));
+           calloc(1, sizeof(MMPlayerImageBufferParam));
        if (pMMPlayer->pImageBufferParam == NULL) {
                VideoLogError("MMPlayer pImageBufferParam alloc fail");
        }
@@ -1337,7 +1339,7 @@ void vp_mm_player_destroy(mm_player_handle pPlayerHandle)
                return;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
        int nRet = 0;
 
        if (!vp_mm_player_unrealize(pPlayerHandle)) {
@@ -1360,11 +1362,11 @@ void vp_mm_player_destroy(mm_player_handle pPlayerHandle)
        pMMPlayer->bIsScaling = FALSE;
 
        _vp_mm_callback_param_free(VP_MM_PLAYER_CAPTURE_VIDEO_CB,
-                                  (void *) pMMPlayer->pCaptureParam);
+                                  (void *) pMMPlayer->pCaptureParam);
        _vp_mm_callback_param_free(VP_MM_PLAYER_SUBTITLE_UPDATE_CB,
-                                  (void *) pMMPlayer->pSubtitleParam);
+                                  (void *) pMMPlayer->pSubtitleParam);
        _vp_mm_callback_param_free(VP_MM_PLAYER_IMAGE_BUFFER_CB,
-                                  (void *) pMMPlayer->pImageBufferParam);
+                                  (void *) pMMPlayer->pImageBufferParam);
 
        if (pMMPlayer->pInterruptParam) {
                free(pMMPlayer->pInterruptParam);
@@ -1445,7 +1447,7 @@ bool vp_mm_player_realize(mm_player_handle pPlayerHandle, char *szPath)
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->bIsRealize) {
                VideoLogError("Already realized");
@@ -1487,14 +1489,14 @@ bool vp_mm_player_realize(mm_player_handle pPlayerHandle, char *szPath)
 }
 
 bool vp_mm_player_realize_async(mm_player_handle pPlayerHandle,
-                               char *szPath)
+                                char *szPath)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->bIsRealize) {
                VideoLogError("Already realized");
@@ -1523,9 +1525,9 @@ bool vp_mm_player_realize_async(mm_player_handle pPlayerHandle,
 //      }
 
        nRet =
-               player_prepare_async(pMMPlayer->pPlayer,
-                                    __vp_mm_player_prepare_cb,
-                                    (void *) pMMPlayer);
+           player_prepare_async(pMMPlayer->pPlayer,
+                                __vp_mm_player_prepare_cb,
+                                (void *) pMMPlayer);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_prepare is fail : %d", nRet);
@@ -1541,7 +1543,7 @@ bool vp_mm_player_unrealize(mm_player_handle pPlayerHandle)
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -1604,15 +1606,15 @@ bool vp_mm_player_is_realize(mm_player_handle pPlayerHandle)
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        return pMMPlayer->bIsRealize;
 
 }
 
 bool vp_mm_player_set_callback(mm_player_handle pPlayerHandle,
-                              vp_mm_player_callback_t nCallbackType,
-                              void *pCallback)
+                               vp_mm_player_callback_t nCallbackType,
+                               void *pCallback)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -1624,51 +1626,51 @@ bool vp_mm_player_set_callback(mm_player_handle pPlayerHandle,
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        switch (nCallbackType) {
        case VP_MM_PLAYER_REALIZE_ASYNC_CB:
                pMMPlayer->pCbFunc->pPrepareCb =
-                       (vp_mm_player_prepare_cb) pCallback;
+                   (vp_mm_player_prepare_cb) pCallback;
                break;
        case VP_MM_PLAYER_SEEK_COMPLETE_CB:
                pMMPlayer->pCbFunc->pSeekCompleteCb =
-                       (vp_mm_player_seek_completed_cb) pCallback;
+                   (vp_mm_player_seek_completed_cb) pCallback;
                break;
        case VP_MM_PLAYER_END_OF_STREAM_CB:
                pMMPlayer->pCbFunc->pEndOfStreamCb =
-                       (vp_mm_player_completed_cb) pCallback;
+                   (vp_mm_player_completed_cb) pCallback;
                break;
        case VP_MM_PLAYER_INTERRUPT_CB:
                pMMPlayer->pCbFunc->pInterruptedCb =
-                       (vp_mm_player_interrupted_cb) pCallback;
+                   (vp_mm_player_interrupted_cb) pCallback;
                break;
        case VP_MM_PLAYER_ERROR_CB:
                pMMPlayer->pCbFunc->pErrorCb = (vp_mm_player_error_cb) pCallback;
                break;
        case VP_MM_PLAYER_BUFFERING_CB:
                pMMPlayer->pCbFunc->pBufferingCb =
-                       (vp_mm_player_buffering_cb) pCallback;
+                   (vp_mm_player_buffering_cb) pCallback;
                break;
        case VP_MM_PLAYER_SUBTITLE_UPDATE_CB:
                pMMPlayer->pCbFunc->pSubtitleUpdateCb =
-                       (vp_mm_player_subtitle_updated_cb) pCallback;
+                   (vp_mm_player_subtitle_updated_cb) pCallback;
                break;
        case VP_MM_PLAYER_PD_MESSAGE_CB:
                pMMPlayer->pCbFunc->pPDMessageCb =
-                       (vp_mm_player_pd_message_cb) pCallback;
+                   (vp_mm_player_pd_message_cb) pCallback;
                break;
        case VP_MM_PLAYER_CAPTURE_VIDEO_CB:
                pMMPlayer->pCbFunc->pCapturedCb =
-                       (vp_mm_player_video_captured_cb) pCallback;
+                   (vp_mm_player_video_captured_cb) pCallback;
                break;
        case VP_MM_PLAYER_MISSED_PLUGIN_CB:
                pMMPlayer->pCbFunc->pMissedPluginCb =
-                       (vp_mm_player_missed_plugin_cb) pCallback;
+                   (vp_mm_player_missed_plugin_cb) pCallback;
                break;
        case VP_MM_PLAYER_IMAGE_BUFFER_CB:
                pMMPlayer->pCbFunc->pImageBufferCb =
-                       (vp_mm_player_image_buffer_updated_cb) pCallback;
+                   (vp_mm_player_image_buffer_updated_cb) pCallback;
                break;
        default:
                VideoLogError("Unknown Callback type : %d", nCallbackType);
@@ -1679,7 +1681,7 @@ bool vp_mm_player_set_callback(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_set_user_param(mm_player_handle pPlayerHandle,
-                                void *pParam)
+                                 void *pParam)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -1691,7 +1693,7 @@ bool vp_mm_player_set_user_param(mm_player_handle pPlayerHandle,
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        pMMPlayer->pParam = pParam;
 
@@ -1707,7 +1709,7 @@ bool vp_mm_player_play(mm_player_handle pPlayerHandle)
 
        VideoLogWarning("");
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -1739,7 +1741,7 @@ bool vp_mm_player_stop(mm_player_handle pPlayerHandle)
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -1771,7 +1773,7 @@ bool vp_mm_player_pause(mm_player_handle pPlayerHandle)
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -1797,14 +1799,14 @@ bool vp_mm_player_pause(mm_player_handle pPlayerHandle)
 }
 
 bool vp_mm_player_get_state(mm_player_handle pPlayerHandle,
-                           vp_mm_player_state_t *nState)
+                            vp_mm_player_state_t *nState)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
        player_state_e nPlayerState = PLAYER_STATE_NONE;
 
        int nRet = player_get_state(pMMPlayer->pPlayer, &nPlayerState);
@@ -1820,14 +1822,14 @@ bool vp_mm_player_get_state(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_get_position(mm_player_handle pPlayerHandle,
-                              int *nPosition)
+                               int *nPosition)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -1854,14 +1856,14 @@ bool vp_mm_player_get_position(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_set_position(mm_player_handle pPlayerHandle,
-                              int nPosition)
+                               int nPosition)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -1879,9 +1881,9 @@ bool vp_mm_player_set_position(mm_player_handle pPlayerHandle,
        }
 #if 1                          //#ifdef USE_I_FRAMESEKK        //fix. because of changing API
        int nRet =
-               player_set_play_position(pMMPlayer->pPlayer, nPosition, TRUE,
-                                        __vp_mm_player_seek_completed_cb,
-                                        (void *) pMMPlayer);
+           player_set_play_position(pMMPlayer->pPlayer, nPosition, TRUE,
+                                    __vp_mm_player_seek_completed_cb,
+                                    (void *) pMMPlayer);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_set_position fail : %d", nRet);
@@ -1889,9 +1891,9 @@ bool vp_mm_player_set_position(mm_player_handle pPlayerHandle,
        }
 #else
        int nRet =
-               player_set_position(pMMPlayer->pPlayer, nPosition,
-                                   __vp_mm_player_seek_completed_cb,
-                                   (void *) pMMPlayer);
+           player_set_position(pMMPlayer->pPlayer, nPosition,
+                               __vp_mm_player_seek_completed_cb,
+                               (void *) pMMPlayer);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_set_position fail : %d", nRet);
@@ -1903,14 +1905,14 @@ bool vp_mm_player_set_position(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_set_position_by_key_frame(mm_player_handle
-               pPlayerHandle, int nPosition)
+        pPlayerHandle, int nPosition)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -1928,9 +1930,9 @@ bool vp_mm_player_set_position_by_key_frame(mm_player_handle
        }
 #if 1                          //#ifdef USE_I_FRAMESEKK        //fix. because of changing API
        int nRet =
-               player_set_play_position(pMMPlayer->pPlayer, nPosition, FALSE,
-                                        __vp_mm_player_seek_completed_cb,
-                                        (void *) pMMPlayer);
+           player_set_play_position(pMMPlayer->pPlayer, nPosition, FALSE,
+                                    __vp_mm_player_seek_completed_cb,
+                                    (void *) pMMPlayer);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_set_position fail : %d", nRet);
@@ -1938,9 +1940,9 @@ bool vp_mm_player_set_position_by_key_frame(mm_player_handle
        }
 #else
        int nRet =
-               player_set_position(pMMPlayer->pPlayer, nPosition,
-                                   __vp_mm_player_seek_completed_cb,
-                                   (void *) pMMPlayer);
+           player_set_position(pMMPlayer->pPlayer, nPosition,
+                               __vp_mm_player_seek_completed_cb,
+                               (void *) pMMPlayer);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_set_position fail : %d", nRet);
@@ -1952,14 +1954,14 @@ bool vp_mm_player_set_position_by_key_frame(mm_player_handle
 
 
 bool vp_mm_player_get_buffering_position(mm_player_handle pPlayerHandle,
-               int *nPosition)
+        int *nPosition)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -1973,12 +1975,12 @@ bool vp_mm_player_get_buffering_position(mm_player_handle pPlayerHandle,
        int nStart = 0;
        int nCurrent = 0;
        int nRet =
-               player_get_streaming_download_progress(pMMPlayer->pPlayer,
-                               &nStart, &nCurrent);
+           player_get_streaming_download_progress(pMMPlayer->pPlayer,
+                   &nStart, &nCurrent);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_get_streaming_download_progress fail : %d",
-                             nRet);
+                             nRet);
                return FALSE;
        }
 
@@ -1994,7 +1996,7 @@ bool vp_mm_player_set_scaling(mm_player_handle pPlayerHandle, bool bScale)
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2018,7 +2020,7 @@ bool vp_mm_player_set_loop(mm_player_handle pPlayerHandle, bool bLoop)
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2044,7 +2046,7 @@ bool vp_mm_player_set_mute(mm_player_handle pPlayerHandle, bool bMute)
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2076,7 +2078,7 @@ bool vp_mm_player_get_mute(mm_player_handle pPlayerHandle, bool *bMute)
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2102,14 +2104,14 @@ bool vp_mm_player_get_mute(mm_player_handle pPlayerHandle, bool *bMute)
 }
 
 bool vp_mm_player_get_duration(mm_player_handle pPlayerHandle,
-                              int *nDuration)
+                               int *nDuration)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2136,14 +2138,14 @@ bool vp_mm_player_get_duration(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_get_codecinfo(mm_player_handle pPlayerHandle,
-                               char **audio_codec, char **video_codec)
+                                char **audio_codec, char **video_codec)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2156,8 +2158,8 @@ bool vp_mm_player_get_codecinfo(mm_player_handle pPlayerHandle,
        }
 
        int nRet =
-               player_get_codec_info(pMMPlayer->pPlayer, audio_codec,
-                                     video_codec);
+           player_get_codec_info(pMMPlayer->pPlayer, audio_codec,
+                                 video_codec);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_get_codec_info fail : %d", nRet);
@@ -2169,14 +2171,14 @@ bool vp_mm_player_get_codecinfo(mm_player_handle pPlayerHandle,
 
 
 bool vp_mm_player_set_video_sink(mm_player_handle pPlayerHandle,
-                                int nType, void *pSink)
+                                 int nType, void *pSink)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2198,14 +2200,14 @@ bool vp_mm_player_set_video_sink(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_set_video_rotate(mm_player_handle pPlayerHandle,
-                                  int nRotate)
+                                   int nRotate)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2230,22 +2232,22 @@ bool vp_mm_player_set_video_rotate(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_set_display_mode(mm_player_handle pPlayerHandle,
-                                  vp_mm_player_display_mode_t
-                                  nDisplayMode)
+                                   vp_mm_player_display_mode_t
+                                   nDisplayMode)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
                return FALSE;
        }
        int nMode =
-               _vp_mm_player_priv_convert_display_mode(nDisplayMode, FALSE);
+           _vp_mm_player_priv_convert_display_mode(nDisplayMode, FALSE);
        int nRet = player_set_display_mode(pMMPlayer->pPlayer, nMode);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
@@ -2259,14 +2261,14 @@ bool vp_mm_player_set_display_mode(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_get_resolution(mm_player_handle pPlayerHandle,
-                                int *nWidth, int *nHeight)
+                                 int *nWidth, int *nHeight)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->bIsRealize == FALSE) {
                VideoLogError("Not realized");
@@ -2289,7 +2291,7 @@ bool vp_mm_player_get_resolution(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_set_subtitle_url(mm_player_handle pPlayerHandle,
-                                  char *szSubtitlePath)
+                                   char *szSubtitlePath)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -2301,7 +2303,7 @@ bool vp_mm_player_set_subtitle_url(mm_player_handle pPlayerHandle,
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2314,7 +2316,7 @@ bool vp_mm_player_set_subtitle_url(mm_player_handle pPlayerHandle,
        }
 
        int nRet =
-               player_set_subtitle_path(pMMPlayer->pPlayer, szSubtitlePath);
+           player_set_subtitle_path(pMMPlayer->pPlayer, szSubtitlePath);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_set_subtitle_path fail : %d", nRet);
@@ -2327,14 +2329,14 @@ bool vp_mm_player_set_subtitle_url(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_get_subtitle_url(mm_player_handle pPlayerHandle,
-                                  char **szSubtitlePath)
+                                   char **szSubtitlePath)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->szSubtitleURL == NULL) {
                VideoLogError("pMMPlayer->szSubtitleURL is NULL");
@@ -2347,15 +2349,15 @@ bool vp_mm_player_get_subtitle_url(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_set_subtitle_font(mm_player_handle pPlayerHandle,
-                                   char *szFamilyName, char *szStyle,
-                                   int nSize)
+                                    char *szFamilyName, char *szStyle,
+                                    int nSize)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (szFamilyName == NULL) {
                VideoLogError("Invalid szFamilyName info");
@@ -2397,15 +2399,15 @@ bool vp_mm_player_set_subtitle_font(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_set_subtitle_font_color(mm_player_handle pPlayerHandle,
-               unsigned int nForegroundColor,
-               unsigned int nBGColor)
+        unsigned int nForegroundColor,
+        unsigned int nBGColor)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2426,15 +2428,15 @@ bool vp_mm_player_set_subtitle_font_color(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_subtitle_ignore_markup_tags(mm_player_handle
-               pPlayerHandle,
-               bool bIgnoreMarkup)
+        pPlayerHandle,
+        bool bIgnoreMarkup)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2445,16 +2447,16 @@ bool vp_mm_player_subtitle_ignore_markup_tags(mm_player_handle
 }
 
 bool vp_mm_player_subtitle_set_alignment_in_line(mm_player_handle
-               pPlayerHandle,
-               vp_mm_player_subtitle_halign_t
-               type)
+        pPlayerHandle,
+        vp_mm_player_subtitle_halign_t
+        type)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2465,16 +2467,16 @@ bool vp_mm_player_subtitle_set_alignment_in_line(mm_player_handle
 }
 
 bool vp_mm_player_subtitle_set_alignment_horizontal(mm_player_handle
-               pPlayerHandle,
-               vp_mm_player_subtitle_halign_t
-               type)
+        pPlayerHandle,
+        vp_mm_player_subtitle_halign_t
+        type)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2485,14 +2487,14 @@ bool vp_mm_player_subtitle_set_alignment_horizontal(mm_player_handle
 }
 
 bool vp_mm_player_subtitle_apply_alignment_right_away(mm_player_handle
-               pPlayerHandle)
+        pPlayerHandle)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2503,14 +2505,14 @@ bool vp_mm_player_subtitle_apply_alignment_right_away(mm_player_handle
 }
 
 bool vp_mm_player_set_subtitle_position(mm_player_handle pPlayerHandle,
-                                       int nPosition)
+                                        int nPosition)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2523,8 +2525,8 @@ bool vp_mm_player_set_subtitle_position(mm_player_handle pPlayerHandle,
        }
 
        int nRet =
-               player_set_subtitle_position_offset(pMMPlayer->pPlayer,
-                               nPosition);
+           player_set_subtitle_position_offset(pMMPlayer->pPlayer,
+                                               nPosition);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_set_subtitle_position fail : %d", nRet);
@@ -2536,14 +2538,14 @@ bool vp_mm_player_set_subtitle_position(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_set_deactivate_subtitle(mm_player_handle pPlayerHandle,
-               bool bDeactivate)
+        bool bDeactivate)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        pMMPlayer->bDeactivateSubtitle = bDeactivate;
 
@@ -2553,14 +2555,14 @@ bool vp_mm_player_set_deactivate_subtitle(mm_player_handle pPlayerHandle,
 
 
 bool vp_mm_player_set_volume(mm_player_handle pPlayerHandle, float fLeft,
-                            float fRight)
+                             float fRight)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2583,14 +2585,14 @@ bool vp_mm_player_set_volume(mm_player_handle pPlayerHandle, float fLeft,
 }
 
 bool vp_mm_player_get_volume(mm_player_handle pPlayerHandle, float *fLeft,
-                            float *fRight)
+                             float *fRight)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2606,7 +2608,7 @@ bool vp_mm_player_get_volume(mm_player_handle pPlayerHandle, float *fLeft,
        float fRightVal = 0.0;
 
        int nRet =
-               player_get_volume(pMMPlayer->pPlayer, &fLeftVal, &fRightVal);
+           player_get_volume(pMMPlayer->pPlayer, &fLeftVal, &fRightVal);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_get_volume fail : %d", nRet);
@@ -2620,7 +2622,7 @@ bool vp_mm_player_get_volume(mm_player_handle pPlayerHandle, float *fLeft,
 }
 
 bool vp_mm_player_set_sound_filter(mm_player_handle pPlayerHandle,
-                                  vp_mm_player_sound_filter_t nFilter)
+                                   vp_mm_player_sound_filter_t nFilter)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -2657,14 +2659,14 @@ bool vp_mm_player_set_sound_filter(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_get_sound_filter(mm_player_handle pPlayerHandle,
-                                  vp_mm_player_sound_filter_t *nFilter)
+                                   vp_mm_player_sound_filter_t *nFilter)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        *nFilter = pMMPlayer->nSoundFilter;
 
@@ -2679,7 +2681,7 @@ bool vp_mm_player_capture_start(mm_player_handle pPlayerHandle)
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2693,9 +2695,9 @@ bool vp_mm_player_capture_start(mm_player_handle pPlayerHandle)
 
 
        int nRet =
-               player_capture_video(pMMPlayer->pPlayer,
-                                    __vp_mm_player_video_captured_cb,
-                                    (void *) pMMPlayer);
+           player_capture_video(pMMPlayer->pPlayer,
+                                __vp_mm_player_video_captured_cb,
+                                (void *) pMMPlayer);
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_capture_video fail : %d", nRet);
@@ -2712,7 +2714,7 @@ bool vp_mm_player_is_closed_caption_exist(mm_player_handle pPlayerHandle)
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (pMMPlayer->pPlayer == NULL) {
                VideoLogError("Player Handle is NULL");
@@ -2735,7 +2737,7 @@ bool vp_mm_player_is_closed_caption_exist(mm_player_handle pPlayerHandle)
 }
 
 bool vp_mm_player_get_audio_track_count(mm_player_handle pPlayerHandle,
-                                       int *nCount)
+                                        int *nCount)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -2759,8 +2761,8 @@ bool vp_mm_player_get_audio_track_count(mm_player_handle pPlayerHandle,
 
 
 bool vp_mm_player_get_audio_track_language_code(mm_player_handle
-               pPlayerHandle, int nIndex,
-               char **szCode)
+        pPlayerHandle, int nIndex,
+        char **szCode)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -2785,7 +2787,7 @@ bool vp_mm_player_get_audio_track_language_code(mm_player_handle
 
 
 bool vp_mm_player_set_audio_track(mm_player_handle pPlayerHandle,
-                                 int nIndex)
+                                  int nIndex)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -2805,7 +2807,7 @@ bool vp_mm_player_set_audio_track(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_get_subtitle_track_count(mm_player_handle pPlayerHandle,
-               int *nCount)
+        int *nCount)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -2830,9 +2832,9 @@ bool vp_mm_player_get_subtitle_track_count(mm_player_handle pPlayerHandle,
 
 
 bool vp_mm_player_get_subtitle_track_language_code(mm_player_handle
-               pPlayerHandle,
-               int nIndex,
-               char **szCode)
+        pPlayerHandle,
+        int nIndex,
+        char **szCode)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -2858,7 +2860,7 @@ bool vp_mm_player_get_subtitle_track_language_code(mm_player_handle
 
 
 bool vp_mm_player_set_subtitle_track(mm_player_handle pPlayerHandle,
-                                    int nIndex)
+                                     int nIndex)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -2879,7 +2881,7 @@ bool vp_mm_player_set_subtitle_track(mm_player_handle pPlayerHandle,
 
 #ifdef _SUBTITLE_MULTI_LANGUAGE
 bool vp_mm_player_add_subtitle_language(mm_player_handle pPlayerHandle,
-                                       int nIndex)
+                                        int nIndex)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -2898,7 +2900,7 @@ bool vp_mm_player_add_subtitle_language(mm_player_handle pPlayerHandle,
 }
 
 bool vp_mm_player_remove_subtitle_language(mm_player_handle pPlayerHandle,
-               int nIndex)
+        int nIndex)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -2918,9 +2920,9 @@ bool vp_mm_player_remove_subtitle_language(mm_player_handle pPlayerHandle,
 
 bool
 vp_mm_player_track_foreach_selected_subtitle_language(mm_player_handle
-               pPlayerHandle,
-               void *pCallback,
-               void *pUserData)
+        pPlayerHandle,
+        void *pCallback,
+        void *pUserData)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -2939,7 +2941,7 @@ vp_mm_player_track_foreach_selected_subtitle_language(mm_player_handle
 }
 #endif
 bool vp_mm_player_set_cookie(mm_player_handle pPlayerHandle,
-                            const char *szCookie)
+                             const char *szCookie)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -2952,11 +2954,11 @@ bool vp_mm_player_set_cookie(mm_player_handle pPlayerHandle,
        }
 
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        int nRet =
-               player_set_streaming_cookie(pMMPlayer->pPlayer, szCookie,
-                                           strlen(szCookie));
+           player_set_streaming_cookie(pMMPlayer->pPlayer, szCookie,
+                                       strlen(szCookie));
        if (nRet != PLAYER_ERROR_NONE) {
                _vp_mm_player_print_err(nRet);
                VideoLogError("player_select_track fail : %d", nRet);
@@ -2968,7 +2970,7 @@ bool vp_mm_player_set_cookie(mm_player_handle pPlayerHandle,
 
 
 bool vp_mm_player_set_proxy(mm_player_handle pPlayerHandle,
-                           const char *szProxy)
+                            const char *szProxy)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -3005,7 +3007,7 @@ bool vp_mm_player_set_rate(mm_player_handle pPlayerHandle, float fRate)
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        if (fRate < 0.5 || fRate > 1.5) {
                VideoLogError("Invalid Param : %f", fRate);
@@ -3025,7 +3027,7 @@ bool vp_mm_player_set_rate(mm_player_handle pPlayerHandle, float fRate)
 }
 
 bool vp_mm_player_set_zoom(mm_player_handle pPlayerHandle, float fZoom,
-                          int nPosX, int nPosY)
+                           int nPosX, int nPosY)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
@@ -3043,14 +3045,14 @@ bool vp_mm_player_set_zoom(mm_player_handle pPlayerHandle, float fZoom,
 }
 
 bool vp_mm_player_get_zoom_start_position(mm_player_handle pPlayerHandle,
-               int *nPosX, int *nPosY)
+        int *nPosX, int *nPosY)
 {
        if (pPlayerHandle == NULL) {
                VideoLogError("pPlayerHandle is NULL");
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        *nPosX = pMMPlayer->nZoomPosX;
        *nPosY = pMMPlayer->nZoomPosY;
@@ -3059,7 +3061,7 @@ bool vp_mm_player_get_zoom_start_position(mm_player_handle pPlayerHandle,
 
 
 bool vp_mm_player_set_visible(mm_player_handle pPlayerHandle,
-                             bool bVisible)
+                              bool bVisible)
 {
 
        if (pPlayerHandle == NULL) {
@@ -3067,7 +3069,7 @@ bool vp_mm_player_set_visible(mm_player_handle pPlayerHandle,
                return FALSE;
        }
 
-       MMPlayer *pMMPlayer = (MMPlayer *) pPlayerHandle;
+       MMPlayer *pMMPlayer = (MMPlayer *)pPlayerHandle;
 
        int nRet = player_set_display_visible(pMMPlayer->pPlayer, bVisible);
        if (nRet != PLAYER_ERROR_NONE) {
@@ -3082,7 +3084,7 @@ bool vp_mm_player_set_visible(mm_player_handle pPlayerHandle,
 
 
 bool vp_mm_player_set_hub_download_mode(mm_player_handle pPlayerHandle,
-                                       bool bDownload)
+                                        bool bDownload)
 {
 
        if (pPlayerHandle == NULL) {
index 86e56f3..485b7db 100644 (file)
@@ -43,7 +43,7 @@ typedef struct _MultiPath {
 
 /* internal functions */
 static bool _vp_multi_path_write_multi_path_set_position(char *szURL,
-               int nPosition)
+                        int nPosition)
 {
        FILE *fp = fopen(VP_PLAY_MULTIPATH_INI_PATH, "w");
 
@@ -64,10 +64,10 @@ static bool _vp_multi_path_write_multi_path_set_position(char *szURL,
 
 /* external functions */
 bool vp_multi_path_add_item(GList **pList,
-                           const char *szURL,
-                           char *szTitle,
-                           char *szSubTitle,
-                           int nPosition, int nDuration, bool bIsSameAP)
+                            const char *szURL,
+                            char *szTitle,
+                            char *szSubTitle,
+                            int nPosition, int nDuration, bool bIsSameAP)
 {
        if (!szURL) {
                VideoLogError("szURL is NULL");
@@ -136,7 +136,7 @@ bool vp_multi_path_clear_item(GList *pList)
 }
 
 bool vp_multi_path_set_item_subtitle(const char *szMediaURL,
-                                    char *szSubtitleURL, GList *pList)
+                                     char *szSubtitleURL, GList *pList)
 {
        if (!pList) {
                VideoLogError("pList is NULL");
@@ -171,7 +171,7 @@ bool vp_multi_path_set_item_subtitle(const char *szMediaURL,
 }
 
 bool vp_multi_path_set_item_position(const char *szMediaURL,
-                                    int nPosition, GList *pList)
+                                     int nPosition, GList *pList)
 {
        if (!pList) {
                VideoLogError("pList is NULL");
@@ -199,8 +199,8 @@ bool vp_multi_path_set_item_position(const char *szMediaURL,
                if (!strcmp(szMediaURL, pPath->szURL)) {
                        pPath->nStartPosition = nPosition;
                        _vp_multi_path_write_multi_path_set_position((char *)
-                                       szMediaURL,
-                                       nPosition);
+                               szMediaURL,
+                               nPosition);
                }
        }
 
@@ -208,9 +208,9 @@ bool vp_multi_path_set_item_position(const char *szMediaURL,
 }
 
 bool vp_multi_path_get_current_item(const char *szMediaURL, char **szURL,
-                                   char **szTitle, char **szSubtitle,
-                                   int *nPosition, int *nDuration,
-                                   bool *bIsSameAP, GList *pList)
+                                    char **szTitle, char **szSubtitle,
+                                    int *nPosition, int *nDuration,
+                                    bool *bIsSameAP, GList *pList)
 {
        if (!szMediaURL) {
                VideoLogError("No exist szMediaID.");
@@ -254,9 +254,9 @@ bool vp_multi_path_get_current_item(const char *szMediaURL, char **szURL,
 
 
 bool vp_multi_path_get_next_item(const char *szMediaURL, char **szURL,
-                                char **szSubtitle, int *nPosition,
-                                int *nDuration, bool bLoop,
-                                GList *pList)
+                                 char **szSubtitle, int *nPosition,
+                                 int *nDuration, bool bLoop,
+                                 GList *pList)
 {
        if (!szMediaURL) {
                VideoLogError("No exist szMediaID.");
@@ -316,9 +316,9 @@ bool vp_multi_path_get_next_item(const char *szMediaURL, char **szURL,
 }
 
 bool vp_multi_path_get_prev_item(const char *szMediaURL, char **szURL,
-                                char **szSubtitle, int *nPosition,
-                                int *nDuration, bool bLoop,
-                                GList *pList)
+                                 char **szSubtitle, int *nPosition,
+                                 int *nDuration, bool bLoop,
+                                 GList *pList)
 {
        if (!szMediaURL) {
                VideoLogError("No exist szMediaID.");
index eab795e..f512d9f 100644 (file)
@@ -43,8 +43,8 @@ static void _vp_sensor_destroy_handle(SensorHandle *pSensorHandle);
 
 /* callback functions */
 static void __vp_sensor_motion_doubletap_event_cb(unsigned long long
-               timestamp,
-               void *pUserData)
+                timestamp,
+                void *pUserData)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -54,14 +54,14 @@ static void __vp_sensor_motion_doubletap_event_cb(unsigned long long
        SensorHandle *pSensor = (SensorHandle *) pUserData;
        if (pSensor->pEventCb) {
                pSensor->pEventCb(VP_SENSOR_TYPE_DOUBLETAP, timestamp,
-                                 pSensor->pUserData);
+                                 pSensor->pUserData);
        }
 
 }
 
 static void __vp_sensor_motion_facedown_event_cb(unsigned long long
-               timestamp,
-               void *pUserData)
+                timestamp,
+                void *pUserData)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -72,7 +72,7 @@ static void __vp_sensor_motion_facedown_event_cb(unsigned long long
 
        if (pSensor->pEventCb) {
                pSensor->pEventCb(VP_SENSOR_TYPE_FACEDOWN, timestamp,
-                                 pSensor->pUserData);
+                                 pSensor->pUserData);
        }
 }
 
@@ -171,12 +171,12 @@ bool vp_sensor_realize(sensor_handle pSensorHandle)
 
        if (bEnableSensor) {
                nRet =
-                       sensor_motion_doubletap_set_cb(pSensor->pSensorH,
-                                                      __vp_sensor_motion_doubletap_event_cb,
-                                                      (void *) pSensor);
+                   sensor_motion_doubletap_set_cb(pSensor->pSensorH,
+                                                  __vp_sensor_motion_doubletap_event_cb,
+                                                  (void *) pSensor);
                if (nRet != SENSOR_ERROR_NONE) {
                        VideoLogInfo("sensor_motion_doubletap_set_cb is fail : 0x%x",
-                                    nRet);
+                                    nRet);
                        bReturn = FALSE;
                }
 
@@ -195,12 +195,12 @@ bool vp_sensor_realize(sensor_handle pSensorHandle)
        }
        if (bEnableSensor) {
                nRet =
-                       sensor_motion_facedown_set_cb(pSensor->pSensorH,
-                                                     __vp_sensor_motion_facedown_event_cb,
-                                                     (void *) pSensor);
+                   sensor_motion_facedown_set_cb(pSensor->pSensorH,
+                                                 __vp_sensor_motion_facedown_event_cb,
+                                                 (void *) pSensor);
                if (nRet != SENSOR_ERROR_NONE) {
                        VideoLogInfo("sensor_motion_facedown_set_cb is fail : 0x%x",
-                                    nRet);
+                                    nRet);
                        bReturn = FALSE;
                }
 
@@ -256,7 +256,7 @@ bool vp_sensor_unrealize(sensor_handle pSensorHandle)
                nRet = sensor_motion_facedown_unset_cb(pSensor->pSensorH);
                if (nRet != SENSOR_ERROR_NONE) {
                        VideoLogInfo("sensor_motion_facedown_unset_cb is fail : 0x%x",
-                                    nRet);
+                                    nRet);
                        bReturn = FALSE;
                }
 
index 70d09c0..68d04f8 100644 (file)
@@ -40,9 +40,9 @@ bool vp_sound_init_session()
        }
 
        nRet =
-               sound_manager_set_media_session_option
-               (SOUND_SESSION_OPTION_PAUSE_OTHERS_WHEN_START,
-                SOUND_SESSION_OPTION_INTERRUPTIBLE_DURING_PLAY);
+           sound_manager_set_media_session_option
+           (SOUND_SESSION_OPTION_PAUSE_OTHERS_WHEN_START,
+            SOUND_SESSION_OPTION_INTERRUPTIBLE_DURING_PLAY);
        if (nRet != SOUND_MANAGER_ERROR_NONE) {
                VideoLogError("sound_manager_set_media_session_option fail");
                return FALSE;
@@ -139,21 +139,22 @@ bool vp_sound_get_active_device(video_sound_device_type_t *nDeviceType)
        sound_device_type_e type = SOUND_DEVICE_BUILTIN_SPEAKER;
        sound_device_list_h g_device_list = NULL;
        sound_device_mask_e g_device_mask =
-               SOUND_DEVICE_IO_DIRECTION_OUT_MASK;
+           SOUND_DEVICE_IO_DIRECTION_OUT_MASK;
 //              WARN_TRACE("Enter sound_manager_get_active_device");
        int ret;
        if ((ret =
-                               sound_manager_get_current_device_list(g_device_mask,
-                                               &g_device_list)))
+                   sound_manager_get_current_device_list(g_device_mask,
+                           &g_device_list)))
 //                      ERROR_TRACE("sound_manager_get_active_device()... [0x%x]", ret);
 
 
                if (!
-                               (ret =
-                                        sound_manager_get_next_device(g_device_list, &device))) {
+                       (ret =
+                            sound_manager_get_next_device(g_device_list, &device))) {
 //                   ERROR_TRACE("success to get next device\n");
-                       if ((ret = sound_manager_get_device_type(device, &type)))
+                       if ((ret = sound_manager_get_device_type(device, &type))) {
                                return FALSE;
+                       }
                }
 
 
@@ -201,13 +202,14 @@ bool vp_sound_is_sound_path_enable(bool *bIsSoundPath)
        sound_device_type_e type;
        sound_device_list_h g_device_list = NULL;
        sound_device_mask_e g_device_mask =
-               SOUND_DEVICE_IO_DIRECTION_OUT_MASK;
+           SOUND_DEVICE_IO_DIRECTION_OUT_MASK;
 
        int ret;
        if ((ret =
-                               sound_manager_get_current_device_list(g_device_mask,
-                                               &g_device_list)))
+                   sound_manager_get_current_device_list(g_device_mask,
+                           &g_device_list))) {
                return bConnected;
+       }
 
        while (!(ret = sound_manager_get_next_device(g_device_list, &device))) {
                if ((ret = sound_manager_get_device_type(device, &type))) {
@@ -258,9 +260,9 @@ COUNT_CHECK:
 }
 
 sound_device_connected_cb vp_audio_jack_connected_cb(sound_device_h
-               device,
-               bool is_connected,
-               void *user_data)
+                                device,
+                                bool is_connected,
+                                void *user_data)
 {
        if (!user_data) {
                return NULL;
@@ -269,18 +271,19 @@ sound_device_connected_cb vp_audio_jack_connected_cb(sound_device_h
        void *pPlayview = NULL;
        pPlayview = user_data;
        if (sound_manager_get_device_type(device, &type) ==
-                       SOUND_MANAGER_ERROR_NONE) {
+               SOUND_MANAGER_ERROR_NONE) {
                if (type == SOUND_DEVICE_AUDIO_JACK) {
                        vp_play_normal_view_show_volume_popup(pPlayview);
-                       if (!is_connected)
+                       if (!is_connected) {
                                vp_play_normal_view_pause_player(pPlayview);
+                       }
                }
        }
        return NULL;
 }
 
 bool vp_sound_device_is_enable(video_sound_device_type_t nDeviceType,
-                              void *pUserdata)
+                               void *pUserdata)
 {
        if (!pUserdata) {
                return FALSE;
@@ -291,11 +294,12 @@ bool vp_sound_device_is_enable(video_sound_device_type_t nDeviceType,
        sound_device_type_e type;
        sound_device_list_h g_device_list = NULL;
        sound_device_mask_e g_device_mask =
-               SOUND_DEVICE_IO_DIRECTION_OUT_MASK;
+           SOUND_DEVICE_IO_DIRECTION_OUT_MASK;
 
        if (sound_manager_get_current_device_list
-                       (g_device_mask, &g_device_list) != SOUND_MANAGER_ERROR_NONE)
+               (g_device_mask, &g_device_list) != SOUND_MANAGER_ERROR_NONE) {
                return FALSE;
+       }
 
        sound_manager_set_device_connected_cb
        (SOUND_DEVICE_IO_DIRECTION_OUT_MASK,
@@ -303,11 +307,12 @@ bool vp_sound_device_is_enable(video_sound_device_type_t nDeviceType,
         (void *) pPlayview);
 
        while (sound_manager_get_next_device(g_device_list, &device) ==
-                       SOUND_MANAGER_ERROR_NONE) {
+               SOUND_MANAGER_ERROR_NONE) {
                if (sound_manager_get_device_type(device, &type) ==
-                               SOUND_MANAGER_ERROR_NONE) {
-                       if (type == SOUND_DEVICE_AUDIO_JACK)
+                       SOUND_MANAGER_ERROR_NONE) {
+                       if (type == SOUND_DEVICE_AUDIO_JACK) {
                                return TRUE;
+                       }
                }
        }
 
@@ -415,18 +420,18 @@ bool vp_sound_set_active_route(video_sound_device_type_t nDeviceType)
 }
 
 bool vp_sound_set_route_change_cb(vp_sound_route_change_cb func,
-                                 void *pUserData)
+                                  void *pUserData)
 {
        int nRet = SOUND_MANAGER_ERROR_NONE;
 
        //nRet = sound_manager_set_available_route_changed_cb((sound_available_route_changed_cb), pUserData);
 
        sound_device_mask_e g_device_mask =
-               SOUND_DEVICE_IO_DIRECTION_OUT_MASK;
+           SOUND_DEVICE_IO_DIRECTION_OUT_MASK;
 
        nRet =
-               sound_manager_set_device_information_changed_cb(g_device_mask,
-                               NULL, pUserData);
+           sound_manager_set_device_information_changed_cb(g_device_mask,
+                   NULL, pUserData);
        if (nRet != SOUND_MANAGER_ERROR_NONE) {
                VideoLogError
                ("sound_manager_set_available_route_changed_cb fail");
@@ -436,12 +441,12 @@ bool vp_sound_set_route_change_cb(vp_sound_route_change_cb func,
 }
 
 bool vp_sound_set_volume_change_cb(vp_sound_volume_change_cb func,
-                                  void *pUserData)
+                                   void *pUserData)
 {
        int nRet = SOUND_MANAGER_ERROR_NONE;
 
        nRet =
-               sound_manager_set_volume_changed_cb((sound_manager_volume_changed_cb) func, pUserData);
+           sound_manager_set_volume_changed_cb((sound_manager_volume_changed_cb) func, pUserData);
        if (nRet != SOUND_MANAGER_ERROR_NONE) {
                VideoLogError("sound_manager_set_volume_changed_cb fail");
                return FALSE;
index 772858a..01e0179 100644 (file)
@@ -106,21 +106,20 @@ typedef struct _AudioTrackPopup {
 
 static void _vp_audio_track_destroy_handle(AudioTrackPopup *pAudioTrack);
 static void __vp_audio_track_popup_rotate_cb(void *data,
-               Evas_Object *obj,
-               void *event_info);
+                        Evas_Object *obj,
+                        void *event_info);
 static void __vp_audio_track_genlist_realized(void *data,
-               Evas_Object *obj,
-               void *event_info);
+                        Evas_Object *obj,
+                        void *event_info);
 static void __vp_audio_track_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo);
+                        Evas_Object *pObject,
+                        void *pEventInfo);
 
 
 /* callback functions */
 static char *__vp_audio_track_genlist_text_get_cb(const void *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+        Evas_Object *pObj,
+        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -138,11 +137,9 @@ static char *__vp_audio_track_genlist_text_get_cb(const void *pUserData,
 }
 
 static Evas_Object *__vp_audio_track_genlist_content_get_cb(const void
-               *pUserData,
-               Evas_Object *
-               pObj,
-               const char
-               *pPart)
+                                *pUserData,
+                                Evas_Object *pObj,
+                                const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -155,8 +152,8 @@ static Evas_Object *__vp_audio_track_genlist_content_get_cb(const void
                Evas_Object *pRadioObj = NULL;
 
                AudioTrackPopup *pAudioTrack =
-                       (AudioTrackPopup *) evas_object_data_get(pObj,
-                                       VP_AUDIO_TRACK_GENLIST_DATA_KEY);
+                   (AudioTrackPopup *) evas_object_data_get(pObj,
+                           VP_AUDIO_TRACK_GENLIST_DATA_KEY);
                if (pAudioTrack == NULL) {
                        VideoLogWarning("evas_object_data_get is fail");
                        return NULL;
@@ -171,10 +168,10 @@ static Evas_Object *__vp_audio_track_genlist_content_get_cb(const void
                elm_radio_state_value_set(pRadioObj, pItem->nIndex);
                elm_radio_group_add(pRadioObj, pAudioTrack->pRadio);
                elm_radio_value_set(pAudioTrack->pRadio,
-                                   pAudioTrack->nAudoTrackIdx);
+                                   pAudioTrack->nAudoTrackIdx);
                evas_object_smart_callback_add(pRadioObj, "changed",
-                                              __vp_audio_track_genlist_item_selected_cb,
-                                              pAudioTrack);
+                                              __vp_audio_track_genlist_item_selected_cb,
+                                              pAudioTrack);
                evas_object_show(pRadioObj);
 
                return pRadioObj;
@@ -184,9 +181,8 @@ static Evas_Object *__vp_audio_track_genlist_content_get_cb(const void
 }
 
 static void __vp_audio_track_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo)
+                                Evas_Object *pObject,
+                                void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -199,12 +195,12 @@ static void __vp_audio_track_genlist_item_selected_cb(void *pUserData,
 
        Elm_Object_Item *pElmItem = (Elm_Object_Item *) pEventInfo;
        Elm_Object_Item *pSelectedItem =
-               elm_genlist_selected_item_get(pObject);
+           elm_genlist_selected_item_get(pObject);
        if (pSelectedItem) {
                elm_genlist_item_selected_set(pSelectedItem, EINA_FALSE);
        }
        AudioTrackItem *pItem =
-               (AudioTrackItem *) elm_object_item_data_get(pElmItem);
+           (AudioTrackItem *) elm_object_item_data_get(pElmItem);
 
        AudioTrackPopup *pAudioTrack = (AudioTrackPopup *) pUserData;
 
@@ -216,13 +212,13 @@ static void __vp_audio_track_genlist_item_selected_cb(void *pUserData,
        pAudioTrack->nAudoTrackIdx = pItem->nIndex;
        if (pAudioTrack->pCloseCb) {
                pAudioTrack->pCloseCb(pItem->nIndex, FALSE,
-                                     (void *) pAudioTrack->pUserData);
+                                     (void *) pAudioTrack->pUserData);
        }
 }
 
 static void __vp_audio_track_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                                Evas_Object *pObj,
+                                void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -237,9 +233,9 @@ static void __vp_audio_track_popup_key_event_cb(void *pUserData,
 }
 
 static void __vp_audio_track_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                                Evas *pEvas,
+                                Evas_Object *pObj,
+                                void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -258,7 +254,7 @@ static void __vp_audio_track_popup_mouse_event_cb(void *pUserData,
 
                if (pAudioTrack->pCloseCb) {
                        pAudioTrack->pCloseCb(-1, FALSE,
-                                             (void *) pAudioTrack->pUserData);
+                                             (void *) pAudioTrack->pUserData);
                }
        }
 }
@@ -285,8 +281,8 @@ static void _vp_audio_track_clear_item_list(AudioTrackPopup *pAudioTrack)
                AudioTrackItem *pItem = NULL;
 
                pItem =
-                       (AudioTrackItem *) g_list_nth_data(pAudioTrack->pItemList,
-                                       idx);
+                   (AudioTrackItem *) g_list_nth_data(pAudioTrack->pItemList,
+                                                      idx);
                if (pItem) {
                        VP_EVAS_ITEM_DEL(pItem->pItem);
                        VP_FREE(pItem->szName);
@@ -306,10 +302,10 @@ static void _vp_audio_track_destroy_handle(AudioTrackPopup *pAudioTrack)
        }
 
        evas_object_smart_callback_del(pAudioTrack->pGenList, "realized",
-                                      __vp_audio_track_genlist_realized);
+                                      __vp_audio_track_genlist_realized);
        evas_object_smart_callback_del(pAudioTrack->pParent,
-                                      "rotation,changed",
-                                      __vp_audio_track_popup_rotate_cb);
+                                      "rotation,changed",
+                                      __vp_audio_track_popup_rotate_cb);
 
        _vp_audio_track_clear_item_list(pAudioTrack);
 
@@ -341,7 +337,7 @@ static Evas_Object *_vp_audio_track_create_genlist(Evas_Object *pParent)
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -349,7 +345,7 @@ static Evas_Object *_vp_audio_track_create_genlist(Evas_Object *pParent)
 
 
 static bool _vp_audio_track_add_genlist_item(Evas_Object *pObj,
-               void *pUserData)
+                        void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -370,12 +366,12 @@ static bool _vp_audio_track_add_genlist_item(Evas_Object *pObj,
        }
 
        pAudioTrack->st_AudioTrack_Itc->version =
-               ELM_GENLIST_ITEM_CLASS_VERSION;
+           ELM_GENLIST_ITEM_CLASS_VERSION;
        pAudioTrack->st_AudioTrack_Itc->item_style = "1text.1icon.3/popup";
        pAudioTrack->st_AudioTrack_Itc->func.text_get =
-               (void *) __vp_audio_track_genlist_text_get_cb;
+           (void *) __vp_audio_track_genlist_text_get_cb;
        pAudioTrack->st_AudioTrack_Itc->func.content_get =
-               (void *) __vp_audio_track_genlist_content_get_cb;
+           (void *) __vp_audio_track_genlist_content_get_cb;
        pAudioTrack->st_AudioTrack_Itc->func.state_get = NULL;
        pAudioTrack->st_AudioTrack_Itc->func.del = NULL;
        int len = g_list_length(pAudioTrack->pItemList);
@@ -386,16 +382,16 @@ static bool _vp_audio_track_add_genlist_item(Evas_Object *pObj,
                AudioTrackItem *pItem = NULL;
 
                pItem =
-                       (AudioTrackItem *) g_list_nth_data(pAudioTrack->pItemList,
-                                       idx);
+                   (AudioTrackItem *) g_list_nth_data(pAudioTrack->pItemList,
+                                                      idx);
                if (pItem) {
                        pItem->pItem =
-                               elm_genlist_item_append(pObj,
-                                                       pAudioTrack->st_AudioTrack_Itc,
-                                                       (void *) pItem, NULL,
-                                                       ELM_GENLIST_ITEM_NONE,
-                                                       __vp_audio_track_genlist_item_selected_cb,
-                                                       pUserData);
+                           elm_genlist_item_append(pObj,
+                                                   pAudioTrack->st_AudioTrack_Itc,
+                                                   (void *) pItem, NULL,
+                                                   ELM_GENLIST_ITEM_NONE,
+                                                   __vp_audio_track_genlist_item_selected_cb,
+                                                   pUserData);
                        pAudioTrack->nListCount++;
                }
        }
@@ -406,15 +402,15 @@ static bool _vp_audio_track_add_genlist_item(Evas_Object *pObj,
 }
 
 static void __vp_audio_track_genlist_realized(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_audio_track_popup_rotate_cb(void *data,
-               Evas_Object *obj,
-               void *event_info)
+        Evas_Object *obj,
+        void *event_info)
 {
        AudioTrackPopup *pAudioTrack = (AudioTrackPopup *) data;
        if (!pAudioTrack) {
@@ -425,15 +421,15 @@ static void __vp_audio_track_popup_rotate_cb(void *data,
                return;
        }
        vp_popup_set_popup_min_size(pAudioTrack->pParent, pAudioTrack->pBox,
-                                   pAudioTrack->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pAudioTrack->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
 
 }
 
 /* external functions */
 audio_track_handle vp_audio_track_create(Evas_Object *pParent,
-               PopupCloseCbFunc pCloseCb,
-               int nDefaultIndex)
+                        PopupCloseCbFunc pCloseCb,
+                        int nDefaultIndex)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -453,11 +449,11 @@ audio_track_handle vp_audio_track_create(Evas_Object *pParent,
        pAudioTrack->pCloseCb = pCloseCb;
 
        pAudioTrack->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_POPUP_AUDIO_TRACK, NULL, 0.0, NULL,
-                               __vp_audio_track_popup_key_event_cb,
-                               __vp_audio_track_popup_mouse_event_cb,
-                               (void *) pAudioTrack);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_POPUP_AUDIO_TRACK, NULL, 0.0, NULL,
+                           __vp_audio_track_popup_key_event_cb,
+                           __vp_audio_track_popup_mouse_event_cb,
+                           (void *) pAudioTrack);
        if (pAudioTrack->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
                _vp_audio_track_destroy_handle(pAudioTrack);
@@ -465,23 +461,23 @@ audio_track_handle vp_audio_track_create(Evas_Object *pParent,
        }
 
        pAudioTrack->pGenList =
-               _vp_audio_track_create_genlist(pAudioTrack->pPopup);
+           _vp_audio_track_create_genlist(pAudioTrack->pPopup);
        if (pAudioTrack->pGenList == NULL) {
                VideoLogError("_vp_audio_track_create_genlist fail");
                _vp_audio_track_destroy_handle(pAudioTrack);
                return NULL;
        }
        evas_object_smart_callback_add(pAudioTrack->pGenList, "realized",
-                                      __vp_audio_track_genlist_realized,
-                                      NULL);
+                                      __vp_audio_track_genlist_realized,
+                                      NULL);
        evas_object_smart_callback_add(pAudioTrack->pParent,
-                                      "rotation,changed",
-                                      __vp_audio_track_popup_rotate_cb,
-                                      pAudioTrack);
+                                      "rotation,changed",
+                                      __vp_audio_track_popup_rotate_cb,
+                                      pAudioTrack);
 
        evas_object_data_set(pAudioTrack->pGenList,
-                            VP_AUDIO_TRACK_GENLIST_DATA_KEY,
-                            (void *) pAudioTrack);
+                            VP_AUDIO_TRACK_GENLIST_DATA_KEY,
+                            (void *) pAudioTrack);
        pAudioTrack->nDefaultIndex = nDefaultIndex;
 
        pAudioTrack->pRadio = elm_radio_add(pAudioTrack->pGenList);
@@ -517,24 +513,24 @@ bool vp_audio_track_realize(audio_track_handle pAudioTrackHandle)
        pAudioTrack->nListCount = len;
        if (len == 1) {
                vp_popup_set_popup_min_size(pAudioTrack->pParent,
-                                           pAudioTrack->pBox,
-                                           pAudioTrack->nListCount,
-                                           VIDEO_POPUP_DEFAULT);
+                                           pAudioTrack->pBox,
+                                           pAudioTrack->nListCount,
+                                           VIDEO_POPUP_DEFAULT);
                elm_scroller_policy_set(pAudioTrack->pGenList,
-                                       ELM_SCROLLER_POLICY_OFF,
-                                       ELM_SCROLLER_POLICY_OFF);
+                                       ELM_SCROLLER_POLICY_OFF,
+                                       ELM_SCROLLER_POLICY_OFF);
        } else {
                vp_popup_set_popup_min_size(pAudioTrack->pParent,
-                                           pAudioTrack->pBox,
-                                           pAudioTrack->nListCount,
-                                           VIDEO_POPUP_DEFAULT);
+                                           pAudioTrack->pBox,
+                                           pAudioTrack->nListCount,
+                                           VIDEO_POPUP_DEFAULT);
        }
 
        elm_box_pack_end(pAudioTrack->pBox, pAudioTrack->pGenList);
        elm_object_content_set(pAudioTrack->pPopup, pAudioTrack->pBox);
 
        if (!_vp_audio_track_add_genlist_item
-                       (pAudioTrack->pGenList, (void *) pAudioTrack)) {
+               (pAudioTrack->pGenList, (void *) pAudioTrack)) {
                VideoLogError("_vp_audio_track_add_genlist_item fail");
                return FALSE;
        }
@@ -563,7 +559,7 @@ bool vp_audio_track_unrealize(audio_track_handle pAudioTrackHandle)
 }
 
 bool vp_audio_track_add_Item(audio_track_handle pAudioTrackHandle,
-                            char *szCode, int nIndex)
+                             char *szCode, int nIndex)
 {
        if (pAudioTrackHandle == NULL) {
                VideoLogError("pAudioTrackHandle is NULL");
@@ -593,7 +589,7 @@ bool vp_audio_track_add_Item(audio_track_handle pAudioTrackHandle,
 
        if (nSelectIdex == -1) {
                char *szDefaultTrack =
-                       g_strdup_printf("%s %d", VP_PLAY_STRING_AUDIO_TRACK, 0);
+                   g_strdup_printf("%s %d", VP_PLAY_STRING_AUDIO_TRACK, 0);
 
                if (!strcmp(szDefaultTrack, szCode)) {
                        VP_STRDUP(pItem->szName, szCode);
@@ -611,7 +607,7 @@ bool vp_audio_track_add_Item(audio_track_handle pAudioTrackHandle,
 }
 
 bool vp_audio_track_set_user_data(audio_track_handle pAudioTrackHandle,
-                                 void *pUserData)
+                                  void *pUserData)
 {
        if (pAudioTrackHandle == NULL) {
                VideoLogError("pAudioTrackHandle is NULL");
index a53c3a6..192fbb6 100644 (file)
@@ -42,21 +42,19 @@ typedef struct _CapturePopup {
 
 
 
-static void _vp_capture_popup_destroy_handle(CapturePopup *
-               pCapturePopup);
+static void _vp_capture_popup_destroy_handle(CapturePopup *pCapturePopup);
 static void __vp_capture_popup_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo);
+                        Evas_Object *pObject,
+                        void *pEventInfo);
 
 static void __vp_capture_genlist_realized(void *data, Evas_Object *obj,
-               void *event_info)
+                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_capture_popup_rotate_cb(void *data, Evas_Object *obj,
-               void *event_info)
+                        void *event_info)
 {
        CapturePopup *pCapture = (CapturePopup *) data;
        if (!pCapture) {
@@ -67,15 +65,15 @@ static void __vp_capture_popup_rotate_cb(void *data, Evas_Object *obj,
                return;
        }
        vp_popup_set_popup_min_size(pCapture->pParent, pCapture->pBox,
-                                   pCapture->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pCapture->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
 
 }
 
 /* callback functions */
 static char *__vp_capture_popup_genlist_text_get_cb(const void *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -92,11 +90,9 @@ static char *__vp_capture_popup_genlist_text_get_cb(const void *pUserData,
 }
 
 static Evas_Object *__vp_capture_popup_genlist_content_get_cb(const void
-               *pUserData,
-               Evas_Object
-               * pObj,
-               const char
-               *pPart)
+                                *pUserData,
+                                Evas_Object *pObj,
+                                const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -109,8 +105,8 @@ static Evas_Object *__vp_capture_popup_genlist_content_get_cb(const void
                Evas_Object *pRadioObj = NULL;
 
                CapturePopup *pCapture =
-                       (CapturePopup *) evas_object_data_get(pObj,
-                                       VP_CAPTURE_POPUP_GENLIST_DATA_KEY);
+                   (CapturePopup *) evas_object_data_get(pObj,
+                           VP_CAPTURE_POPUP_GENLIST_DATA_KEY);
                if (pCapture == NULL) {
                        VideoLogWarning("evas_object_data_get is fail");
                        return NULL;
@@ -129,8 +125,8 @@ static Evas_Object *__vp_capture_popup_genlist_content_get_cb(const void
                elm_radio_group_add(pRadioObj, pCapture->pRadio);
                elm_radio_value_set(pCapture->pRadio, (int) pCapture->bCaptureOn);
                evas_object_smart_callback_add(pRadioObj, "changed",
-                                              __vp_capture_popup_genlist_item_selected_cb,
-                                              pCapture);
+                                              __vp_capture_popup_genlist_item_selected_cb,
+                                              pCapture);
                evas_object_show(pRadioObj);
 
                return pRadioObj;
@@ -140,9 +136,8 @@ static Evas_Object *__vp_capture_popup_genlist_content_get_cb(const void
 }
 
 static void __vp_capture_popup_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo)
+                        Evas_Object *pObject,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -154,7 +149,7 @@ static void __vp_capture_popup_genlist_item_selected_cb(void *pUserData,
        }
 
        Elm_Object_Item *pSelectedItem =
-               elm_genlist_selected_item_get(pObject);
+           elm_genlist_selected_item_get(pObject);
        if (pSelectedItem) {
                elm_genlist_item_selected_set(pSelectedItem, EINA_FALSE);
        }
@@ -183,8 +178,8 @@ static void __vp_capture_popup_genlist_item_selected_cb(void *pUserData,
 }
 
 static void __vp_capture_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -199,9 +194,9 @@ static void __vp_capture_popup_key_event_cb(void *pUserData,
 }
 
 static void __vp_capture_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas *pEvas,
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -234,9 +229,9 @@ static void _vp_capture_popup_destroy_handle(CapturePopup *pCapture)
        }
 
        evas_object_smart_callback_del(pCapture->pGenList, "realized",
-                                      __vp_capture_genlist_realized);
+                                      __vp_capture_genlist_realized);
        evas_object_smart_callback_del(pCapture->pParent, "rotation,changed",
-                                      __vp_capture_popup_rotate_cb);
+                                      __vp_capture_popup_rotate_cb);
 
        VP_EVAS_DEL(pCapture->pRadio);
        VP_EVAS_DEL(pCapture->pGenList);
@@ -253,8 +248,7 @@ static void _vp_capture_popup_destroy_handle(CapturePopup *pCapture)
        VP_FREE(pCapture);
 }
 
-static Evas_Object *_vp_capture_popup_create_genlist(Evas_Object *
-               pParent)
+static Evas_Object *_vp_capture_popup_create_genlist(Evas_Object *pParent)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -265,7 +259,7 @@ static Evas_Object *_vp_capture_popup_create_genlist(Evas_Object *
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -273,7 +267,7 @@ static Evas_Object *_vp_capture_popup_create_genlist(Evas_Object *
 
 
 static bool _vp_capture_popup_add_genlist_item(Evas_Object *pObj,
-               void *pUserData)
+                        void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -300,24 +294,24 @@ static bool _vp_capture_popup_add_genlist_item(Evas_Object *pObj,
        pCapture->st_Capture_Itc->version = ELM_GENLIST_ITEM_CLASS_VERSION;
        pCapture->st_Capture_Itc->item_style = "1text.1icon.3/popup";
        pCapture->st_Capture_Itc->func.text_get =
-               (void *) __vp_capture_popup_genlist_text_get_cb;
+           (void *) __vp_capture_popup_genlist_text_get_cb;
        pCapture->st_Capture_Itc->func.content_get =
-               (void *) __vp_capture_popup_genlist_content_get_cb;
+           (void *) __vp_capture_popup_genlist_content_get_cb;
        pCapture->st_Capture_Itc->func.state_get = NULL;
        pCapture->st_Capture_Itc->func.del = NULL;
        pCapture->nListCount = 0;
 
        elm_genlist_item_append(pObj, pCapture->st_Capture_Itc,
-                               (void *) VP_PLAY_STRING_COM_ON, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_capture_popup_genlist_item_selected_cb,
-                               pUserData);
+                               (void *) VP_PLAY_STRING_COM_ON, NULL,
+                               ELM_GENLIST_ITEM_NONE,
+                               __vp_capture_popup_genlist_item_selected_cb,
+                               pUserData);
        pCapture->nListCount++;
        elm_genlist_item_append(pObj, pCapture->st_Capture_Itc,
-                               (void *) VP_PLAY_STRING_COM_OFF, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_capture_popup_genlist_item_selected_cb,
-                               pUserData);
+                               (void *) VP_PLAY_STRING_COM_OFF, NULL,
+                               ELM_GENLIST_ITEM_NONE,
+                               __vp_capture_popup_genlist_item_selected_cb,
+                               pUserData);
        pCapture->nListCount++;
 
        return TRUE;
@@ -325,8 +319,8 @@ static bool _vp_capture_popup_add_genlist_item(Evas_Object *pObj,
 
 /* external functions */
 capture_popup_handle vp_capture_popup_create(Evas_Object *pParent,
-               bool bCaptureOn,
-               PopupCloseCbFunc pCloseCb)
+                                bool bCaptureOn,
+                                PopupCloseCbFunc pCloseCb)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -346,11 +340,11 @@ capture_popup_handle vp_capture_popup_create(Evas_Object *pParent,
        pCapture->pCloseCb = pCloseCb;
 
        pCapture->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_POPUP_CAPTURE, NULL, 0.0, NULL,
-                               __vp_capture_popup_key_event_cb,
-                               __vp_capture_popup_mouse_event_cb,
-                               (void *) pCapture);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_POPUP_CAPTURE, NULL, 0.0, NULL,
+                           __vp_capture_popup_key_event_cb,
+                           __vp_capture_popup_mouse_event_cb,
+                           (void *) pCapture);
        if (pCapture->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
                _vp_capture_popup_destroy_handle(pCapture);
@@ -358,37 +352,37 @@ capture_popup_handle vp_capture_popup_create(Evas_Object *pParent,
        }
 
        pCapture->pGenList =
-               _vp_capture_popup_create_genlist(pCapture->pPopup);
+           _vp_capture_popup_create_genlist(pCapture->pPopup);
        if (pCapture->pGenList == NULL) {
                VideoLogError("_vp_capture_popup_create_genlist fail");
                _vp_capture_popup_destroy_handle(pCapture);
                return NULL;
        }
        evas_object_data_set(pCapture->pGenList,
-                            VP_CAPTURE_POPUP_GENLIST_DATA_KEY,
-                            (void *) pCapture);
+                            VP_CAPTURE_POPUP_GENLIST_DATA_KEY,
+                            (void *) pCapture);
        evas_object_smart_callback_add(pCapture->pGenList, "realized",
-                                      __vp_capture_genlist_realized, NULL);
+                                      __vp_capture_genlist_realized, NULL);
 
        pCapture->pRadio = elm_radio_add(pCapture->pGenList);
 
        if (!_vp_capture_popup_add_genlist_item
-                       (pCapture->pGenList, (void *) pCapture)) {
+               (pCapture->pGenList, (void *) pCapture)) {
                VideoLogError("_vp_capture_popup_add_genlist_item fail");
                _vp_capture_popup_destroy_handle(pCapture);
                return NULL;
        }
        evas_object_smart_callback_add(pCapture->pParent, "rotation,changed",
-                                      __vp_capture_popup_rotate_cb,
-                                      pCapture);
+                                      __vp_capture_popup_rotate_cb,
+                                      pCapture);
 
        //elm_radio_value_set(pCapture->pRadio, (int)bCaptureOn);
        pCapture->bCaptureOn = bCaptureOn;
 
        pCapture->pBox = elm_box_add(pCapture->pPopup);
        vp_popup_set_popup_min_size(pCapture->pParent, pCapture->pBox,
-                                   pCapture->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pCapture->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
 
        elm_box_pack_end(pCapture->pBox, pCapture->pGenList);
 
@@ -439,7 +433,7 @@ bool vp_capture_popup_unrealize(capture_popup_handle pCapturePopupHandle)
 }
 
 bool vp_capture_popup_set_user_data(capture_popup_handle
-                                   pCapturePopupHandle, void *pUserData)
+                                    pCapturePopupHandle, void *pUserData)
 {
        if (pCapturePopupHandle == NULL) {
                VideoLogError("pCapturePopupHandle is NULL");
index f01fe83..a4fb2c3 100644 (file)
@@ -52,13 +52,13 @@ static void _vp_detail_destroy_handle(DetailPopup *pDetailPopup);
 /* callback functions */
 
 static void __vp_detail_genlist_realized(void *data, Evas_Object *obj,
-               void *event_info)
+                                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_detail_popup_rotate_cb(void *data, Evas_Object *obj,
-                                       void *event_info)
+                                        void *event_info)
 {
        DetailPopup *pDetailPopup = (DetailPopup *) data;
        if (!pDetailPopup) {
@@ -69,14 +69,14 @@ static void __vp_detail_popup_rotate_cb(void *data, Evas_Object *obj,
                return;
        }
        vp_popup_set_popup_min_size(pDetailPopup->pParent, pDetailPopup->pBox,
-                                   pDetailPopup->nListCount,
-                                   VIDEO_POPUP_2_TEXT);
+                                   pDetailPopup->nListCount,
+                                   VIDEO_POPUP_2_TEXT);
        elm_popup_orient_set(pDetailPopup->pPopup, ELM_POPUP_ORIENT_CENTER);
 }
 
 static char *__vp_detail_genlist_text_get_cb(const void *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+                                Evas_Object *pObj,
+                                const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -92,8 +92,8 @@ static char *__vp_detail_genlist_text_get_cb(const void *pUserData,
        } else if (!strcmp(pPart, "elm.text.sub.left.bottom")) {
 
                DetailPopup *pDetailPopup =
-                       (DetailPopup *) evas_object_data_get(pObj,
-                                       VP_DETAIL_GENLIST_DATA_KEY);
+                   (DetailPopup *) evas_object_data_get(pObj,
+                           VP_DETAIL_GENLIST_DATA_KEY);
                if (pDetailPopup == NULL) {
                        return NULL;
                }
@@ -104,45 +104,52 @@ static char *__vp_detail_genlist_text_get_cb(const void *pUserData,
                }
 
                if (!strcmp(szTxt, VP_PLAY_STRING_DETAIL_TITLE)) {
-                       if (pDetailInfo->szTitle)
+                       if (pDetailInfo->szTitle) {
                                return elm_entry_utf8_to_markup(pDetailInfo->szTitle);
+                       }
                } else if (!strcmp(szTxt, VP_PLAY_STRING_DETAIL_FORMAT)) {
-                       if (pDetailInfo->szFormat)
+                       if (pDetailInfo->szFormat) {
                                return elm_entry_utf8_to_markup(pDetailInfo->szFormat);
+                       }
                } else if (!strcmp(szTxt, VP_PLAY_STRING_DETAIL_DATE)) {
-                       if (pDetailInfo->szDate)
+                       if (pDetailInfo->szDate) {
                                return elm_entry_utf8_to_markup(pDetailInfo->szDate);
+                       }
                } else if (!strcmp(szTxt, VP_PLAY_STRING_DETAIL_SIZE)) {
-                       if (pDetailInfo->szSize)
+                       if (pDetailInfo->szSize) {
                                return elm_entry_utf8_to_markup(pDetailInfo->szSize);
+                       }
                } else if (!strcmp(szTxt, VP_PLAY_STRING_DETAIL_LAST_MODIFIED)) {
                        if (pDetailInfo->szLastModified)
                                return elm_entry_utf8_to_markup(pDetailInfo->
-                                                               szLastModified);
+                                                               szLastModified);
                } else if (!strcmp(szTxt, VP_PLAY_STRING_DETAIL_RESOLUTION)) {
                        if (pDetailInfo->szResolution)
                                return elm_entry_utf8_to_markup(pDetailInfo->
-                                                               szResolution);
+                                                               szResolution);
                } else if (!strcmp(szTxt, VP_PLAY_STRING_DETAIL_LOCATION)) {
-                       if (pDetailInfo->szLocation)
+                       if (pDetailInfo->szLocation) {
                                return elm_entry_utf8_to_markup(pDetailInfo->szLocation);
+                       }
                } else if (!strcmp(szTxt, VP_PLAY_STRING_DETAIL_LATITUDE)) {
                        if (pDetailInfo->szLatitude) {
                                if (atof(pDetailInfo->szLatitude) !=
-                                               VP_DETAIL_VALUE_GPS_DEFAULT)
+                                       VP_DETAIL_VALUE_GPS_DEFAULT)
                                        return elm_entry_utf8_to_markup(pDetailInfo->
-                                                                       szLatitude);
-                               else
+                                                                       szLatitude);
+                               else {
                                        return g_strdup(VP_PLAY_STRING_DETAIL_VALUE_UNKNOWN);
+                               }
                        }
                } else if (!strcmp(szTxt, VP_PLAY_STRING_DETAIL_LONGITUDE)) {
                        if (pDetailInfo->szLongitude) {
                                if (atof(pDetailInfo->szLongitude) !=
-                                               VP_DETAIL_VALUE_GPS_DEFAULT)
+                                       VP_DETAIL_VALUE_GPS_DEFAULT)
                                        return elm_entry_utf8_to_markup(pDetailInfo->
-                                                                       szLongitude);
-                               else
+                                                                       szLongitude);
+                               else {
                                        return g_strdup(VP_PLAY_STRING_DETAIL_VALUE_UNKNOWN);
+                               }
                        }
                }
        }
@@ -151,8 +158,8 @@ static char *__vp_detail_genlist_text_get_cb(const void *pUserData,
 }
 
 static void __vp_detail_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                                Evas_Object *pObj,
+                                void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -163,14 +170,14 @@ static void __vp_detail_popup_key_event_cb(void *pUserData,
 
        if (pDetailPopup->pCloseCb) {
                pDetailPopup->pCloseCb(-1, FALSE,
-                                      (void *) pDetailPopup->pUserData);
+                                      (void *) pDetailPopup->pUserData);
        }
 }
 
 static void __vp_detail_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+        Evas *pEvas,
+        Evas_Object *pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -189,7 +196,7 @@ static void __vp_detail_popup_mouse_event_cb(void *pUserData,
 
                if (pDetailPopup->pCloseCb) {
                        pDetailPopup->pCloseCb(-1, FALSE,
-                                              (void *) pDetailPopup->pUserData);
+                                              (void *) pDetailPopup->pUserData);
                }
        }
 }
@@ -204,10 +211,10 @@ static void _vp_detail_destroy_handle(DetailPopup *pDetailPopup)
                return;
        }
        evas_object_smart_callback_del(pDetailPopup->pGenList, "realized",
-                                      __vp_detail_genlist_realized);
+                                      __vp_detail_genlist_realized);
        evas_object_smart_callback_del(pDetailPopup->pParent,
-                                      "rotation,changed",
-                                      __vp_detail_popup_rotate_cb);
+                                      "rotation,changed",
+                                      __vp_detail_popup_rotate_cb);
 
 
        VP_EVAS_DEL(pDetailPopup->pGenList);
@@ -246,7 +253,7 @@ static Evas_Object *_vp_detail_create_genlist(Evas_Object *pParent)
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -254,8 +261,8 @@ static Evas_Object *_vp_detail_create_genlist(Evas_Object *pParent)
 
 
 static bool _vp_detail_add_genlist_item(Evas_Object *pObj,
-                                       void *pUserData,
-                                       int *added_item_cnt)
+                                        void *pUserData,
+                                        int *added_item_cnt)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -284,7 +291,7 @@ static bool _vp_detail_add_genlist_item(Evas_Object *pObj,
        pDetailPopup->st_Detail_Itc->version = ELM_GENLIST_ITEM_CLASS_VERSION;
        pDetailPopup->st_Detail_Itc->item_style = "2line.top";
        pDetailPopup->st_Detail_Itc->func.text_get =
-               (void *) __vp_detail_genlist_text_get_cb;
+           (void *) __vp_detail_genlist_text_get_cb;
        pDetailPopup->st_Detail_Itc->func.content_get = NULL;
        pDetailPopup->st_Detail_Itc->func.state_get = NULL;
        pDetailPopup->st_Detail_Itc->func.del = NULL;
@@ -292,31 +299,31 @@ static bool _vp_detail_add_genlist_item(Evas_Object *pObj,
        Elm_Object_Item *pItem = NULL;
 
        pItem =
-               elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
-                                       (void *) VP_PLAY_STRING_DETAIL_TITLE,
-                                       NULL, ELM_GENLIST_ITEM_NONE, NULL,
-                                       (void *) pDetailPopup);
+           elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
+                                   (void *) VP_PLAY_STRING_DETAIL_TITLE,
+                                   NULL, ELM_GENLIST_ITEM_NONE, NULL,
+                                   (void *) pDetailPopup);
        elm_genlist_item_select_mode_set(pItem,
-                                        ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+                                        ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
        item_cnt++;
 
        pItem =
-               elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
-                                       (void *) VP_PLAY_STRING_DETAIL_SIZE, NULL,
-                                       ELM_GENLIST_ITEM_NONE, NULL,
-                                       (void *) pDetailPopup);
+           elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
+                                   (void *) VP_PLAY_STRING_DETAIL_SIZE, NULL,
+                                   ELM_GENLIST_ITEM_NONE, NULL,
+                                   (void *) pDetailPopup);
        elm_genlist_item_select_mode_set(pItem,
-                                        ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+                                        ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
        item_cnt++;
 
        if (pDetailPopup->pDetailInfo->bPlayready == FALSE) {
                pItem =
-                       elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
-                                               (void *) VP_PLAY_STRING_DETAIL_FORMAT,
-                                               NULL, ELM_GENLIST_ITEM_NONE, NULL,
-                                               (void *) pDetailPopup);
+                   elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
+                                           (void *) VP_PLAY_STRING_DETAIL_FORMAT,
+                                           NULL, ELM_GENLIST_ITEM_NONE, NULL,
+                                           (void *) pDetailPopup);
                elm_genlist_item_select_mode_set(pItem,
-                                                ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+                                                ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
                item_cnt++;
        }
 
@@ -326,35 +333,35 @@ static bool _vp_detail_add_genlist_item(Evas_Object *pObj,
 
        if (pDetailPopup->pDetailInfo->bPlayready == FALSE) {
                pItem =
-                       elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
-                                               (void *)
-                                               VP_PLAY_STRING_DETAIL_RESOLUTION,
-                                               NULL, ELM_GENLIST_ITEM_NONE, NULL,
-                                               (void *) pDetailPopup);
+                   elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
+                                           (void *)
+                                           VP_PLAY_STRING_DETAIL_RESOLUTION,
+                                           NULL, ELM_GENLIST_ITEM_NONE, NULL,
+                                           (void *) pDetailPopup);
                elm_genlist_item_select_mode_set(pItem,
-                                                ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+                                                ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
                item_cnt++;
        }
 
        pItem =
-               elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
-                                       (void *)
-                                       VP_PLAY_STRING_DETAIL_LAST_MODIFIED, NULL,
-                                       ELM_GENLIST_ITEM_NONE, NULL,
-                                       (void *) pDetailPopup);
+           elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
+                                   (void *)
+                                   VP_PLAY_STRING_DETAIL_LAST_MODIFIED, NULL,
+                                   ELM_GENLIST_ITEM_NONE, NULL,
+                                   (void *) pDetailPopup);
        elm_genlist_item_select_mode_set(pItem,
-                                        ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+                                        ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
        item_cnt++;
 
        if (pDetailPopup->pDetailInfo->bPlayready == FALSE) {
                pItem =
-                       elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
-                                               (void *)
-                                               VP_PLAY_STRING_DETAIL_LOCATION, NULL,
-                                               ELM_GENLIST_ITEM_NONE, NULL,
-                                               (void *) pDetailPopup);
+                   elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc,
+                                           (void *)
+                                           VP_PLAY_STRING_DETAIL_LOCATION, NULL,
+                                           ELM_GENLIST_ITEM_NONE, NULL,
+                                           (void *) pDetailPopup);
                elm_genlist_item_select_mode_set(pItem,
-                                                ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+                                                ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
                item_cnt++;
 
                /*pItem = elm_genlist_item_append(pObj, pDetailPopup->st_Detail_Itc, (void *)VP_PLAY_STRING_DETAIL_LATITUDE, NULL, ELM_GENLIST_ITEM_NONE, NULL, (void *)pDetailPopup);
@@ -374,8 +381,8 @@ static bool _vp_detail_add_genlist_item(Evas_Object *pObj,
 
 /* external functions */
 detail_handle vp_detail_create(Evas_Object *pParent,
-                              PopupCloseCbFunc pCloseCb,
-                              vp_detail_info *pDetailInfo)
+                               PopupCloseCbFunc pCloseCb,
+                               vp_detail_info *pDetailInfo)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -407,15 +414,15 @@ detail_handle vp_detail_create(Evas_Object *pParent,
        VP_STRDUP(pDetailPopup->pDetailInfo->szFormat, pDetailInfo->szFormat);
        VP_STRDUP(pDetailPopup->pDetailInfo->szSize, pDetailInfo->szSize);
        VP_STRDUP(pDetailPopup->pDetailInfo->szLastModified,
-                 pDetailInfo->szLastModified);
+                 pDetailInfo->szLastModified);
        VP_STRDUP(pDetailPopup->pDetailInfo->szResolution,
-                 pDetailInfo->szResolution);
+                 pDetailInfo->szResolution);
        VP_STRDUP(pDetailPopup->pDetailInfo->szLatitude,
-                 pDetailInfo->szLatitude);
+                 pDetailInfo->szLatitude);
        VP_STRDUP(pDetailPopup->pDetailInfo->szLongitude,
-                 pDetailInfo->szLongitude);
+                 pDetailInfo->szLongitude);
        pDetailPopup->pDetailInfo->szLocation =
-               vp_util_convert_file_location(pDetailInfo->szLocation);
+           vp_util_convert_file_location(pDetailInfo->szLocation);
 
        pDetailPopup->pDetailInfo->bDrm = pDetailInfo->bDrm;
        pDetailPopup->pDetailInfo->bForwardLock = pDetailInfo->bForwardLock;
@@ -426,11 +433,11 @@ detail_handle vp_detail_create(Evas_Object *pParent,
        pDetailPopup->pCloseCb = pCloseCb;
 
        pDetailPopup->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_COM_DETAILS, NULL, 0.0, NULL,
-                               __vp_detail_popup_key_event_cb,
-                               __vp_detail_popup_mouse_event_cb,
-                               (void *) pDetailPopup);
+           vp_popup_create(pParent, POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_COM_DETAILS, NULL, 0.0, NULL,
+                           __vp_detail_popup_key_event_cb,
+                           __vp_detail_popup_mouse_event_cb,
+                           (void *) pDetailPopup);
 
        if (pDetailPopup->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
@@ -439,7 +446,7 @@ detail_handle vp_detail_create(Evas_Object *pParent,
        }
        //elm_popup_content_text_wrap_type_set(pDetailPopup->pPopup, ELM_WRAP_MIXED);
        pDetailPopup->pGenList =
-               _vp_detail_create_genlist(pDetailPopup->pPopup);
+           _vp_detail_create_genlist(pDetailPopup->pPopup);
        if (pDetailPopup->pGenList == NULL) {
                VideoLogError("_vp_detail_create_genlist fail");
                _vp_detail_destroy_handle(pDetailPopup);
@@ -447,33 +454,33 @@ detail_handle vp_detail_create(Evas_Object *pParent,
        }
 
        evas_object_data_set(pDetailPopup->pGenList,
-                            VP_DETAIL_GENLIST_DATA_KEY,
-                            (void *) pDetailPopup);
+                            VP_DETAIL_GENLIST_DATA_KEY,
+                            (void *) pDetailPopup);
        elm_genlist_mode_set(pDetailPopup->pGenList, ELM_LIST_COMPRESS);
 
        int added_item_cnt = 0;
        if (!_vp_detail_add_genlist_item
-                       (pDetailPopup->pGenList, (void *) pDetailPopup,
-                        &added_item_cnt)) {
+               (pDetailPopup->pGenList, (void *) pDetailPopup,
+                &added_item_cnt)) {
                VideoLogError("_vp_detail_add_genlist_item fail");
                _vp_detail_destroy_handle(pDetailPopup);
                return NULL;
        }
        pDetailPopup->nListCount = added_item_cnt;
        evas_object_smart_callback_add(pDetailPopup->pGenList, "realized",
-                                      __vp_detail_genlist_realized, NULL);
+                                      __vp_detail_genlist_realized, NULL);
        evas_object_smart_callback_add(pDetailPopup->pParent,
-                                      "rotation,changed",
-                                      __vp_detail_popup_rotate_cb,
-                                      pDetailPopup);
+                                      "rotation,changed",
+                                      __vp_detail_popup_rotate_cb,
+                                      pDetailPopup);
 
        pDetailPopup->pBox = elm_box_add(pDetailPopup->pPopup);
 
        VideoLogInfo("item cnt = %d", added_item_cnt);
 
        vp_popup_set_popup_min_size(pDetailPopup->pParent, pDetailPopup->pBox,
-                                   pDetailPopup->nListCount,
-                                   VIDEO_POPUP_2_TEXT);
+                                   pDetailPopup->nListCount,
+                                   VIDEO_POPUP_2_TEXT);
        elm_popup_orient_set(pDetailPopup->pPopup, ELM_POPUP_ORIENT_CENTER);
        elm_box_pack_end(pDetailPopup->pBox, pDetailPopup->pGenList);
 
index 7685245..5eddcc8 100644 (file)
@@ -55,15 +55,15 @@ typedef struct _PlaySpeedPopup {
 
 
 static void _vp_play_speed_popup_destroy_handle(PlaySpeedPopup *
-               pPlaySpeedPopup);
+        pPlaySpeedPopup);
 static void _vp_play_speed_update_text(PlaySpeedPopup *pPlaySpeedPopup);
 
 
 /* callback functions */
 
 static void __vp_play_speed_popup_ok_btn_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+        Evas_Object *pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -74,13 +74,13 @@ static void __vp_play_speed_popup_ok_btn_cb(void *pUserData,
 
        if (pPlaySpeedPopup->pDoneCb) {
                pPlaySpeedPopup->pDoneCb(pPlaySpeedPopup->fSpeedVal, TRUE,
-                                        (void *) pPlaySpeedPopup->pUserData);
+                                        (void *) pPlaySpeedPopup->pUserData);
        }
 }
 
 static void __vp_play_speed_popup_cancel_btn_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+        Evas_Object *pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -91,14 +91,14 @@ static void __vp_play_speed_popup_cancel_btn_cb(void *pUserData,
 
        if (pPlaySpeedPopup->pDoneCb) {
                pPlaySpeedPopup->pDoneCb(pPlaySpeedPopup->fSpeedVal, FALSE,
-                                        (void *) pPlaySpeedPopup->pUserData);
+                                        (void *) pPlaySpeedPopup->pUserData);
        }
 }
 
 
 static void __vp_play_speed_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+        Evas_Object *pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -107,15 +107,15 @@ static void __vp_play_speed_popup_key_event_cb(void *pUserData,
        PlaySpeedPopup *pPlaySpeedPopup = (PlaySpeedPopup *) pUserData;
        if (pPlaySpeedPopup->pDoneCb) {
                pPlaySpeedPopup->pDoneCb(pPlaySpeedPopup->fSpeedVal, FALSE,
-                                        (void *) pPlaySpeedPopup->pUserData);
+                                        (void *) pPlaySpeedPopup->pUserData);
        }
 
 }
 
 static void __vp_play_speed_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+        Evas *pEvas,
+        Evas_Object *pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -133,14 +133,14 @@ static void __vp_play_speed_popup_mouse_event_cb(void *pUserData,
                PlaySpeedPopup *pPlaySpeedPopup = (PlaySpeedPopup *) pUserData;
                if (pPlaySpeedPopup->pDoneCb) {
                        pPlaySpeedPopup->pDoneCb(pPlaySpeedPopup->fSpeedVal, FALSE,
-                                                (void *) pPlaySpeedPopup->pUserData);
+                                                (void *) pPlaySpeedPopup->pUserData);
                }
        }
 }
 
 static void __vp_play_speed_popup_slider_change_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+        Evas_Object *pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -155,8 +155,8 @@ static void __vp_play_speed_popup_slider_change_cb(void *pUserData,
                if (pPlaySpeedPopup->pUpdateCb) {
                        pPlaySpeedPopup->fSpeedVal = fValue;
                        pPlaySpeedPopup->pUpdateCb(pPlaySpeedPopup->fSpeedVal,
-                                                  (void *) pPlaySpeedPopup->
-                                                  pUserData);
+                                                  (void *) pPlaySpeedPopup->
+                                                  pUserData);
                        _vp_play_speed_update_text(pPlaySpeedPopup);
                }
        }
@@ -167,15 +167,15 @@ static void __vp_play_speed_popup_slider_change_cb(void *pUserData,
 
        if (pPlaySpeedPopup->fSpeedVal != realValue) {
                elm_slider_value_set(pPlaySpeedPopup->pSlider,
-                                    (double) realValue);
+                                    (double) realValue);
                pPlaySpeedPopup->fSpeedVal = realValue;
        }
 
 }
 
 static void __vp_play_speed_btn_clicked_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -198,8 +198,8 @@ static void __vp_play_speed_btn_clicked_cb(void *pUserData,
                        if (pPlaySpeedPopup->pUpdateCb) {
                                pPlaySpeedPopup->fSpeedVal = fValue;
                                pPlaySpeedPopup->pUpdateCb(pPlaySpeedPopup->fSpeedVal,
-                                                          (void *) pPlaySpeedPopup->
-                                                          pUserData);
+                                                          (void *) pPlaySpeedPopup->
+                                                          pUserData);
                                _vp_play_speed_update_text(pPlaySpeedPopup);
                        }
                }
@@ -215,8 +215,8 @@ static void __vp_play_speed_btn_clicked_cb(void *pUserData,
                        if (pPlaySpeedPopup->pUpdateCb) {
                                pPlaySpeedPopup->fSpeedVal = fValue;
                                pPlaySpeedPopup->pUpdateCb(pPlaySpeedPopup->fSpeedVal,
-                                                          (void *) pPlaySpeedPopup->
-                                                          pUserData);
+                                                          (void *) pPlaySpeedPopup->
+                                                          pUserData);
                                _vp_play_speed_update_text(pPlaySpeedPopup);
                        }
                }
@@ -228,7 +228,7 @@ static void __vp_play_speed_btn_clicked_cb(void *pUserData,
 
 /* internal functions */
 static void _vp_play_speed_popup_destroy_handle(PlaySpeedPopup *
-               pPlaySpeedPopup)
+        pPlaySpeedPopup)
 {
        if (pPlaySpeedPopup == NULL) {
                VideoLogError("pPlaySpeedPopup is NULL");
@@ -259,13 +259,13 @@ static void _vp_play_speed_update_text(PlaySpeedPopup *pPlaySpeedPopup)
 
        snprintf(szValue, 6, "%0.1f X", (double) pPlaySpeedPopup->fSpeedVal);
        elm_object_part_text_set(pPlaySpeedPopup->pLayout, "elm.text.title",
-                                szValue);
+                                szValue);
 
 }
 
 static Evas_Object *_vp_play_speed_popup_create_ok_button(Evas_Object *
-               pParent,
-               void *pUserData)
+        pParent,
+        void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -276,11 +276,11 @@ static Evas_Object *_vp_play_speed_popup_create_ok_button(Evas_Object *
        pObj = elm_button_add(pParent);
        elm_object_style_set(pObj, "popup_button/default");
        elm_object_domain_translatable_text_set(pObj, VP_SYS_STR_PREFIX,
-                                               VP_PLAY_STRING_COM_DONE);
+                                               VP_PLAY_STRING_COM_DONE);
        elm_object_part_content_set(pParent, "button2", pObj);
        evas_object_smart_callback_add(pObj, "clicked",
-                                      __vp_play_speed_popup_ok_btn_cb,
-                                      pUserData);
+                                      __vp_play_speed_popup_ok_btn_cb,
+                                      pUserData);
        evas_object_show(pObj);
 
        return pObj;
@@ -288,9 +288,9 @@ static Evas_Object *_vp_play_speed_popup_create_ok_button(Evas_Object *
 
 
 static Evas_Object *_vp_play_speed_popup_create_cancel_button(Evas_Object
-               * pParent,
-               void
-               *pUserData)
+        * pParent,
+        void
+        *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -301,19 +301,19 @@ static Evas_Object *_vp_play_speed_popup_create_cancel_button(Evas_Object
        pObj = elm_button_add(pParent);
        elm_object_style_set(pObj, "popup_button/default");
        elm_object_domain_translatable_text_set(pObj, VP_SYS_STR_PREFIX,
-                                               VP_PLAY_STRING_COM_CANCEL);
+                                               VP_PLAY_STRING_COM_CANCEL);
        elm_object_part_content_set(pParent, "button1", pObj);
        evas_object_smart_callback_add(pObj, "clicked",
-                                      __vp_play_speed_popup_cancel_btn_cb,
-                                      pUserData);
+                                      __vp_play_speed_popup_cancel_btn_cb,
+                                      pUserData);
        evas_object_show(pObj);
 
        return pObj;
 }
 
 static Evas_Object *_vp_play_speed_popup_create_slider(Evas_Object *
-               pParent,
-               void *pUserData)
+        pParent,
+        void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -327,16 +327,16 @@ static Evas_Object *_vp_play_speed_popup_create_slider(Evas_Object *
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, 0.5);
 
        elm_slider_min_max_set(pObj, VP_PLAY_SPEED_MIN_VALUE,
-                              VP_PLAY_SPEED_MAX_VALUE);
+                              VP_PLAY_SPEED_MAX_VALUE);
        evas_object_smart_callback_add(pObj, "changed",
-                                      __vp_play_speed_popup_slider_change_cb,
-                                      pUserData);
+                                      __vp_play_speed_popup_slider_change_cb,
+                                      pUserData);
 
        return pObj;
 }
 
 static bool _vp_play_speed_popup_create_button(Evas_Object *pParent,
-               void *pUserData)
+        void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -346,75 +346,75 @@ static bool _vp_play_speed_popup_create_button(Evas_Object *pParent,
        PlaySpeedPopup *pPlaySpeedPopup = (PlaySpeedPopup *) pUserData;
 
        pPlaySpeedPopup->pDelButton =
-               vp_button_create(pParent, "playview/custom/flat_63_78/default",
-                                NULL,
-                                (Evas_Smart_Cb) __vp_play_speed_btn_clicked_cb,
-                                (Evas_Smart_Cb) NULL, (Evas_Smart_Cb) NULL,
-                                (void *) pPlaySpeedPopup);
+           vp_button_create(pParent, "playview/custom/flat_63_78/default",
+                            NULL,
+                            (Evas_Smart_Cb) __vp_play_speed_btn_clicked_cb,
+                            (Evas_Smart_Cb) NULL, (Evas_Smart_Cb) NULL,
+                            (void *) pPlaySpeedPopup);
 
 
 
        pPlaySpeedPopup->pAddButton =
-               vp_button_create(pParent, "playview/custom/flat_63_78/default",
-                                NULL,
-                                (Evas_Smart_Cb) __vp_play_speed_btn_clicked_cb,
-                                (Evas_Smart_Cb) NULL, (Evas_Smart_Cb) NULL,
-                                (void *) pPlaySpeedPopup);
+           vp_button_create(pParent, "playview/custom/flat_63_78/default",
+                            NULL,
+                            (Evas_Smart_Cb) __vp_play_speed_btn_clicked_cb,
+                            (Evas_Smart_Cb) NULL, (Evas_Smart_Cb) NULL,
+                            (void *) pPlaySpeedPopup);
 
        Evas_Object *pIcon = NULL;
 
        pIcon =
-               vp_button_create_icon(pPlaySpeedPopup->pDelButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_DEL);
+           vp_button_create_icon(pPlaySpeedPopup->pDelButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_DEL);
        elm_object_part_content_set(pPlaySpeedPopup->pDelButton,
-                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pPlaySpeedPopup->pDelButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_DEL_PRESS);
+           vp_button_create_icon(pPlaySpeedPopup->pDelButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_DEL_PRESS);
        elm_object_part_content_set(pPlaySpeedPopup->pDelButton,
-                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pPlaySpeedPopup->pDelButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_DEL);
+           vp_button_create_icon(pPlaySpeedPopup->pDelButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_DEL);
        elm_object_part_content_set(pPlaySpeedPopup->pDelButton,
-                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pPlaySpeedPopup->pAddButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_ADD);
+           vp_button_create_icon(pPlaySpeedPopup->pAddButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_ADD);
        elm_object_part_content_set(pPlaySpeedPopup->pAddButton,
-                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pPlaySpeedPopup->pAddButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_ADD_PRESS);
+           vp_button_create_icon(pPlaySpeedPopup->pAddButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_ADD_PRESS);
        elm_object_part_content_set(pPlaySpeedPopup->pAddButton,
-                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pPlaySpeedPopup->pAddButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_ADD);
+           vp_button_create_icon(pPlaySpeedPopup->pAddButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_ADD);
        elm_object_part_content_set(pPlaySpeedPopup->pAddButton,
-                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
 
        elm_object_part_content_set(pParent, "elm.swallow.icon.1",
-                                   pPlaySpeedPopup->pDelButton);
+                                   pPlaySpeedPopup->pDelButton);
        elm_object_part_content_set(pParent, "elm.swallow.icon.2",
-                                   pPlaySpeedPopup->pAddButton);
+                                   pPlaySpeedPopup->pAddButton);
 
        return TRUE;
 }
 
 static Evas_Object *_vp_play_speed_popup_create_layout(Evas_Object *
-               pParent)
+        pParent)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -428,12 +428,12 @@ static Evas_Object *_vp_play_speed_popup_create_layout(Evas_Object *
        }
 
        elm_layout_file_set(pLayout, VP_PLAY_SPEED_POPUP_EDJ,
-                           VP_PLAY_EDJ_GROUP_PLAY_SPEED_POPUP);
+                           VP_PLAY_EDJ_GROUP_PLAY_SPEED_POPUP);
 
        evas_object_size_hint_weight_set(pLayout, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pLayout, EVAS_HINT_FILL,
-                                       EVAS_HINT_FILL);
+                                       EVAS_HINT_FILL);
 
        evas_object_show(pLayout);
 
@@ -445,10 +445,10 @@ static Evas_Object *_vp_play_speed_popup_create_layout(Evas_Object *
 
 /* external functions */
 play_speed_popup vp_play_speed_popup_create(Evas_Object *pParent,
-               double fSpeedVal,
-               PlaySpeedUpdateCbFunc
-               pUpdateCb,
-               PlaySpeedDoneCbFunc pDoneCb)
+        double fSpeedVal,
+        PlaySpeedUpdateCbFunc
+        pUpdateCb,
+        PlaySpeedDoneCbFunc pDoneCb)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -470,11 +470,11 @@ play_speed_popup vp_play_speed_popup_create(Evas_Object *pParent,
        pPlaySpeedPopup->fSpeedVal = fSpeedVal;
 
        pPlaySpeedPopup->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_EXPAND_WITH_CANCEL_BTN,
-                               VP_PLAY_STRING_POPUP_PLAY_SPEED, NULL, 0.0, NULL,
-                               __vp_play_speed_popup_key_event_cb,
-                               __vp_play_speed_popup_mouse_event_cb,
-                               (void *) pPlaySpeedPopup);
+           vp_popup_create(pParent, POPUP_STYLE_EXPAND_WITH_CANCEL_BTN,
+                           VP_PLAY_STRING_POPUP_PLAY_SPEED, NULL, 0.0, NULL,
+                           __vp_play_speed_popup_key_event_cb,
+                           __vp_play_speed_popup_mouse_event_cb,
+                           (void *) pPlaySpeedPopup);
 
        if (pPlaySpeedPopup->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
@@ -483,9 +483,9 @@ play_speed_popup vp_play_speed_popup_create(Evas_Object *pParent,
        }
 
        pPlaySpeedPopup->pCancelButton =
-               _vp_play_speed_popup_create_cancel_button(pPlaySpeedPopup->pPopup,
-                               (void *)
-                               pPlaySpeedPopup);
+           _vp_play_speed_popup_create_cancel_button(pPlaySpeedPopup->pPopup,
+                   (void *)
+                   pPlaySpeedPopup);
        if (pPlaySpeedPopup->pCancelButton == NULL) {
                VideoLogError("_vp_play_speed_popup_create_cancel_button fail");
                _vp_play_speed_popup_destroy_handle(pPlaySpeedPopup);
@@ -493,8 +493,8 @@ play_speed_popup vp_play_speed_popup_create(Evas_Object *pParent,
        }
 
        pPlaySpeedPopup->pOkButton =
-               _vp_play_speed_popup_create_ok_button(pPlaySpeedPopup->pPopup,
-                               (void *) pPlaySpeedPopup);
+           _vp_play_speed_popup_create_ok_button(pPlaySpeedPopup->pPopup,
+                   (void *) pPlaySpeedPopup);
        if (pPlaySpeedPopup->pOkButton == NULL) {
                VideoLogError("_vp_play_speed_popup_create_ok_button fail");
                _vp_play_speed_popup_destroy_handle(pPlaySpeedPopup);
@@ -502,7 +502,7 @@ play_speed_popup vp_play_speed_popup_create(Evas_Object *pParent,
        }
 
        pPlaySpeedPopup->pLayout =
-               _vp_play_speed_popup_create_layout(pPlaySpeedPopup->pPopup);
+           _vp_play_speed_popup_create_layout(pPlaySpeedPopup->pPopup);
        if (pPlaySpeedPopup->pLayout == NULL) {
                VideoLogError("_vp_play_speed_popup_create_layout fail");
                _vp_play_speed_popup_destroy_handle(pPlaySpeedPopup);
@@ -510,8 +510,8 @@ play_speed_popup vp_play_speed_popup_create(Evas_Object *pParent,
        }
 
        pPlaySpeedPopup->pSlider =
-               _vp_play_speed_popup_create_slider(pPlaySpeedPopup->pLayout,
-                               pPlaySpeedPopup);
+           _vp_play_speed_popup_create_slider(pPlaySpeedPopup->pLayout,
+                                              pPlaySpeedPopup);
        if (pPlaySpeedPopup->pSlider == NULL) {
                VideoLogError("_vp_play_speed_popup_create_slider fail");
                _vp_play_speed_popup_destroy_handle(pPlaySpeedPopup);
@@ -519,17 +519,17 @@ play_speed_popup vp_play_speed_popup_create(Evas_Object *pParent,
        }
 
        _vp_play_speed_popup_create_button(pPlaySpeedPopup->pLayout,
-                                          pPlaySpeedPopup);
+                                          pPlaySpeedPopup);
 
        elm_slider_value_set(pPlaySpeedPopup->pSlider,
-                            (double) pPlaySpeedPopup->fSpeedVal);
+                            (double) pPlaySpeedPopup->fSpeedVal);
        _vp_play_speed_update_text(pPlaySpeedPopup);
 
        elm_object_part_content_set(pPlaySpeedPopup->pLayout,
-                                   "elm.swallow.content",
-                                   pPlaySpeedPopup->pSlider);
+                                   "elm.swallow.content",
+                                   pPlaySpeedPopup->pSlider);
        elm_object_content_set(pPlaySpeedPopup->pPopup,
-                              pPlaySpeedPopup->pLayout);
+                              pPlaySpeedPopup->pLayout);
        evas_object_show(pPlaySpeedPopup->pLayout);
 
 //      elm_popup_orient_set(pPlaySpeedPopup->pPopup, ELM_POPUP_ORIENT_BOTTOM);
@@ -582,7 +582,7 @@ bool vp_play_speed_popup_unrealize(play_speed_popup pPlaySpeedHandle)
 
 
 bool vp_play_speed_popup_set_user_data(play_speed_popup pPlaySpeedHandle,
-                                      void *pUserData)
+                                       void *pUserData)
 {
        if (pPlaySpeedHandle == NULL) {
                VideoLogError("pPlaySpeedHandle is NULL");
index ef76135..44ad191 100644 (file)
@@ -48,18 +48,18 @@ typedef struct _RepeatPopup {
 
 static void _vp_repeat_destroy_handle(RepeatPopup *pRepeat);
 static void __vp_repeat_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *pObject,
-               void *pEventInfo);
+                        Evas_Object *pObject,
+                        void *pEventInfo);
 
 
 static void __vp_repeat_genlist_realized(void *data, Evas_Object *obj,
-               void *event_info)
+                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_repeat_popup_rotate_cb(void *data, Evas_Object *obj,
-                                       void *event_info)
+                                        void *event_info)
 {
        RepeatPopup *pRepeat = (RepeatPopup *) data;
        if (!pRepeat) {
@@ -70,14 +70,14 @@ static void __vp_repeat_popup_rotate_cb(void *data, Evas_Object *obj,
                return;
        }
        vp_popup_set_popup_min_size(pRepeat->pParent, pRepeat->pBox,
-                                   pRepeat->nListCount, VIDEO_POPUP_DEFAULT);
+                                   pRepeat->nListCount, VIDEO_POPUP_DEFAULT);
 
 }
 
 /* callback functions */
 static char *__vp_repeat_genlist_text_get_cb(const void *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+                                Evas_Object *pObj,
+                                const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -94,9 +94,9 @@ static char *__vp_repeat_genlist_text_get_cb(const void *pUserData,
 }
 
 static Evas_Object *__vp_repeat_genlist_content_get_cb(const void
-               *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+                                *pUserData,
+                                Evas_Object *pObj,
+                                const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -109,8 +109,8 @@ static Evas_Object *__vp_repeat_genlist_content_get_cb(const void
                Evas_Object *pRadioObj = NULL;
 
                RepeatPopup *pRepeat =
-                       (RepeatPopup *) evas_object_data_get(pObj,
-                                       VP_REPEAT_GENLIST_DATA_KEY);
+                   (RepeatPopup *) evas_object_data_get(pObj,
+                           VP_REPEAT_GENLIST_DATA_KEY);
                if (pRepeat == NULL) {
                        VideoLogWarning("evas_object_data_get is fail");
                        return NULL;
@@ -133,8 +133,8 @@ static Evas_Object *__vp_repeat_genlist_content_get_cb(const void
                elm_radio_group_add(pRadioObj, pRepeat->pRadio);
                elm_radio_value_set(pRepeat->pRadio, pRepeat->repeatMode);
                evas_object_smart_callback_add(pRadioObj, "changed",
-                                              __vp_repeat_genlist_item_selected_cb,
-                                              pRepeat);
+                                              __vp_repeat_genlist_item_selected_cb,
+                                              pRepeat);
                evas_object_show(pRadioObj);
 
                return pRadioObj;
@@ -144,8 +144,8 @@ static Evas_Object *__vp_repeat_genlist_content_get_cb(const void
 }
 
 static void __vp_repeat_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *pObject,
-               void *pEventInfo)
+                                Evas_Object *pObject,
+                                void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -158,7 +158,7 @@ static void __vp_repeat_genlist_item_selected_cb(void *pUserData,
 
        Elm_Object_Item *pItem = (Elm_Object_Item *) pEventInfo;
        Elm_Object_Item *pSelectedItem =
-               elm_genlist_selected_item_get(pObject);
+           elm_genlist_selected_item_get(pObject);
        if (pSelectedItem) {
                elm_genlist_item_selected_set(pSelectedItem, EINA_FALSE);
        }
@@ -191,13 +191,13 @@ static void __vp_repeat_genlist_item_selected_cb(void *pUserData,
        VideoLogInfo("repeatMode=%d", pRepeat->repeatMode);
        if (pRepeat->pCloseCb) {
                pRepeat->pCloseCb((int) nType, FALSE,
-                                 (void *) pRepeat->pUserData);
+                                 (void *) pRepeat->pUserData);
        }
 }
 
 static void __vp_repeat_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -208,15 +208,15 @@ static void __vp_repeat_popup_key_event_cb(void *pUserData,
 
        if (pRepeat->pCloseCb) {
                pRepeat->pCloseCb(VIDEO_PLAY_REPEAT_NONE, FALSE,
-                                 (void *) pRepeat->pUserData);
+                                 (void *) pRepeat->pUserData);
        }
 }
 
 
 static void __vp_repeat_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+        Evas *pEvas,
+        Evas_Object *pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -235,7 +235,7 @@ static void __vp_repeat_popup_mouse_event_cb(void *pUserData,
 
                if (pRepeat->pCloseCb) {
                        pRepeat->pCloseCb(VIDEO_PLAY_REPEAT_NONE, FALSE,
-                                         (void *) pRepeat->pUserData);
+                                         (void *) pRepeat->pUserData);
                }
        }
 }
@@ -249,9 +249,9 @@ static void _vp_repeat_destroy_handle(RepeatPopup *pRepeat)
                return;
        }
        evas_object_smart_callback_del(pRepeat->pGenList, "realized",
-                                      __vp_repeat_genlist_realized);
+                                      __vp_repeat_genlist_realized);
        evas_object_smart_callback_del(pRepeat->pParent, "rotation,changed",
-                                      __vp_repeat_popup_rotate_cb);
+                                      __vp_repeat_popup_rotate_cb);
 
 
        VP_EVAS_DEL(pRepeat->pRadio);
@@ -282,7 +282,7 @@ static Evas_Object *_vp_repeat_create_genlist(Evas_Object *pParent)
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -290,7 +290,7 @@ static Evas_Object *_vp_repeat_create_genlist(Evas_Object *pParent)
 
 
 static bool _vp_repeat_add_genlist_item(Evas_Object *pObj,
-                                       void *pUserData)
+                                        void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -310,40 +310,40 @@ static bool _vp_repeat_add_genlist_item(Evas_Object *pObj,
 
        pRepeat->st_Repeat_Itc = elm_genlist_item_class_new();
 
-       if (pRepeat->st_Repeat_Itc != NULL) {   
+       if (pRepeat->st_Repeat_Itc != NULL) {
                pRepeat->st_Repeat_Itc->version = ELM_GENLIST_ITEM_CLASS_VERSION;
                pRepeat->st_Repeat_Itc->item_style = "1line";
                pRepeat->st_Repeat_Itc->func.text_get =
-                       (void *) __vp_repeat_genlist_text_get_cb;
+                   (void *) __vp_repeat_genlist_text_get_cb;
                pRepeat->st_Repeat_Itc->func.content_get =
-                       (void *) __vp_repeat_genlist_content_get_cb;
+                   (void *) __vp_repeat_genlist_content_get_cb;
                pRepeat->st_Repeat_Itc->func.state_get = NULL;
                pRepeat->st_Repeat_Itc->func.del = NULL;
                pRepeat->nListCount = 0;
 
                elm_genlist_item_append(pObj, pRepeat->st_Repeat_Itc,
-                               (void *) VP_PLAY_STRING_REPEAT_OFF, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_repeat_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_REPEAT_OFF, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_repeat_genlist_item_selected_cb,
+                                       pUserData);
                pRepeat->nListCount++;
                elm_genlist_item_append(pObj, pRepeat->st_Repeat_Itc,
-                               (void *) VP_PLAY_STRING_REPEAT_ALL_OFF, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_repeat_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_REPEAT_ALL_OFF, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_repeat_genlist_item_selected_cb,
+                                       pUserData);
                pRepeat->nListCount++;
                elm_genlist_item_append(pObj, pRepeat->st_Repeat_Itc,
-                               (void *) VP_PLAY_STRING_REPEAT_ONE, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_repeat_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_REPEAT_ONE, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_repeat_genlist_item_selected_cb,
+                                       pUserData);
                pRepeat->nListCount++;
                elm_genlist_item_append(pObj, pRepeat->st_Repeat_Itc,
-                               (void *) VP_PLAY_STRING_REPEAT_ALL, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_repeat_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_REPEAT_ALL, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_repeat_genlist_item_selected_cb,
+                                       pUserData);
                pRepeat->nListCount++;
        }
 
@@ -352,7 +352,7 @@ static bool _vp_repeat_add_genlist_item(Evas_Object *pObj,
 
 /* external functions */
 repeat_handle vp_repeat_create(Evas_Object *pParent, char *pMediaUrl,
-                              PopupCloseCbFunc pCloseCb)
+                               PopupCloseCbFunc pCloseCb)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -379,11 +379,11 @@ repeat_handle vp_repeat_create(Evas_Object *pParent, char *pMediaUrl,
        VP_STRDUP(pRepeat->pMediUrl, pMediaUrl);
 
        pRepeat->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_POPUP_REPEAT_SETTING, NULL, 0.0,
-                               NULL, __vp_repeat_popup_key_event_cb,
-                               __vp_repeat_popup_mouse_event_cb,
-                               (void *) pRepeat);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_POPUP_REPEAT_SETTING, NULL, 0.0,
+                           NULL, __vp_repeat_popup_key_event_cb,
+                           __vp_repeat_popup_mouse_event_cb,
+                           (void *) pRepeat);
 
        if (pRepeat->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
@@ -397,7 +397,7 @@ repeat_handle vp_repeat_create(Evas_Object *pParent, char *pMediaUrl,
                return NULL;
        }
        evas_object_data_set(pRepeat->pGenList, VP_REPEAT_GENLIST_DATA_KEY,
-                            (void *) pRepeat);
+                            (void *) pRepeat);
 
        pRepeat->pRadio = elm_radio_add(pRepeat->pGenList);
 
@@ -407,9 +407,9 @@ repeat_handle vp_repeat_create(Evas_Object *pParent, char *pMediaUrl,
                return NULL;
        }
        evas_object_smart_callback_add(pRepeat->pGenList, "realized",
-                                      __vp_repeat_genlist_realized, NULL);
+                                      __vp_repeat_genlist_realized, NULL);
        evas_object_smart_callback_add(pRepeat->pParent, "rotation,changed",
-                                      __vp_repeat_popup_rotate_cb, pRepeat);
+                                      __vp_repeat_popup_rotate_cb, pRepeat);
 
        int nType = 0;
 
@@ -420,7 +420,7 @@ repeat_handle vp_repeat_create(Evas_Object *pParent, char *pMediaUrl,
 
        pRepeat->pBox = elm_box_add(pRepeat->pPopup);
        vp_popup_set_popup_min_size(pRepeat->pParent, pRepeat->pBox,
-                                   pRepeat->nListCount, VIDEO_POPUP_DEFAULT);
+                                   pRepeat->nListCount, VIDEO_POPUP_DEFAULT);
 
        elm_box_pack_end(pRepeat->pBox, pRepeat->pGenList);
 
index 2d8fc09..dffedf9 100644 (file)
@@ -53,17 +53,17 @@ typedef struct _SettingPopup {
 
 static void _vp_setting_destroy_handle(SettingPopup *pSetting);
 static void __vp_setting_genlist_realized(void *data, Evas_Object *obj,
-               void *event_info);
+                        void *event_info);
 static void __vp_setting_popup_rotate_cb(void *data, Evas_Object *obj,
-               void *event_info);
+                        void *event_info);
 
 
 /* callback functions */
 
 
 static char *__vp_setting_genlist_text_get_cb(const void *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -77,8 +77,8 @@ static char *__vp_setting_genlist_text_get_cb(const void *pUserData,
        } else if (!strcmp(pPart, "elm.text.2")) {
 
                SettingPopup *pSetting =
-                       (SettingPopup *) evas_object_data_get(pObj,
-                                       VP_SETTING_GENLIST_DATA_KEY);
+                   (SettingPopup *) evas_object_data_get(pObj,
+                           VP_SETTING_GENLIST_DATA_KEY);
                if (pSetting == NULL) {
                        return NULL;
                }
@@ -108,7 +108,7 @@ static char *__vp_setting_genlist_text_get_cb(const void *pUserData,
                        if (pSettingInfo->nRepeatMode == VIDEO_PLAY_REPEAT_OFF) {
                                return strdup(VP_PLAY_STRING_REPEAT_OFF);
                        } else if (pSettingInfo->nRepeatMode ==
-                                       VIDEO_PLAY_REPEAT_ALL_STOP) {
+                                  VIDEO_PLAY_REPEAT_ALL_STOP) {
                                return strdup(VP_PLAY_STRING_REPEAT_ALL_OFF);
                        } else if (pSettingInfo->nRepeatMode == VIDEO_PLAY_REPEAT_ONE) {
                                return strdup(VP_PLAY_STRING_REPEAT_ONE);
@@ -140,8 +140,8 @@ static char *__vp_setting_genlist_text_get_cb(const void *pUserData,
 }
 
 static void __vp_setting_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *pObject,
-               void *pEventInfo)
+                        Evas_Object *pObject,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -188,8 +188,8 @@ static void __vp_setting_genlist_item_selected_cb(void *pUserData,
 }
 
 static void __vp_setting_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -199,14 +199,14 @@ static void __vp_setting_popup_key_event_cb(void *pUserData,
 
        if (pSetting->pCloseCb) {
                pSetting->pCloseCb(VP_SETTING_MODE_NONE, FALSE,
-                                  (void *) pSetting->pUserData);
+                                  (void *) pSetting->pUserData);
        }
 }
 
 static void __vp_setting_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas *pEvas,
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -225,7 +225,7 @@ static void __vp_setting_popup_mouse_event_cb(void *pUserData,
 
                if (pSetting->pCloseCb) {
                        pSetting->pCloseCb(VP_SETTING_MODE_NONE, FALSE,
-                                          (void *) pSetting->pUserData);
+                                          (void *) pSetting->pUserData);
                }
        }
 }
@@ -240,9 +240,9 @@ static void _vp_setting_destroy_handle(SettingPopup *pSetting)
                return;
        }
        evas_object_smart_callback_del(pSetting->pGenList, "realized",
-                                      __vp_setting_genlist_realized);
+                                      __vp_setting_genlist_realized);
        evas_object_smart_callback_del(pSetting->pParent, "rotation,changed",
-                                      __vp_setting_popup_rotate_cb);
+                                      __vp_setting_popup_rotate_cb);
 
 
        VP_EVAS_DEL(pSetting->pGenList);
@@ -273,7 +273,7 @@ static Evas_Object *_vp_setting_create_genlist(Evas_Object *pParent)
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -281,7 +281,7 @@ static Evas_Object *_vp_setting_create_genlist(Evas_Object *pParent)
 
 
 static bool _vp_setting_add_genlist_item(Evas_Object *pObj,
-               void *pUserData)
+        void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -319,7 +319,7 @@ static bool _vp_setting_add_genlist_item(Evas_Object *pObj,
                pSetting->st_Setting_Itc->version = ELM_GENLIST_ITEM_CLASS_VERSION;
                pSetting->st_Setting_Itc->item_style = "2text.2/popup";
                pSetting->st_Setting_Itc->func.text_get =
-                       (void *) __vp_setting_genlist_text_get_cb;
+                   (void *) __vp_setting_genlist_text_get_cb;
                pSetting->st_Setting_Itc->func.content_get = NULL;
                pSetting->st_Setting_Itc->func.state_get = NULL;
                pSetting->st_Setting_Itc->func.del = NULL;
@@ -327,60 +327,60 @@ static bool _vp_setting_add_genlist_item(Evas_Object *pObj,
 
        if (bStreaming == FALSE) {
                elm_genlist_item_append(pObj, pSetting->st_Setting_Itc,
-                                       (void *) VP_PLAY_STRING_POPUP_PLAY_SPEED,
-                                       NULL, ELM_GENLIST_ITEM_NONE,
-                                       __vp_setting_genlist_item_selected_cb,
-                                       (void *) pSetting);
+                                       (void *) VP_PLAY_STRING_POPUP_PLAY_SPEED,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_setting_genlist_item_selected_cb,
+                                       (void *) pSetting);
                pSetting->nAppendItemCnt++;
        }
 
        elm_genlist_item_append(pObj, pSetting->st_Setting_Itc,
-                               (void *) VP_PLAY_STRING_POPUP_SOUND_ALIVE,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_setting_genlist_item_selected_cb,
-                               (void *) pSetting);
+                               (void *) VP_PLAY_STRING_POPUP_SOUND_ALIVE,
+                               NULL, ELM_GENLIST_ITEM_NONE,
+                               __vp_setting_genlist_item_selected_cb,
+                               (void *) pSetting);
        pSetting->nAppendItemCnt++;
 
 
        if (bStreaming == FALSE) {
                elm_genlist_item_append(pObj, pSetting->st_Setting_Itc,
-                                       (void *) VP_PLAY_STRING_POPUP_AUDIO_TRACK,
-                                       NULL, ELM_GENLIST_ITEM_NONE,
-                                       __vp_setting_genlist_item_selected_cb,
-                                       (void *) pSetting);
+                                       (void *) VP_PLAY_STRING_POPUP_AUDIO_TRACK,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_setting_genlist_item_selected_cb,
+                                       (void *) pSetting);
                pSetting->nAppendItemCnt++;
                elm_genlist_item_append(pObj, pSetting->st_Setting_Itc,
-                                       (void *)
-                                       VP_PLAY_STRING_POPUP_REPEAT_SETTING, NULL,
-                                       ELM_GENLIST_ITEM_NONE,
-                                       __vp_setting_genlist_item_selected_cb,
-                                       (void *) pSetting);
+                                       (void *)
+                                       VP_PLAY_STRING_POPUP_REPEAT_SETTING, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_setting_genlist_item_selected_cb,
+                                       (void *) pSetting);
                pSetting->nAppendItemCnt++;
 
                if (bDrm == FALSE && bExternalVideoMode == FALSE) {
                        elm_genlist_item_append(pObj, pSetting->st_Setting_Itc,
-                                               (void *) VP_PLAY_STRING_POPUP_CAPTURE,
-                                               NULL, ELM_GENLIST_ITEM_NONE,
-                                               __vp_setting_genlist_item_selected_cb,
-                                               (void *) pSetting);
+                                               (void *) VP_PLAY_STRING_POPUP_CAPTURE,
+                                               NULL, ELM_GENLIST_ITEM_NONE,
+                                               __vp_setting_genlist_item_selected_cb,
+                                               (void *) pSetting);
                        pSetting->nAppendItemCnt++;
                }
        }
 
        if (bStreaming == FALSE && bDrm == FALSE) {
                elm_genlist_item_append(pObj, pSetting->st_Setting_Itc,
-                                       (void *) VP_PLAY_STRING_POPUP_TAG_BUDDY,
-                                       NULL, ELM_GENLIST_ITEM_NONE,
-                                       __vp_setting_genlist_item_selected_cb,
-                                       (void *) pSetting);
+                                       (void *) VP_PLAY_STRING_POPUP_TAG_BUDDY,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_setting_genlist_item_selected_cb,
+                                       (void *) pSetting);
                pSetting->nAppendItemCnt++;
                if (bShowEditWeather == TRUE) {
                        elm_genlist_item_append(pObj, pSetting->st_Setting_Itc,
-                                               (void *)
-                                               VP_PLAY_STRING_POPUP_EDIT_WEATHER_TAG,
-                                               NULL, ELM_GENLIST_ITEM_NONE,
-                                               __vp_setting_genlist_item_selected_cb,
-                                               (void *) pSetting);
+                                               (void *)
+                                               VP_PLAY_STRING_POPUP_EDIT_WEATHER_TAG,
+                                               NULL, ELM_GENLIST_ITEM_NONE,
+                                               __vp_setting_genlist_item_selected_cb,
+                                               (void *) pSetting);
                        pSetting->nAppendItemCnt++;
                }
        }
@@ -389,13 +389,13 @@ static bool _vp_setting_add_genlist_item(Evas_Object *pObj,
 }
 
 static void __vp_setting_genlist_realized(void *data, Evas_Object *obj,
-               void *event_info)
+                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_setting_popup_rotate_cb(void *data, Evas_Object *obj,
-               void *event_info)
+        void *event_info)
 {
        SettingPopup *pSetting = (SettingPopup *) data;
        if (!pSetting) {
@@ -406,15 +406,15 @@ static void __vp_setting_popup_rotate_cb(void *data, Evas_Object *obj,
                return;
        }
        vp_popup_set_popup_min_size(pSetting->pParent, pSetting->pBox,
-                                   pSetting->nAppendItemCnt,
-                                   VIDEO_POPUP_2_TEXT);
+                                   pSetting->nAppendItemCnt,
+                                   VIDEO_POPUP_2_TEXT);
 
 }
 
 /* external functions */
 setting_popup_handle vp_setting_create(Evas_Object *pParent,
-                                      SettingInfo *pSettingInfo,
-                                      PopupCloseCbFunc pCloseCb)
+                                       SettingInfo *pSettingInfo,
+                                       PopupCloseCbFunc pCloseCb)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -445,30 +445,30 @@ setting_popup_handle vp_setting_create(Evas_Object *pParent,
        pSetting->pSettingInfo->fSpeed = pSettingInfo->fSpeed;
        pSetting->pSettingInfo->nSoundAlive = pSettingInfo->nSoundAlive;
        VP_STRDUP(pSetting->pSettingInfo->szAudioTrack,
-                 pSettingInfo->szAudioTrack);
+                 pSettingInfo->szAudioTrack);
        pSetting->pSettingInfo->nRepeatMode = pSettingInfo->nRepeatMode;
        pSetting->pSettingInfo->bCapture = pSettingInfo->bCapture;
        pSetting->pSettingInfo->bTagBuddy = pSettingInfo->bTagBuddy;
        pSetting->pSettingInfo->bEditWeatherTag =
-               pSettingInfo->bEditWeatherTag;
+           pSettingInfo->bEditWeatherTag;
        pSetting->pSettingInfo->bStreaming = pSettingInfo->bStreaming;
        pSetting->pSettingInfo->bRepeat = pSettingInfo->bRepeat;
        pSetting->pSettingInfo->bSelectSubtitle =
-               pSettingInfo->bSelectSubtitle;
+           pSettingInfo->bSelectSubtitle;
        pSetting->pSettingInfo->bDrm = pSettingInfo->bDrm;
        pSetting->pSettingInfo->bExternalMode = pSettingInfo->bExternalMode;
        pSetting->pSettingInfo->bShowEditWeather =
-               pSettingInfo->bShowEditWeather;
+           pSettingInfo->bShowEditWeather;
 
        pSetting->pParent = pParent;
        pSetting->pCloseCb = pCloseCb;
 
        pSetting->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_SETTINGS, NULL, 0.0, NULL,
-                               __vp_setting_popup_key_event_cb,
-                               __vp_setting_popup_mouse_event_cb,
-                               (void *) pSetting);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_SETTINGS, NULL, 0.0, NULL,
+                           __vp_setting_popup_key_event_cb,
+                           __vp_setting_popup_mouse_event_cb,
+                           (void *) pSetting);
        if (pSetting->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
                _vp_setting_destroy_handle(pSetting);
@@ -482,25 +482,25 @@ setting_popup_handle vp_setting_create(Evas_Object *pParent,
                return NULL;
        }
        evas_object_data_set(pSetting->pGenList, VP_SETTING_GENLIST_DATA_KEY,
-                            (void *) pSetting);
+                            (void *) pSetting);
        vp_language_list_create();
 
        if (!_vp_setting_add_genlist_item
-                       (pSetting->pGenList, (void *) pSetting)) {
+               (pSetting->pGenList, (void *) pSetting)) {
                VideoLogError("_vp_setting_add_genlist_item fail");
                _vp_setting_destroy_handle(pSetting);
                return NULL;
        }
        evas_object_smart_callback_add(pSetting->pGenList, "realized",
-                                      __vp_setting_genlist_realized, NULL);
+                                      __vp_setting_genlist_realized, NULL);
        evas_object_smart_callback_add(pSetting->pParent, "rotation,changed",
-                                      __vp_setting_popup_rotate_cb,
-                                      pSetting);
+                                      __vp_setting_popup_rotate_cb,
+                                      pSetting);
 
        pSetting->pBox = elm_box_add(pSetting->pPopup);
        vp_popup_set_popup_min_size(pSetting->pParent, pSetting->pBox,
-                                   pSetting->nAppendItemCnt,
-                                   VIDEO_POPUP_2_TEXT);
+                                   pSetting->nAppendItemCnt,
+                                   VIDEO_POPUP_2_TEXT);
 
        elm_box_pack_end(pSetting->pBox, pSetting->pGenList);
 
@@ -552,7 +552,7 @@ bool vp_setting_unrealize(setting_popup_handle pSettingHandle)
 }
 
 bool vp_setting_set_user_data(setting_popup_handle pSettingHandle,
-                             void *pUserData)
+                              void *pUserData)
 {
        if (pSettingHandle == NULL) {
                VideoLogError("pSettingHandle is NULL");
index fca2476..83e3715 100644 (file)
@@ -41,7 +41,7 @@ typedef struct _SharePopup {
 } SharePopup;
 
 static void __vp_share_popup_rotate_cb(void *data, Evas_Object *obj,
-                                      void *event_info)
+                                       void *event_info)
 {
        SharePopup *pShare = (SharePopup *) data;
        if (!pShare) {
@@ -52,7 +52,7 @@ static void __vp_share_popup_rotate_cb(void *data, Evas_Object *obj,
                return;
        }
        vp_popup_set_popup_min_size(pShare->pParent, pShare->pBox,
-                                   pShare->nListCount, VIDEO_POPUP_DEFAULT);
+                                   pShare->nListCount, VIDEO_POPUP_DEFAULT);
 
 }
 
@@ -63,7 +63,7 @@ static void _vp_share_destroy_handle(SharePopup *pShare)
                return;
        }
        evas_object_smart_callback_del(pShare->pParent, "rotation,changed",
-                                      __vp_share_popup_rotate_cb);
+                                      __vp_share_popup_rotate_cb);
 
        VP_EVAS_DEL(pShare->pGenList);
        VP_EVAS_DEL(pShare->pButton);
@@ -78,8 +78,8 @@ static void _vp_share_destroy_handle(SharePopup *pShare)
 
 /* callback functions */
 static char *__vp_share_genlist_text_get_cb(const void *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+                                Evas_Object *pObj,
+                                const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -96,8 +96,8 @@ static char *__vp_share_genlist_text_get_cb(const void *pUserData,
 }
 
 static void __vp_share_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *pObject,
-               void *pEventInfo)
+                                Evas_Object *pObject,
+                                void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -161,7 +161,7 @@ static void __vp_share_genlist_item_selected_cb(void *pUserData,
 
 
 static void __vp_share_close_btn_cb(void *pUserData, Evas_Object *pObj,
-                                   void *pEventInfo)
+                                    void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pShareHandle is NULL");
@@ -172,13 +172,13 @@ static void __vp_share_close_btn_cb(void *pUserData, Evas_Object *pObj,
 
        if (pShare->pCloseCb) {
                pShare->pCloseCb(VP_SHARE_NONE, FALSE,
-                                (void *) pShare->pUserData);
+                                (void *) pShare->pUserData);
        }
 }
 
 static void __vp_share_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+        Evas_Object *pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -189,13 +189,13 @@ static void __vp_share_popup_key_event_cb(void *pUserData,
 
        if (pShare->pCloseCb) {
                pShare->pCloseCb(VP_SHARE_NONE, FALSE,
-                                (void *) pShare->pUserData);
+                                (void *) pShare->pUserData);
        }
 }
 
 static void __vp_share_popup_mouse_event_cb(void *pUserData, Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                                Evas_Object *pObj,
+                                void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -214,7 +214,7 @@ static void __vp_share_popup_mouse_event_cb(void *pUserData, Evas *pEvas,
 
                if (pShare->pCloseCb) {
                        pShare->pCloseCb(VP_SHARE_NONE, FALSE,
-                                        (void *) pShare->pUserData);
+                                        (void *) pShare->pUserData);
                }
        }
 }
@@ -222,7 +222,7 @@ static void __vp_share_popup_mouse_event_cb(void *pUserData, Evas *pEvas,
 
 /* internal functions */
 static Evas_Object *_vp_share_create_button(Evas_Object *pParent,
-               void *pUserData)
+        void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -233,10 +233,10 @@ static Evas_Object *_vp_share_create_button(Evas_Object *pParent,
        pObj = elm_button_add(pParent);
        elm_object_style_set(pObj, "popup_button/default");
        elm_object_domain_translatable_text_set(pObj, VP_SYS_STR_PREFIX,
-                                               VP_PLAY_STRING_COM_CLOSE_IDS);
+                                               VP_PLAY_STRING_COM_CLOSE_IDS);
        elm_object_part_content_set(pParent, "button1", pObj);
        evas_object_smart_callback_add(pObj, "clicked",
-                                      __vp_share_close_btn_cb, pUserData);
+                                      __vp_share_close_btn_cb, pUserData);
        evas_object_show(pObj);
 
        return pObj;
@@ -253,7 +253,7 @@ static Evas_Object *_vp_share_create_genlist(Evas_Object *pParent)
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -261,7 +261,7 @@ static Evas_Object *_vp_share_create_genlist(Evas_Object *pParent)
 
 
 static bool _vp_share_add_genlist_item(Evas_Object *pObj,
-                                      void *pUserData)
+                                       void *pUserData)
 {
        if (!pObj || !pUserData) {
                VideoLogError("pObj is NULL");
@@ -283,34 +283,34 @@ static bool _vp_share_add_genlist_item(Evas_Object *pObj,
                pShare->nListCount = 0;
 
                elm_genlist_item_append(pObj, st_Share_Itc,
-                               (void *) VP_PLAY_STRING_SHARE_MESSAGE, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_share_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_SHARE_MESSAGE, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_share_genlist_item_selected_cb,
+                                       pUserData);
                pShare->nListCount++;
                elm_genlist_item_append(pObj, st_Share_Itc,
-                               (void *) VP_PLAY_STRING_SHARE_EMAIL, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_share_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_SHARE_EMAIL, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_share_genlist_item_selected_cb,
+                                       pUserData);
                pShare->nListCount++;
                elm_genlist_item_append(pObj, st_Share_Itc,
-                               (void *) VP_PLAY_STRING_SHARE_FTM, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_share_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_SHARE_FTM, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_share_genlist_item_selected_cb,
+                                       pUserData);
                pShare->nListCount++;
                elm_genlist_item_append(pObj, st_Share_Itc,
-                               (void *) VP_PLAY_STRING_SHARE_BLUETOOTH, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_share_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_SHARE_BLUETOOTH, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_share_genlist_item_selected_cb,
+                                       pUserData);
                pShare->nListCount++;
                elm_genlist_item_append(pObj, st_Share_Itc,
-                               (void *) VP_PLAY_STRING_SHARE_FACEBOOK, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_share_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_SHARE_FACEBOOK, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_share_genlist_item_selected_cb,
+                                       pUserData);
                elm_genlist_item_class_free(st_Share_Itc);
        }
 
@@ -319,7 +319,7 @@ static bool _vp_share_add_genlist_item(Evas_Object *pObj,
 
 /* external functions */
 share_handle vp_share_create(Evas_Object *pParent, char *pMediaUrl,
-                            PopupCloseCbFunc pCloseCb)
+                             PopupCloseCbFunc pCloseCb)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -346,10 +346,10 @@ share_handle vp_share_create(Evas_Object *pParent, char *pMediaUrl,
        VP_STRDUP(pShare->pMediUrl, pMediaUrl);
 
        pShare->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_WITH_CANCEL_BTN,
-                               VP_PLAY_STRING_POPUP_SHARE, NULL, 0.0, NULL,
-                               __vp_share_popup_key_event_cb,
-                               __vp_share_popup_mouse_event_cb, (void *) pShare);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_WITH_CANCEL_BTN,
+                           VP_PLAY_STRING_POPUP_SHARE, NULL, 0.0, NULL,
+                           __vp_share_popup_key_event_cb,
+                           __vp_share_popup_mouse_event_cb, (void *) pShare);
        if (pShare->pPopup == NULL) {
                VideoLogError("_vp_share_create_popup fail");
                _vp_share_destroy_handle(pShare);
@@ -357,7 +357,7 @@ share_handle vp_share_create(Evas_Object *pParent, char *pMediaUrl,
        }
 
        pShare->pButton =
-               _vp_share_create_button(pShare->pPopup, (void *) pShare);
+           _vp_share_create_button(pShare->pPopup, (void *) pShare);
        if (pShare->pButton == NULL) {
                VideoLogError("_vp_share_create_button fail");
                _vp_share_destroy_handle(pShare);
@@ -376,12 +376,12 @@ share_handle vp_share_create(Evas_Object *pParent, char *pMediaUrl,
                return NULL;
        }
        evas_object_smart_callback_add(pShare->pParent, "rotation,changed",
-                                      __vp_share_popup_rotate_cb, pShare);
+                                      __vp_share_popup_rotate_cb, pShare);
 
        pShare->pBox = elm_box_add(pShare->pPopup);
 
        vp_popup_set_popup_min_size(pShare->pParent, pShare->pBox,
-                                   pShare->nListCount, VIDEO_POPUP_DEFAULT);
+                                   pShare->nListCount, VIDEO_POPUP_DEFAULT);
 
        elm_box_pack_end(pShare->pBox, pShare->pGenList);
 
index 88bb63a..28054c4 100644 (file)
@@ -45,20 +45,20 @@ typedef struct _SoundAlivePopup {
 } SoundAlivePopup;
 
 static void __vp_sound_alive_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo);
+                        Evas_Object *
+                        pObject,
+        void *pEventInfo);
 
 static void __vp_sound_alive_genlist_realized(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_sound_alive_popup_rotate_cb(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        SoundAlivePopup *pSoundAlive = (SoundAlivePopup *) data;
        if (!pSoundAlive) {
@@ -69,8 +69,8 @@ static void __vp_sound_alive_popup_rotate_cb(void *data,
                return;
        }
        vp_popup_set_popup_min_size(pSoundAlive->pParent, pSoundAlive->pBox,
-                                   pSoundAlive->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSoundAlive->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
 
 }
 
@@ -82,10 +82,10 @@ static void _vp_sound_alive_destroy_handle(SoundAlivePopup *pSoundAlive)
        }
 
        evas_object_smart_callback_del(pSoundAlive->pParent,
-                                      "rotation,changed",
-                                      __vp_sound_alive_popup_rotate_cb);
+                                      "rotation,changed",
+                                      __vp_sound_alive_popup_rotate_cb);
        evas_object_smart_callback_del(pSoundAlive->pGenList, "realized",
-                                      __vp_sound_alive_genlist_realized);
+                                      __vp_sound_alive_genlist_realized);
 
        VP_EVAS_DEL(pSoundAlive->pRadio);
        VP_EVAS_DEL(pSoundAlive->pGenList);
@@ -107,8 +107,8 @@ static void _vp_sound_alive_destroy_handle(SoundAlivePopup *pSoundAlive)
 
 /* callback functions */
 static char *__vp_sound_alive_genlist_text_get_cb(const void *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+        Evas_Object *pObj,
+        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -125,11 +125,9 @@ static char *__vp_sound_alive_genlist_text_get_cb(const void *pUserData,
 }
 
 static Evas_Object *__vp_sound_alive_genlist_content_get_cb(const void
-               *pUserData,
-               Evas_Object *
-               pObj,
-               const char
-               *pPart)
+                        *pUserData,
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -142,8 +140,8 @@ static Evas_Object *__vp_sound_alive_genlist_content_get_cb(const void
                Evas_Object *pRadioObj = NULL;
 
                SoundAlivePopup *pSoundAlive =
-                       (SoundAlivePopup *) evas_object_data_get(pObj,
-                                       VP_SOUND_ALIVE_GENLIST_DATA_KEY);
+                   (SoundAlivePopup *) evas_object_data_get(pObj,
+                           VP_SOUND_ALIVE_GENLIST_DATA_KEY);
                if (pSoundAlive == NULL) {
                        VideoLogWarning("evas_object_data_get is fail");
                        return NULL;
@@ -165,10 +163,10 @@ static Evas_Object *__vp_sound_alive_genlist_content_get_cb(const void
                elm_radio_state_value_set(pRadioObj, nType);
                elm_radio_group_add(pRadioObj, pSoundAlive->pRadio);
                elm_radio_value_set(pSoundAlive->pRadio,
-                                   pSoundAlive->soundAliveType);
+                                   pSoundAlive->soundAliveType);
                evas_object_smart_callback_add(pRadioObj, "changed",
-                                              __vp_sound_alive_genlist_item_selected_cb,
-                                              pSoundAlive);
+                                              __vp_sound_alive_genlist_item_selected_cb,
+                                              pSoundAlive);
                evas_object_show(pRadioObj);
 
                return pRadioObj;
@@ -178,9 +176,8 @@ static Evas_Object *__vp_sound_alive_genlist_content_get_cb(const void
 }
 
 static void __vp_sound_alive_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo)
+                                Evas_Object *pObject,
+                                void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -193,7 +190,7 @@ static void __vp_sound_alive_genlist_item_selected_cb(void *pUserData,
 
        Elm_Object_Item *pItem = (Elm_Object_Item *) pEventInfo;
        Elm_Object_Item *pSelectedItem =
-               elm_genlist_selected_item_get(pObject);
+           elm_genlist_selected_item_get(pObject);
        if (pSelectedItem) {
                elm_genlist_item_selected_set(pSelectedItem, EINA_FALSE);
        }
@@ -228,13 +225,13 @@ static void __vp_sound_alive_genlist_item_selected_cb(void *pUserData,
        pSoundAlive->soundAliveType = nType;
        if (pSoundAlive->pCloseCb) {
                pSoundAlive->pCloseCb((int) nType, FALSE,
-                                     (void *) pSoundAlive->pUserData);
+                                     (void *) pSoundAlive->pUserData);
        }
 }
 
 static void __vp_sound_alive_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+        Evas_Object *pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -245,14 +242,14 @@ static void __vp_sound_alive_popup_key_event_cb(void *pUserData,
 
        if (pSoundAlive->pCloseCb) {
                pSoundAlive->pCloseCb(VIDEO_SA_NONE, FALSE,
-                                     (void *) pSoundAlive->pUserData);
+                                     (void *) pSoundAlive->pUserData);
        }
 }
 
 static void __vp_sound_alive_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas *pEvas,
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -271,7 +268,7 @@ static void __vp_sound_alive_popup_mouse_event_cb(void *pUserData,
 
                if (pSoundAlive->pCloseCb) {
                        pSoundAlive->pCloseCb(VIDEO_SA_NONE, FALSE,
-                                             (void *) pSoundAlive->pUserData);
+                                             (void *) pSoundAlive->pUserData);
                }
        }
 }
@@ -287,7 +284,7 @@ static Evas_Object *_vp_sound_alive_create_genlist(Evas_Object *pParent)
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -295,7 +292,7 @@ static Evas_Object *_vp_sound_alive_create_genlist(Evas_Object *pParent)
 
 
 static bool _vp_sound_alive_add_genlist_item(Evas_Object *pObj,
-               void *pUserData)
+        void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -314,14 +311,14 @@ static bool _vp_sound_alive_add_genlist_item(Evas_Object *pObj,
        }
 
        pSoundAlive->st_Sa_Itc = elm_genlist_item_class_new();
-       
+
        if (pSoundAlive->st_Sa_Itc != NULL) {
                pSoundAlive->st_Sa_Itc->version = ELM_GENLIST_ITEM_CLASS_VERSION;
                pSoundAlive->st_Sa_Itc->item_style = "1line";
                pSoundAlive->st_Sa_Itc->func.text_get =
-                       (void *) __vp_sound_alive_genlist_text_get_cb;
+                   (void *) __vp_sound_alive_genlist_text_get_cb;
                pSoundAlive->st_Sa_Itc->func.content_get =
-                       (void *) __vp_sound_alive_genlist_content_get_cb;
+                   (void *) __vp_sound_alive_genlist_content_get_cb;
                pSoundAlive->st_Sa_Itc->func.state_get = NULL;
                pSoundAlive->st_Sa_Itc->func.del = NULL;
        }
@@ -329,41 +326,41 @@ static bool _vp_sound_alive_add_genlist_item(Evas_Object *pObj,
        pSoundAlive->nListCount = 0;
 
        elm_genlist_item_append(pObj, pSoundAlive->st_Sa_Itc,
-                               (void *) VP_PLAY_STRING_SOUND_ALIVE_NORMAL,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_sound_alive_genlist_item_selected_cb,
-                               pUserData);
+                               (void *) VP_PLAY_STRING_SOUND_ALIVE_NORMAL,
+                               NULL, ELM_GENLIST_ITEM_NONE,
+                               __vp_sound_alive_genlist_item_selected_cb,
+                               pUserData);
        pSoundAlive->nListCount++;
 
        video_sound_device_type_t nSoundDevType = VP_SOUND_DEVICE_NONE;
        vp_sound_get_active_device(&nSoundDevType);
        if (nSoundDevType == VP_SOUND_DEVICE_SPEAKER) {
                elm_genlist_item_append(pObj, pSoundAlive->st_Sa_Itc,
-                                       (void *) VP_PLAY_STRING_SOUND_ALIVE_VOICE,
-                                       NULL, ELM_GENLIST_ITEM_NONE,
-                                       __vp_sound_alive_genlist_item_selected_cb,
-                                       pUserData);
+                                       (void *) VP_PLAY_STRING_SOUND_ALIVE_VOICE,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_sound_alive_genlist_item_selected_cb,
+                                       pUserData);
                pSoundAlive->nListCount++;
        } else if (nSoundDevType == VP_SOUND_DEVICE_HDMI
-                       || nSoundDevType == VP_SOUND_DEVICE_BLUETOOTH) {
+                  || nSoundDevType == VP_SOUND_DEVICE_BLUETOOTH) {
        } else {
                elm_genlist_item_append(pObj, pSoundAlive->st_Sa_Itc,
-                                       (void *) VP_PLAY_STRING_SOUND_ALIVE_VOICE,
-                                       NULL, ELM_GENLIST_ITEM_NONE,
-                                       __vp_sound_alive_genlist_item_selected_cb,
-                                       pUserData);
+                                       (void *) VP_PLAY_STRING_SOUND_ALIVE_VOICE,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_sound_alive_genlist_item_selected_cb,
+                                       pUserData);
                pSoundAlive->nListCount++;
                elm_genlist_item_append(pObj, pSoundAlive->st_Sa_Itc,
-                                       (void *) VP_PLAY_STRING_SOUND_ALIVE_MOVIE,
-                                       NULL, ELM_GENLIST_ITEM_NONE,
-                                       __vp_sound_alive_genlist_item_selected_cb,
-                                       pUserData);
+                                       (void *) VP_PLAY_STRING_SOUND_ALIVE_MOVIE,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_sound_alive_genlist_item_selected_cb,
+                                       pUserData);
                pSoundAlive->nListCount++;
                elm_genlist_item_append(pObj, pSoundAlive->st_Sa_Itc,
-                                       (void *) VP_PLAY_STRING_SOUND_ALIVE_71CH,
-                                       NULL, ELM_GENLIST_ITEM_NONE,
-                                       __vp_sound_alive_genlist_item_selected_cb,
-                                       pUserData);
+                                       (void *) VP_PLAY_STRING_SOUND_ALIVE_71CH,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_sound_alive_genlist_item_selected_cb,
+                                       pUserData);
                pSoundAlive->nListCount++;
        }
 
@@ -372,9 +369,9 @@ static bool _vp_sound_alive_add_genlist_item(Evas_Object *pObj,
 
 /* external functions */
 sound_alive_handle vp_sound_alive_create(Evas_Object *pParent,
-               char *pMediaUrl,
-               PopupCloseCbFunc pCloseCb,
-               video_sound_alive_t nType)
+                        char *pMediaUrl,
+                        PopupCloseCbFunc pCloseCb,
+                        video_sound_alive_t nType)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -401,11 +398,11 @@ sound_alive_handle vp_sound_alive_create(Evas_Object *pParent,
        VP_STRDUP(pSoundAlive->pMediUrl, pMediaUrl);
 
        pSoundAlive->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_POPUP_SOUND_ALIVE, NULL, 0.0, NULL,
-                               __vp_sound_alive_popup_key_event_cb,
-                               __vp_sound_alive_popup_mouse_event_cb,
-                               (void *) pSoundAlive);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_POPUP_SOUND_ALIVE, NULL, 0.0, NULL,
+                           __vp_sound_alive_popup_key_event_cb,
+                           __vp_sound_alive_popup_mouse_event_cb,
+                           (void *) pSoundAlive);
        if (pSoundAlive->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
                _vp_sound_alive_destroy_handle(pSoundAlive);
@@ -413,23 +410,23 @@ sound_alive_handle vp_sound_alive_create(Evas_Object *pParent,
        }
 
        pSoundAlive->pGenList =
-               _vp_sound_alive_create_genlist(pSoundAlive->pPopup);
+           _vp_sound_alive_create_genlist(pSoundAlive->pPopup);
        if (pSoundAlive->pGenList == NULL) {
                VideoLogError("_vp_sound_alive_create_genlist fail");
                _vp_sound_alive_destroy_handle(pSoundAlive);
                return NULL;
        }
        evas_object_data_set(pSoundAlive->pGenList,
-                            VP_SOUND_ALIVE_GENLIST_DATA_KEY,
-                            (void *) pSoundAlive);
+                            VP_SOUND_ALIVE_GENLIST_DATA_KEY,
+                            (void *) pSoundAlive);
        evas_object_smart_callback_add(pSoundAlive->pGenList, "realized",
-                                      __vp_sound_alive_genlist_realized,
-                                      NULL);
+                                      __vp_sound_alive_genlist_realized,
+                                      NULL);
 
        pSoundAlive->pRadio = elm_radio_add(pSoundAlive->pGenList);
 
        if (!_vp_sound_alive_add_genlist_item
-                       (pSoundAlive->pGenList, (void *) pSoundAlive)) {
+               (pSoundAlive->pGenList, (void *) pSoundAlive)) {
                VideoLogError("_vp_sound_alive_add_genlist_item fail");
                _vp_sound_alive_destroy_handle(pSoundAlive);
                return NULL;
@@ -438,15 +435,15 @@ sound_alive_handle vp_sound_alive_create(Evas_Object *pParent,
        VideoLogInfo("nType: %d", nType);
        pSoundAlive->soundAliveType = nType;
        evas_object_smart_callback_add(pSoundAlive->pParent,
-                                      "rotation,changed",
-                                      __vp_sound_alive_popup_rotate_cb,
-                                      pSoundAlive);
+                                      "rotation,changed",
+                                      __vp_sound_alive_popup_rotate_cb,
+                                      pSoundAlive);
 
        pSoundAlive->pBox = elm_box_add(pSoundAlive->pPopup);
 
        vp_popup_set_popup_min_size(pSoundAlive->pParent, pSoundAlive->pBox,
-                                   pSoundAlive->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSoundAlive->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
 
        elm_box_pack_end(pSoundAlive->pBox, pSoundAlive->pGenList);
 
@@ -497,7 +494,7 @@ bool vp_sound_alive_unrealize(sound_alive_handle pSAHandle)
 }
 
 bool vp_sound_alive_set_user_data(sound_alive_handle pSAHandle,
-                                 void *pUserData)
+                                  void *pUserData)
 {
        if (pSAHandle == NULL) {
                VideoLogError("pSAHandle is NULL");
index 509319e..041e370 100644 (file)
@@ -48,18 +48,18 @@ typedef struct _SoundPathPopup {
 } SoundPathPopup;
 
 static void __vp_sound_path_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo);
+        Evas_Object *
+        pObject,
+        void *pEventInfo);
 
 static void __vp_sound_genlist_realized(void *data, Evas_Object *obj,
-                                       void *event_info)
+                                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_sound_path_popup_rotate_cb(void *data, Evas_Object *obj,
-               void *event_info)
+        void *event_info)
 {
        SoundPathPopup *pSoundPath = (SoundPathPopup *) data;
        if (!pSoundPath) {
@@ -70,8 +70,8 @@ static void __vp_sound_path_popup_rotate_cb(void *data, Evas_Object *obj,
                return;
        }
        vp_popup_set_popup_min_size(pSoundPath->pParent, pSoundPath->pBox,
-                                   pSoundPath->nItemCnt,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSoundPath->nItemCnt,
+                                   VIDEO_POPUP_DEFAULT);
 
 }
 
@@ -82,10 +82,10 @@ static void _vp_sound_path_destroy_handle(SoundPathPopup *pSoundPath)
                return;
        }
        evas_object_smart_callback_del(pSoundPath->pParent,
-                                      "rotation,changed",
-                                      __vp_sound_path_popup_rotate_cb);
+                                      "rotation,changed",
+                                      __vp_sound_path_popup_rotate_cb);
        evas_object_smart_callback_del(pSoundPath->pGenList, "realized",
-                                      __vp_sound_genlist_realized);
+                                      __vp_sound_genlist_realized);
 
        VP_EVAS_DEL(pSoundPath->pRadio);
        VP_EVAS_DEL(pSoundPath->pGenList);
@@ -107,8 +107,8 @@ static void _vp_sound_path_destroy_handle(SoundPathPopup *pSoundPath)
 
 /* callback functions */
 static char *__vp_sound_path_genlist_text_get_cb(const void *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -125,11 +125,9 @@ static char *__vp_sound_path_genlist_text_get_cb(const void *pUserData,
 }
 
 static Evas_Object *__vp_sound_path_genlist_content_get_cb(const void
-               *pUserData,
-               Evas_Object *
-               pObj,
-               const char
-               *pPart)
+                                *pUserData,
+                                Evas_Object *pObj,
+                                const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -143,8 +141,8 @@ static Evas_Object *__vp_sound_path_genlist_content_get_cb(const void
                Evas_Object *pLayout = NULL;
 
                SoundPathPopup *pSoundPath =
-                       (SoundPathPopup *) evas_object_data_get(pObj,
-                                       VP_SOUND_PATH_GENLIST_DATA_KEY);
+                   (SoundPathPopup *) evas_object_data_get(pObj,
+                           VP_SOUND_PATH_GENLIST_DATA_KEY);
                if (pSoundPath == NULL) {
                        VideoLogWarning("evas_object_data_get is fail");
                        return NULL;
@@ -170,21 +168,21 @@ static Evas_Object *__vp_sound_path_genlist_content_get_cb(const void
                pRadioObj = elm_radio_add(pLayout);
 
                elm_layout_theme_set(pLayout, "layout", "list/C/type.2",
-                                    "default");
+                                    "default");
                elm_radio_group_add(pRadioObj, pSoundPath->pRadio);
                elm_radio_state_value_set(pRadioObj, nType);
 
                if (nType == pSoundPath->soundPathType) {
                        VideoLogInfo("pSoundPath->soundPathType = %d",
-                                    pSoundPath->soundPathType);
+                                    pSoundPath->soundPathType);
                        elm_radio_value_set(pSoundPath->pRadio, nType);
                }
 
                evas_object_smart_callback_add(pRadioObj, "changed",
-                                              __vp_sound_path_genlist_item_selected_cb,
-                                              (void *) pUserData);
+                                              __vp_sound_path_genlist_item_selected_cb,
+                                              (void *) pUserData);
                elm_object_part_content_set(pLayout, "elm.swallow.content",
-                                           pRadioObj);
+                                           pRadioObj);
                evas_object_show(pRadioObj);
                evas_object_show(pLayout);
 
@@ -194,9 +192,8 @@ static Evas_Object *__vp_sound_path_genlist_content_get_cb(const void
 }
 
 static void __vp_sound_path_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo)
+                                Evas_Object *pObject,
+                                void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -253,13 +250,13 @@ static void __vp_sound_path_genlist_item_selected_cb(void *pUserData,
        pSoundPath->soundPathType = nType;
        if (pSoundPath->pCloseCb) {
                pSoundPath->pCloseCb((int) nType, FALSE,
-                                    (void *) pSoundPath->pUserData);
+                                    (void *) pSoundPath->pUserData);
        }
 }
 
 static void __vp_sound_path_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -270,14 +267,14 @@ static void __vp_sound_path_popup_key_event_cb(void *pUserData,
 
        if (pSoundPath->pCloseCb) {
                pSoundPath->pCloseCb(VIDEO_SOUND_PATH_NONE, FALSE,
-                                    (void *) pSoundPath->pUserData);
+                                    (void *) pSoundPath->pUserData);
        }
 }
 
 static void __vp_sound_path_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas *pEvas,
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -296,7 +293,7 @@ static void __vp_sound_path_popup_mouse_event_cb(void *pUserData,
 
                if (pSoundPath->pCloseCb) {
                        pSoundPath->pCloseCb(VIDEO_SOUND_PATH_NONE, FALSE,
-                                            (void *) pSoundPath->pUserData);
+                                            (void *) pSoundPath->pUserData);
                }
        }
 }
@@ -312,7 +309,7 @@ static Evas_Object *_vp_sound_path_create_genlist(Evas_Object *pParent)
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -320,7 +317,7 @@ static Evas_Object *_vp_sound_path_create_genlist(Evas_Object *pParent)
 
 
 static bool _vp_sound_path_add_genlist_item(Evas_Object *pObj,
-               void *pUserData)
+                                void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -335,14 +332,14 @@ static bool _vp_sound_path_add_genlist_item(Evas_Object *pObj,
        }
 
        pSoundPath->st_Sp_Itc = elm_genlist_item_class_new();
-       
+
        if (pSoundPath->st_Sp_Itc != NULL) {
                pSoundPath->st_Sp_Itc->version = ELM_GENLIST_ITEM_CLASS_VERSION;
                pSoundPath->st_Sp_Itc->item_style = "1line";
                pSoundPath->st_Sp_Itc->func.text_get =
-                       (void *) __vp_sound_path_genlist_text_get_cb;
+                   (void *) __vp_sound_path_genlist_text_get_cb;
                pSoundPath->st_Sp_Itc->func.content_get =
-                       (void *) __vp_sound_path_genlist_content_get_cb;
+                   (void *) __vp_sound_path_genlist_content_get_cb;
                pSoundPath->st_Sp_Itc->func.state_get = NULL;
                pSoundPath->st_Sp_Itc->func.del = NULL;
        }
@@ -353,60 +350,60 @@ static bool _vp_sound_path_add_genlist_item(Evas_Object *pObj,
                        VP_STRDUP(pSoundPath->szBTName, szBTName);
                        VP_FREE(szBTName);
                        elm_genlist_item_append(pObj, pSoundPath->st_Sp_Itc,
-                                               (void *) pSoundPath->szBTName, NULL,
-                                               ELM_GENLIST_ITEM_NONE,
-                                               __vp_sound_path_genlist_item_selected_cb,
-                                               pUserData);
+                                               (void *) pSoundPath->szBTName, NULL,
+                                               ELM_GENLIST_ITEM_NONE,
+                                               __vp_sound_path_genlist_item_selected_cb,
+                                               pUserData);
                        pSoundPath->nItemCnt++;
                }
        }
 
        if (vp_sound_device_is_enable(VP_SOUND_DEVICE_HDMI, pSoundPath)) {
                elm_genlist_item_append(pObj, pSoundPath->st_Sp_Itc,
-                                       (void *) VP_PLAY_STRING_SOUND_HDMI, NULL,
-                                       ELM_GENLIST_ITEM_NONE,
-                                       __vp_sound_path_genlist_item_selected_cb,
-                                       pUserData);
+                                       (void *) VP_PLAY_STRING_SOUND_HDMI, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_sound_path_genlist_item_selected_cb,
+                                       pUserData);
                pSoundPath->nItemCnt++;
        }
 
        if (vp_sound_device_is_enable(VP_SOUND_DEVICE_MIRRORING, pSoundPath)) {
                elm_genlist_item_append(pObj, pSoundPath->st_Sp_Itc,
-                                       (void *) VP_PLAY_STRING_SOUND_MIRRORING,
-                                       NULL, ELM_GENLIST_ITEM_NONE,
-                                       __vp_sound_path_genlist_item_selected_cb,
-                                       pUserData);
+                                       (void *) VP_PLAY_STRING_SOUND_MIRRORING,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_sound_path_genlist_item_selected_cb,
+                                       pUserData);
                pSoundPath->nItemCnt++;
        }
 
        if (vp_sound_device_is_enable(VP_SOUND_DEVICE_USB_AUDIO, pSoundPath)) {
                elm_genlist_item_append(pObj, pSoundPath->st_Sp_Itc,
-                                       (void *) VP_PLAY_STRING_SOUND_USB_AUDIO,
-                                       NULL, ELM_GENLIST_ITEM_NONE,
-                                       __vp_sound_path_genlist_item_selected_cb,
-                                       pUserData);
+                                       (void *) VP_PLAY_STRING_SOUND_USB_AUDIO,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_sound_path_genlist_item_selected_cb,
+                                       pUserData);
                pSoundPath->nItemCnt++;
        }
 
        if (vp_sound_device_is_enable(VP_SOUND_DEVICE_EARJACK, pSoundPath)) {
                elm_genlist_item_append(pObj, pSoundPath->st_Sp_Itc,
-                                       (void *) VP_PLAY_STRING_SOUND_EARJACK,
-                                       NULL, ELM_GENLIST_ITEM_NONE,
-                                       __vp_sound_path_genlist_item_selected_cb,
-                                       pUserData);
+                                       (void *) VP_PLAY_STRING_SOUND_EARJACK,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_sound_path_genlist_item_selected_cb,
+                                       pUserData);
                pSoundPath->nItemCnt++;
        }
 
        if (vp_sound_device_is_enable(VP_SOUND_DEVICE_EARJACK, pSoundPath)
-                       && vp_sound_device_is_enable(VP_SOUND_DEVICE_BLUETOOTH,
-                                       pSoundPath)) {
+               && vp_sound_device_is_enable(VP_SOUND_DEVICE_BLUETOOTH,
+                                            pSoundPath)) {
                VideoLogError("Skip for sound policy");
        } else {
                elm_genlist_item_append(pObj, pSoundPath->st_Sp_Itc,
-                                       (void *) VP_PLAY_STRING_SOUND_SPEAKER,
-                                       NULL, ELM_GENLIST_ITEM_NONE,
-                                       __vp_sound_path_genlist_item_selected_cb,
-                                       pUserData);
+                                       (void *) VP_PLAY_STRING_SOUND_SPEAKER,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_sound_path_genlist_item_selected_cb,
+                                       pUserData);
                pSoundPath->nItemCnt++;
        }
 
@@ -415,7 +412,7 @@ static bool _vp_sound_path_add_genlist_item(Evas_Object *pObj,
 
 /* external functions */
 sound_path_handle vp_sound_path_create(Evas_Object *pParent,
-                                      PopupCloseCbFunc pCloseCb)
+                                       PopupCloseCbFunc pCloseCb)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -436,11 +433,11 @@ sound_path_handle vp_sound_path_create(Evas_Object *pParent,
        pSoundPath->pCloseCb = pCloseCb;
 
        pSoundPath->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_SOUND_PATH, NULL, 0.0, NULL,
-                               __vp_sound_path_popup_key_event_cb,
-                               __vp_sound_path_popup_mouse_event_cb,
-                               (void *) pSoundPath);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_SOUND_PATH, NULL, 0.0, NULL,
+                           __vp_sound_path_popup_key_event_cb,
+                           __vp_sound_path_popup_mouse_event_cb,
+                           (void *) pSoundPath);
        if (pSoundPath->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
                _vp_sound_path_destroy_handle(pSoundPath);
@@ -448,23 +445,23 @@ sound_path_handle vp_sound_path_create(Evas_Object *pParent,
        }
 
        pSoundPath->pGenList =
-               _vp_sound_path_create_genlist(pSoundPath->pPopup);
+           _vp_sound_path_create_genlist(pSoundPath->pPopup);
        if (pSoundPath->pGenList == NULL) {
                VideoLogError("_vp_sound_path_create_genlist fail");
                _vp_sound_path_destroy_handle(pSoundPath);
                return NULL;
        }
        evas_object_smart_callback_add(pSoundPath->pGenList, "realized",
-                                      __vp_sound_genlist_realized, NULL);
+                                      __vp_sound_genlist_realized, NULL);
 
        evas_object_data_set(pSoundPath->pGenList,
-                            VP_SOUND_PATH_GENLIST_DATA_KEY,
-                            (void *) pSoundPath);
+                            VP_SOUND_PATH_GENLIST_DATA_KEY,
+                            (void *) pSoundPath);
 
        pSoundPath->pRadio = elm_radio_add(pSoundPath->pGenList);
 
        if (!_vp_sound_path_add_genlist_item
-                       (pSoundPath->pGenList, (void *) pSoundPath)) {
+               (pSoundPath->pGenList, (void *) pSoundPath)) {
                VideoLogError("_vp_sound_path_add_genlist_item fail");
                _vp_sound_path_destroy_handle(pSoundPath);
                return NULL;
@@ -478,15 +475,15 @@ sound_path_handle vp_sound_path_create(Evas_Object *pParent,
                pSoundPath->soundPathType = nType;
        }
        evas_object_smart_callback_add(pSoundPath->pParent,
-                                      "rotation,changed",
-                                      __vp_sound_path_popup_rotate_cb,
-                                      pSoundPath);
+                                      "rotation,changed",
+                                      __vp_sound_path_popup_rotate_cb,
+                                      pSoundPath);
 
        pSoundPath->pBox = elm_box_add(pSoundPath->pPopup);
 
        vp_popup_set_popup_min_size(pSoundPath->pParent, pSoundPath->pBox,
-                                   pSoundPath->nItemCnt,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSoundPath->nItemCnt,
+                                   VIDEO_POPUP_DEFAULT);
 
 
        elm_box_pack_end(pSoundPath->pBox, pSoundPath->pGenList);
@@ -538,7 +535,7 @@ bool vp_sound_path_unrealize(sound_path_handle pSoundPathHandle)
 }
 
 bool vp_sound_path_set_user_data(sound_path_handle pSoundPathHandle,
-                                void *pUserData)
+                                 void *pUserData)
 {
        if (pSoundPathHandle == NULL) {
                VideoLogError("pSoundPathHandle is NULL");
index d1293d4..52be975 100644 (file)
@@ -47,28 +47,28 @@ typedef struct _SubtitleAlignmentPopup {
 } SubtitleAlignmentPopup;
 
 static void _vp_subtitle_alignment_destroy_handle(SubtitleAlignmentPopup *
-               pSubtitleAlignment);
+        pSubtitleAlignment);
 
 static void __vp_subtitle_alignment_genlist_item_selected_cb(void
-               *pUserData,
-               Evas_Object *
-               pObject,
-               void
-               *pEventInfo);
+        *pUserData,
+        Evas_Object *
+        pObject,
+        void
+        *pEventInfo);
 
 static void __vp_subtitle_alignment_genlist_realized(void *data,
-               Evas_Object *obj,
-               void *event_info)
+        Evas_Object *obj,
+        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_subtitle_alignment_popup_rotate_cb(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        SubtitleAlignmentPopup *pSubtitleAlignment =
-               (SubtitleAlignmentPopup *) data;
+           (SubtitleAlignmentPopup *) data;
        if (!pSubtitleAlignment) {
                VideoLogError("pSubtitleAlignment IS null");
                return;
@@ -77,19 +77,17 @@ static void __vp_subtitle_alignment_popup_rotate_cb(void *data,
                return;
        }
        vp_popup_set_popup_min_size(pSubtitleAlignment->pParent,
-                                   pSubtitleAlignment->pBox,
-                                   pSubtitleAlignment->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleAlignment->pBox,
+                                   pSubtitleAlignment->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
 
 }
 
 /* callback functions */
 static char *__vp_subtitle_alignment_genlist_text_get_cb(const void
-               *pUserData,
-               Evas_Object *
-               pObj,
-               const char
-               *pPart)
+                        *pUserData,
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -106,13 +104,9 @@ static char *__vp_subtitle_alignment_genlist_text_get_cb(const void
 }
 
 static Evas_Object *__vp_subtitle_alignment_genlist_content_get_cb(const
-               void
-               *pUserData,
-               Evas_Object
-               * pObj,
-               const
-               char
-               *pPart)
+                void *pUserData,
+                Evas_Object *pObj,
+                const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -125,14 +119,14 @@ static Evas_Object *__vp_subtitle_alignment_genlist_content_get_cb(const
                Evas_Object *pRadioObj = NULL;
 
                SubtitleAlignmentPopup *pSubtitleAlignment =
-                       (SubtitleAlignmentPopup *) evas_object_data_get(pObj,
-                                       VP_SUBTITLE_ALIGNMENT_GENLIST_DATA_KEY);
+                   (SubtitleAlignmentPopup *) evas_object_data_get(pObj,
+                           VP_SUBTITLE_ALIGNMENT_GENLIST_DATA_KEY);
                if (pSubtitleAlignment == NULL) {
                        VideoLogWarning("evas_object_data_get is fail");
                        return NULL;
                }
                video_play_subtitle_alignment_t nAlignment =
-                       VIDEO_SUBTITLE_ALIGNMENT_CENTER;
+                   VIDEO_SUBTITLE_ALIGNMENT_CENTER;
                if (!strcmp(szTxt, VP_PLAY_STRING_ALIGNMENT_LEFT)) {
                        nAlignment = VIDEO_SUBTITLE_ALIGNMENT_LEFT;
                } else if (!strcmp(szTxt, VP_PLAY_STRING_ALIGNMENT_CENTER)) {
@@ -145,10 +139,10 @@ static Evas_Object *__vp_subtitle_alignment_genlist_content_get_cb(const
                elm_radio_state_value_set(pRadioObj, nAlignment);
                elm_radio_group_add(pRadioObj, pSubtitleAlignment->pRadio);
                elm_radio_value_set(pSubtitleAlignment->pRadio,
-                                   pSubtitleAlignment->currentAlignment);
+                                   pSubtitleAlignment->currentAlignment);
                evas_object_smart_callback_add(pRadioObj, "changed",
-                                              __vp_subtitle_alignment_genlist_item_selected_cb,
-                                              pSubtitleAlignment);
+                                              __vp_subtitle_alignment_genlist_item_selected_cb,
+                                              pSubtitleAlignment);
                evas_object_show(pRadioObj);
 
                return pRadioObj;
@@ -158,11 +152,9 @@ static Evas_Object *__vp_subtitle_alignment_genlist_content_get_cb(const
 }
 
 static void __vp_subtitle_alignment_genlist_item_selected_cb(void
-               *pUserData,
-               Evas_Object *
-               pObject,
-               void
-               *pEventInfo)
+                *pUserData,
+                Evas_Object *pObject,
+                void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -175,14 +167,14 @@ static void __vp_subtitle_alignment_genlist_item_selected_cb(void
 
        Elm_Object_Item *pItem = (Elm_Object_Item *) pEventInfo;
        Elm_Object_Item *pSelectedItem =
-               elm_genlist_selected_item_get(pObject);
+           elm_genlist_selected_item_get(pObject);
        if (pSelectedItem) {
                elm_genlist_item_selected_set(pSelectedItem, EINA_FALSE);
        }
        char *szTxt = (char *) elm_object_item_data_get(pItem);
 
        SubtitleAlignmentPopup *pSubtitleAlignment =
-               (SubtitleAlignmentPopup *) pUserData;
+           (SubtitleAlignmentPopup *) pUserData;
 
        if (szTxt == NULL) {
                VideoLogError("szTxt is NULL");
@@ -190,7 +182,7 @@ static void __vp_subtitle_alignment_genlist_item_selected_cb(void
        }
 
        video_play_subtitle_alignment_t nAlignment =
-               VIDEO_SUBTITLE_ALIGNMENT_CENTER;
+           VIDEO_SUBTITLE_ALIGNMENT_CENTER;
        if (!strcmp(szTxt, VP_PLAY_STRING_ALIGNMENT_LEFT)) {
                nAlignment = VIDEO_SUBTITLE_ALIGNMENT_LEFT;
        } else if (!strcmp(szTxt, VP_PLAY_STRING_ALIGNMENT_CENTER)) {
@@ -202,14 +194,14 @@ static void __vp_subtitle_alignment_genlist_item_selected_cb(void
        pSubtitleAlignment->currentAlignment = nAlignment;
        if (pSubtitleAlignment->pCloseCb) {
                pSubtitleAlignment->pCloseCb(nAlignment, FALSE,
-                                            (void *) pSubtitleAlignment->
-                                            pUserData);
+                                            (void *) pSubtitleAlignment->
+                                            pUserData);
        }
 }
 
 static void __vp_subtitle_alignment_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                Evas_Object *pObj,
+                void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -217,20 +209,19 @@ static void __vp_subtitle_alignment_popup_key_event_cb(void *pUserData,
        }
 
        SubtitleAlignmentPopup *pSubtitleAlignment =
-               (SubtitleAlignmentPopup *) pUserData;
+           (SubtitleAlignmentPopup *) pUserData;
 
        if (pSubtitleAlignment->pCloseCb) {
                pSubtitleAlignment->pCloseCb(-1, FALSE,
-                                            (void *) pSubtitleAlignment->
-                                            pUserData);
+                                            (void *) pSubtitleAlignment->
+                                            pUserData);
        }
 }
 
 static void __vp_subtitle_alignment_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *
-               pObj,
-               void *pEventInfo)
+                Evas *pEvas,
+                Evas_Object *pObj,
+                void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -246,12 +237,12 @@ static void __vp_subtitle_alignment_popup_mouse_event_cb(void *pUserData,
 
        if (ev->button == 3) {
                SubtitleAlignmentPopup *pSubtitleAlignment =
-                       (SubtitleAlignmentPopup *) pUserData;
+                   (SubtitleAlignmentPopup *) pUserData;
 
                if (pSubtitleAlignment->pCloseCb) {
                        pSubtitleAlignment->pCloseCb(-1, FALSE,
-                                                    (void *) pSubtitleAlignment->
-                                                    pUserData);
+                                                    (void *) pSubtitleAlignment->
+                                                    pUserData);
                }
        }
 }
@@ -260,7 +251,7 @@ static void __vp_subtitle_alignment_popup_mouse_event_cb(void *pUserData,
 
 /* internal functions */
 static void _vp_subtitle_alignment_destroy_handle(SubtitleAlignmentPopup *
-               pSubtitleAlignment)
+                pSubtitleAlignment)
 {
        if (pSubtitleAlignment == NULL) {
                VideoLogError("pSubtitleAlignment is NULL");
@@ -268,11 +259,11 @@ static void _vp_subtitle_alignment_destroy_handle(SubtitleAlignmentPopup *
        }
 
        evas_object_smart_callback_del(pSubtitleAlignment->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_alignment_popup_rotate_cb);
+                                      "rotation,changed",
+                                      __vp_subtitle_alignment_popup_rotate_cb);
        evas_object_smart_callback_del(pSubtitleAlignment->pGenList,
-                                      "realized",
-                                      __vp_subtitle_alignment_genlist_realized);
+                                      "realized",
+                                      __vp_subtitle_alignment_genlist_realized);
 
        VP_EVAS_DEL(pSubtitleAlignment->pRadio);
 
@@ -282,7 +273,7 @@ static void _vp_subtitle_alignment_destroy_handle(SubtitleAlignmentPopup *
 
        if (pSubtitleAlignment->st_SubtitleAlignment_Itc) {
                elm_genlist_item_class_free(pSubtitleAlignment->
-                                           st_SubtitleAlignment_Itc);
+                                           st_SubtitleAlignment_Itc);
                pSubtitleAlignment->st_SubtitleAlignment_Itc = NULL;
        }
 
@@ -292,7 +283,7 @@ static void _vp_subtitle_alignment_destroy_handle(SubtitleAlignmentPopup *
 }
 
 static Evas_Object *_vp_subtitle_alignment_create_genlist(Evas_Object *
-               pParent)
+                        pParent)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -303,7 +294,7 @@ static Evas_Object *_vp_subtitle_alignment_create_genlist(Evas_Object *
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -311,7 +302,7 @@ static Evas_Object *_vp_subtitle_alignment_create_genlist(Evas_Object *
 
 
 static bool _vp_subtitle_alignment_add_genlist_item(Evas_Object *pObj,
-               void *pUserData)
+                void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -319,49 +310,49 @@ static bool _vp_subtitle_alignment_add_genlist_item(Evas_Object *pObj,
        }
 
        SubtitleAlignmentPopup *pSubtitleAlignment =
-               (SubtitleAlignmentPopup *) pUserData;
+           (SubtitleAlignmentPopup *) pUserData;
 
        if (pSubtitleAlignment->st_SubtitleAlignment_Itc) {
                elm_genlist_item_class_free(pSubtitleAlignment->
-                                           st_SubtitleAlignment_Itc);
+                                           st_SubtitleAlignment_Itc);
                pSubtitleAlignment->st_SubtitleAlignment_Itc = NULL;
        }
 
        pSubtitleAlignment->st_SubtitleAlignment_Itc =
-               elm_genlist_item_class_new();
+           elm_genlist_item_class_new();
 
        if (pSubtitleAlignment->st_SubtitleAlignment_Itc != NULL) {
                pSubtitleAlignment->st_SubtitleAlignment_Itc->version =
-                       ELM_GENLIST_ITEM_CLASS_VERSION;
+                   ELM_GENLIST_ITEM_CLASS_VERSION;
                pSubtitleAlignment->st_SubtitleAlignment_Itc->item_style = "1line";
                pSubtitleAlignment->st_SubtitleAlignment_Itc->func.text_get =
-                       (void *) __vp_subtitle_alignment_genlist_text_get_cb;
+                   (void *) __vp_subtitle_alignment_genlist_text_get_cb;
                pSubtitleAlignment->st_SubtitleAlignment_Itc->func.content_get =
-                       (void *) __vp_subtitle_alignment_genlist_content_get_cb;
+                   (void *) __vp_subtitle_alignment_genlist_content_get_cb;
                pSubtitleAlignment->st_SubtitleAlignment_Itc->func.state_get = NULL;
                pSubtitleAlignment->st_SubtitleAlignment_Itc->func.del = NULL;
                pSubtitleAlignment->nListCount = 0;
 
                elm_genlist_item_append(pObj,
-                               pSubtitleAlignment->st_SubtitleAlignment_Itc,
-                               (void *) VP_PLAY_STRING_ALIGNMENT_LEFT, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_alignment_genlist_item_selected_cb,
-                               pUserData);
+                                       pSubtitleAlignment->st_SubtitleAlignment_Itc,
+                                       (void *) VP_PLAY_STRING_ALIGNMENT_LEFT, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_alignment_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleAlignment->nListCount++;
                elm_genlist_item_append(pObj,
-                               pSubtitleAlignment->st_SubtitleAlignment_Itc,
-                               (void *) VP_PLAY_STRING_ALIGNMENT_CENTER,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_alignment_genlist_item_selected_cb,
-                               pUserData);
+                                       pSubtitleAlignment->st_SubtitleAlignment_Itc,
+                                       (void *) VP_PLAY_STRING_ALIGNMENT_CENTER,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_alignment_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleAlignment->nListCount++;
                elm_genlist_item_append(pObj,
-                               pSubtitleAlignment->st_SubtitleAlignment_Itc,
-                               (void *) VP_PLAY_STRING_ALIGNMENT_RIGHT, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_alignment_genlist_item_selected_cb,
-                               pUserData);
+                                       pSubtitleAlignment->st_SubtitleAlignment_Itc,
+                                       (void *) VP_PLAY_STRING_ALIGNMENT_RIGHT, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_alignment_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleAlignment->nListCount++;
        }
 
@@ -370,10 +361,10 @@ static bool _vp_subtitle_alignment_add_genlist_item(Evas_Object *pObj,
 
 /* external functions */
 subtitle_alignment_handle vp_subtitle_alignment_create(Evas_Object *
-               pParent,
-               PopupCloseCbFunc
-               pCloseCb,
-               int nDefaultAlign)
+                                pParent,
+                                PopupCloseCbFunc
+                                pCloseCb,
+                                int nDefaultAlign)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -393,11 +384,11 @@ subtitle_alignment_handle vp_subtitle_alignment_create(Evas_Object *
        pSubtitleAlignment->pCloseCb = pCloseCb;
 
        pSubtitleAlignment->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_SUBTITLE_ALIGNMENT, NULL, 0.0,
-                               NULL, __vp_subtitle_alignment_popup_key_event_cb,
-                               __vp_subtitle_alignment_popup_mouse_event_cb,
-                               (void *) pSubtitleAlignment);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_SUBTITLE_ALIGNMENT, NULL, 0.0,
+                           NULL, __vp_subtitle_alignment_popup_key_event_cb,
+                           __vp_subtitle_alignment_popup_mouse_event_cb,
+                           (void *) pSubtitleAlignment);
 
        if (pSubtitleAlignment->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
@@ -405,51 +396,51 @@ subtitle_alignment_handle vp_subtitle_alignment_create(Evas_Object *
                return NULL;
        }
        pSubtitleAlignment->pGenList =
-               _vp_subtitle_alignment_create_genlist(pSubtitleAlignment->pPopup);
+           _vp_subtitle_alignment_create_genlist(pSubtitleAlignment->pPopup);
        if (pSubtitleAlignment->pGenList == NULL) {
                VideoLogError("_vp_subtitle_alignment_create_genlist fail");
                _vp_subtitle_alignment_destroy_handle(pSubtitleAlignment);
                return NULL;
        }
        evas_object_data_set(pSubtitleAlignment->pGenList,
-                            VP_SUBTITLE_ALIGNMENT_GENLIST_DATA_KEY,
-                            (void *) pSubtitleAlignment);
+                            VP_SUBTITLE_ALIGNMENT_GENLIST_DATA_KEY,
+                            (void *) pSubtitleAlignment);
        evas_object_smart_callback_add(pSubtitleAlignment->pGenList,
-                                      "realized",
-                                      __vp_subtitle_alignment_genlist_realized,
-                                      NULL);
+                                      "realized",
+                                      __vp_subtitle_alignment_genlist_realized,
+                                      NULL);
 
        pSubtitleAlignment->nDefaultIndex = nDefaultAlign;
        pSubtitleAlignment->pRadio =
-               elm_radio_add(pSubtitleAlignment->pGenList);
+           elm_radio_add(pSubtitleAlignment->pGenList);
 
        if (!_vp_subtitle_alignment_add_genlist_item
-                       (pSubtitleAlignment->pGenList, (void *) pSubtitleAlignment)) {
+               (pSubtitleAlignment->pGenList, (void *) pSubtitleAlignment)) {
                VideoLogError("_vp_subtitle_alignment_add_genlist_item fail");
                return FALSE;
        }
        //elm_radio_value_set(pSubtitleAlignment->pRadio, nDefaultAlign);
        pSubtitleAlignment->currentAlignment = nDefaultAlign;
        evas_object_smart_callback_add(pSubtitleAlignment->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_alignment_popup_rotate_cb,
-                                      pSubtitleAlignment);
+                                      "rotation,changed",
+                                      __vp_subtitle_alignment_popup_rotate_cb,
+                                      pSubtitleAlignment);
 
        pSubtitleAlignment->pBox = elm_box_add(pSubtitleAlignment->pPopup);
        vp_popup_set_popup_min_size(pSubtitleAlignment->pParent,
-                                   pSubtitleAlignment->pBox,
-                                   pSubtitleAlignment->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleAlignment->pBox,
+                                   pSubtitleAlignment->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
        elm_box_pack_end(pSubtitleAlignment->pBox,
-                        pSubtitleAlignment->pGenList);
+                        pSubtitleAlignment->pGenList);
        elm_object_content_set(pSubtitleAlignment->pPopup,
-                              pSubtitleAlignment->pBox);
+                              pSubtitleAlignment->pBox);
 
        return pSubtitleAlignment;
 }
 
 void vp_subtitle_alignment_destroy(subtitle_alignment_handle
-                                  pSubtitleAlignmentHandle)
+                                   pSubtitleAlignmentHandle)
 {
        if (pSubtitleAlignmentHandle == NULL) {
                VideoLogError("pSubtitleAlignmentHandle is NULL");
@@ -457,14 +448,14 @@ void vp_subtitle_alignment_destroy(subtitle_alignment_handle
        }
 
        SubtitleAlignmentPopup *pSubtitleAlignment =
-               (SubtitleAlignmentPopup *) pSubtitleAlignmentHandle;
+           (SubtitleAlignmentPopup *) pSubtitleAlignmentHandle;
 
        _vp_subtitle_alignment_destroy_handle(pSubtitleAlignment);
 
 }
 
 bool vp_subtitle_alignment_realize(subtitle_alignment_handle
-                                  pSubtitleAlignmentHandle)
+                                   pSubtitleAlignmentHandle)
 {
        if (pSubtitleAlignmentHandle == NULL) {
                VideoLogError("pSubtitleAlignmentHandle is NULL");
@@ -472,7 +463,7 @@ bool vp_subtitle_alignment_realize(subtitle_alignment_handle
        }
 
        SubtitleAlignmentPopup *pSubtitleAlignment =
-               (SubtitleAlignmentPopup *) pSubtitleAlignmentHandle;
+           (SubtitleAlignmentPopup *) pSubtitleAlignmentHandle;
 
        evas_object_show(pSubtitleAlignment->pPopup);
 
@@ -480,7 +471,7 @@ bool vp_subtitle_alignment_realize(subtitle_alignment_handle
 }
 
 bool vp_subtitle_alignment_unrealize(subtitle_alignment_handle
-                                    pSubtitleAlignmentHandle)
+                                     pSubtitleAlignmentHandle)
 {
        if (pSubtitleAlignmentHandle == NULL) {
                VideoLogError("pSubtitleAlignmentHandle is NULL");
@@ -488,7 +479,7 @@ bool vp_subtitle_alignment_unrealize(subtitle_alignment_handle
        }
 
        SubtitleAlignmentPopup *pSubtitleAlignment =
-               (SubtitleAlignmentPopup *) pSubtitleAlignmentHandle;
+           (SubtitleAlignmentPopup *) pSubtitleAlignmentHandle;
 
        evas_object_hide(pSubtitleAlignment->pPopup);
 
@@ -496,8 +487,8 @@ bool vp_subtitle_alignment_unrealize(subtitle_alignment_handle
 }
 
 bool vp_subtitle_alignment_set_user_data(subtitle_alignment_handle
-               pSubtitleAlignmentHandle,
-               void *pUserData)
+        pSubtitleAlignmentHandle,
+        void *pUserData)
 {
        if (pSubtitleAlignmentHandle == NULL) {
                VideoLogError("pSubtitleAlignmentHandle is NULL");
@@ -505,7 +496,7 @@ bool vp_subtitle_alignment_set_user_data(subtitle_alignment_handle
        }
 
        SubtitleAlignmentPopup *pSubtitleAlignment =
-               (SubtitleAlignmentPopup *) pSubtitleAlignmentHandle;
+           (SubtitleAlignmentPopup *) pSubtitleAlignmentHandle;
 
        pSubtitleAlignment->pUserData = pUserData;
 
index 58bed25..c417c4b 100644 (file)
@@ -49,28 +49,26 @@ typedef struct _SubtitleBGColorPopup {
 
 
 static void _vp_subtitle_bg_color_destroy_handle(SubtitleBGColorPopup *
-               pSubtitleBGColor);
+        pSubtitleBGColor);
 static void __vp_subtitle_bg_color_genlist_item_selected_cb(void
-               *pUserData,
-               Evas_Object *
-               pObject,
-               void
-               *pEventInfo);
+                        *pUserData,
+                        Evas_Object *pObject,
+                        void *pEventInfo);
 
 
 static void __vp_subtitle_bg_color_genlist_realized(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_subtitle_bg_color_popup_rotate_cb(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        SubtitleBGColorPopup *pSubtitleBGColor =
-               (SubtitleBGColorPopup *) data;
+           (SubtitleBGColorPopup *) data;
        if (!pSubtitleBGColor) {
                VideoLogError("pSubtitleBGColor IS null");
                return;
@@ -79,19 +77,18 @@ static void __vp_subtitle_bg_color_popup_rotate_cb(void *data,
                return;
        }
        vp_popup_set_popup_min_size(pSubtitleBGColor->pParent,
-                                   pSubtitleBGColor->pBox,
-                                   pSubtitleBGColor->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleBGColor->pBox,
+                                   pSubtitleBGColor->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
 
 }
 
 
 /* callback functions */
 static char *__vp_subtitle_bg_color_genlist_text_get_cb(const void
-               *pUserData,
-               Evas_Object *
-               pObj,
-               const char *pPart)
+                        *pUserData,
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -108,13 +105,9 @@ static char *__vp_subtitle_bg_color_genlist_text_get_cb(const void
 }
 
 static Evas_Object *__vp_subtitle_bg_color_genlist_content_get_cb(const
-               void
-               *pUserData,
-               Evas_Object
-               * pObj,
-               const
-               char
-               *pPart)
+                        void *pUserData,
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -127,8 +120,8 @@ static Evas_Object *__vp_subtitle_bg_color_genlist_content_get_cb(const
                Evas_Object *pRadioObj = NULL;
 
                SubtitleBGColorPopup *pSubtitleBGColor =
-                       (SubtitleBGColorPopup *) evas_object_data_get(pObj,
-                                       VP_SUBTITLE_BG_COLOR_GENLIST_DATA_KEY);
+                   (SubtitleBGColorPopup *) evas_object_data_get(pObj,
+                           VP_SUBTITLE_BG_COLOR_GENLIST_DATA_KEY);
                if (pSubtitleBGColor == NULL) {
                        VideoLogWarning("evas_object_data_get is fail");
                        return NULL;
@@ -146,10 +139,10 @@ static Evas_Object *__vp_subtitle_bg_color_genlist_content_get_cb(const
                elm_radio_state_value_set(pRadioObj, nColor);
                elm_radio_group_add(pRadioObj, pSubtitleBGColor->pRadio);
                elm_radio_value_set(pSubtitleBGColor->pRadio,
-                                   pSubtitleBGColor->currentBgColor);
+                                   pSubtitleBGColor->currentBgColor);
                evas_object_smart_callback_add(pRadioObj, "changed",
-                                              __vp_subtitle_bg_color_genlist_item_selected_cb,
-                                              pSubtitleBGColor);
+                                              __vp_subtitle_bg_color_genlist_item_selected_cb,
+                                              pSubtitleBGColor);
                evas_object_show(pRadioObj);
 
                return pRadioObj;
@@ -159,11 +152,9 @@ static Evas_Object *__vp_subtitle_bg_color_genlist_content_get_cb(const
 }
 
 static void __vp_subtitle_bg_color_genlist_item_selected_cb(void
-               *pUserData,
-               Evas_Object *
-               pObject,
-               void
-               *pEventInfo)
+                        *pUserData,
+                        Evas_Object *pObject,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -176,14 +167,14 @@ static void __vp_subtitle_bg_color_genlist_item_selected_cb(void
 
        Elm_Object_Item *pItem = (Elm_Object_Item *) pEventInfo;
        Elm_Object_Item *pSelectedItem =
-               elm_genlist_selected_item_get(pObject);
+           elm_genlist_selected_item_get(pObject);
        if (pSelectedItem) {
                elm_genlist_item_selected_set(pSelectedItem, EINA_FALSE);
        }
        char *szTxt = (char *) elm_object_item_data_get(pItem);
 
        SubtitleBGColorPopup *pSubtitleBGColor =
-               (SubtitleBGColorPopup *) pUserData;
+           (SubtitleBGColorPopup *) pUserData;
 
        if (szTxt == NULL) {
                VideoLogError("szTxt is NULL");
@@ -202,13 +193,13 @@ static void __vp_subtitle_bg_color_genlist_item_selected_cb(void
        pSubtitleBGColor->currentBgColor = nColor;
        if (pSubtitleBGColor->pCloseCb) {
                pSubtitleBGColor->pCloseCb(nColor, FALSE,
-                                          (void *) pSubtitleBGColor->pUserData);
+                                          (void *) pSubtitleBGColor->pUserData);
        }
 }
 
 static void __vp_subtitle_bg_color_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -216,19 +207,18 @@ static void __vp_subtitle_bg_color_popup_key_event_cb(void *pUserData,
        }
 
        SubtitleBGColorPopup *pSubtitleBGColor =
-               (SubtitleBGColorPopup *) pUserData;
+           (SubtitleBGColorPopup *) pUserData;
 
        if (pSubtitleBGColor->pCloseCb) {
                pSubtitleBGColor->pCloseCb(-1, FALSE,
-                                          (void *) pSubtitleBGColor->pUserData);
+                                          (void *) pSubtitleBGColor->pUserData);
        }
 }
 
 static void __vp_subtitle_bg_color_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *
-               pObj,
-               void *pEventInfo)
+                        Evas *pEvas,
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -244,12 +234,12 @@ static void __vp_subtitle_bg_color_popup_mouse_event_cb(void *pUserData,
 
        if (ev->button == 3) {
                SubtitleBGColorPopup *pSubtitleBGColor =
-                       (SubtitleBGColorPopup *) pUserData;
+                   (SubtitleBGColorPopup *) pUserData;
 
                if (pSubtitleBGColor->pCloseCb) {
                        pSubtitleBGColor->pCloseCb(-1, FALSE,
-                                                  (void *) pSubtitleBGColor->
-                                                  pUserData);
+                                                  (void *) pSubtitleBGColor->
+                                                  pUserData);
                }
        }
 }
@@ -258,7 +248,7 @@ static void __vp_subtitle_bg_color_popup_mouse_event_cb(void *pUserData,
 
 /* internal functions */
 static void _vp_subtitle_bg_color_destroy_handle(SubtitleBGColorPopup *
-               pSubtitleBGColor)
+                        pSubtitleBGColor)
 {
        if (pSubtitleBGColor == NULL) {
                VideoLogError("pSubtitleBGColor is NULL");
@@ -266,10 +256,10 @@ static void _vp_subtitle_bg_color_destroy_handle(SubtitleBGColorPopup *
        }
 
        evas_object_smart_callback_del(pSubtitleBGColor->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_bg_color_popup_rotate_cb);
+                                      "rotation,changed",
+                                      __vp_subtitle_bg_color_popup_rotate_cb);
        evas_object_smart_callback_del(pSubtitleBGColor->pGenList, "realized",
-                                      __vp_subtitle_bg_color_genlist_realized);
+                                      __vp_subtitle_bg_color_genlist_realized);
 
        VP_EVAS_DEL(pSubtitleBGColor->pRadio);
        VP_EVAS_DEL(pSubtitleBGColor->pGenList);
@@ -278,7 +268,7 @@ static void _vp_subtitle_bg_color_destroy_handle(SubtitleBGColorPopup *
 
        if (pSubtitleBGColor->st_SubtitleBGColor_Itc) {
                elm_genlist_item_class_free(pSubtitleBGColor->
-                                           st_SubtitleBGColor_Itc);
+                                           st_SubtitleBGColor_Itc);
                pSubtitleBGColor->st_SubtitleBGColor_Itc = NULL;
        }
 
@@ -289,7 +279,7 @@ static void _vp_subtitle_bg_color_destroy_handle(SubtitleBGColorPopup *
 
 
 static Evas_Object *_vp_subtitle_bg_color_create_genlist(Evas_Object *
-               pParent)
+                        pParent)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -300,7 +290,7 @@ static Evas_Object *_vp_subtitle_bg_color_create_genlist(Evas_Object *
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -308,7 +298,7 @@ static Evas_Object *_vp_subtitle_bg_color_create_genlist(Evas_Object *
 
 
 static bool _vp_subtitle_bg_color_add_genlist_item(Evas_Object *pObj,
-               void *pUserData)
+                        void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -316,50 +306,50 @@ static bool _vp_subtitle_bg_color_add_genlist_item(Evas_Object *pObj,
        }
 
        SubtitleBGColorPopup *pSubtitleBGColor =
-               (SubtitleBGColorPopup *) pUserData;
+           (SubtitleBGColorPopup *) pUserData;
 
        if (pSubtitleBGColor->st_SubtitleBGColor_Itc) {
                elm_genlist_item_class_free(pSubtitleBGColor->
-                                           st_SubtitleBGColor_Itc);
+                                           st_SubtitleBGColor_Itc);
                pSubtitleBGColor->st_SubtitleBGColor_Itc = NULL;
        }
 
        pSubtitleBGColor->st_SubtitleBGColor_Itc =
-               elm_genlist_item_class_new();
+           elm_genlist_item_class_new();
 
        if (pSubtitleBGColor->st_SubtitleBGColor_Itc != NULL) {
                pSubtitleBGColor->st_SubtitleBGColor_Itc->version =
-                       ELM_GENLIST_ITEM_CLASS_VERSION;
+                   ELM_GENLIST_ITEM_CLASS_VERSION;
                pSubtitleBGColor->st_SubtitleBGColor_Itc->item_style =
-                       "1text.1icon.3/popup";
+                   "1text.1icon.3/popup";
                pSubtitleBGColor->st_SubtitleBGColor_Itc->func.text_get =
-                       (void *) __vp_subtitle_bg_color_genlist_text_get_cb;
+                   (void *) __vp_subtitle_bg_color_genlist_text_get_cb;
                pSubtitleBGColor->st_SubtitleBGColor_Itc->func.content_get =
-                       (void *) __vp_subtitle_bg_color_genlist_content_get_cb;
+                   (void *) __vp_subtitle_bg_color_genlist_content_get_cb;
                pSubtitleBGColor->st_SubtitleBGColor_Itc->func.state_get = NULL;
                pSubtitleBGColor->st_SubtitleBGColor_Itc->func.del = NULL;
                pSubtitleBGColor->nListCount = 0;
 
                elm_genlist_item_append(pObj,
-                               pSubtitleBGColor->st_SubtitleBGColor_Itc,
-                               (void *) VP_PLAY_STRING_SUBTITLE_COLOR_NONE,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_bg_color_genlist_item_selected_cb,
-                               pUserData);
+                                       pSubtitleBGColor->st_SubtitleBGColor_Itc,
+                                       (void *) VP_PLAY_STRING_SUBTITLE_COLOR_NONE,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_bg_color_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleBGColor->nListCount++;
                elm_genlist_item_append(pObj,
-                               pSubtitleBGColor->st_SubtitleBGColor_Itc,
-                               (void *) VP_PLAY_STRING_SUBTITLE_COLOR_BLACK,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_bg_color_genlist_item_selected_cb,
-                               pUserData);
+                                       pSubtitleBGColor->st_SubtitleBGColor_Itc,
+                                       (void *) VP_PLAY_STRING_SUBTITLE_COLOR_BLACK,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_bg_color_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleBGColor->nListCount++;
                elm_genlist_item_append(pObj,
-                               pSubtitleBGColor->st_SubtitleBGColor_Itc,
-                               (void *) VP_PLAY_STRING_SUBTITLE_COLOR_WHITE,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_bg_color_genlist_item_selected_cb,
-                               pUserData);
+                                       pSubtitleBGColor->st_SubtitleBGColor_Itc,
+                                       (void *) VP_PLAY_STRING_SUBTITLE_COLOR_WHITE,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_bg_color_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleBGColor->nListCount++;
        }
 
@@ -368,10 +358,10 @@ static bool _vp_subtitle_bg_color_add_genlist_item(Evas_Object *pObj,
 
 /* external functions */
 subtitle_bg_color_handle vp_subtitle_bg_color_create(Evas_Object *
-               pParent,
-               PopupCloseCbFunc
-               pCloseCb,
-               int nDefaultColor)
+                        pParent,
+                        PopupCloseCbFunc
+                        pCloseCb,
+                        int nDefaultColor)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -391,11 +381,11 @@ subtitle_bg_color_handle vp_subtitle_bg_color_create(Evas_Object *
        pSubtitleBGColor->pCloseCb = pCloseCb;
 
        pSubtitleBGColor->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_SUBTITLE_BG_COLOR, NULL, 0.0, NULL,
-                               __vp_subtitle_bg_color_popup_key_event_cb,
-                               __vp_subtitle_bg_color_popup_mouse_event_cb,
-                               (void *) pSubtitleBGColor);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_SUBTITLE_BG_COLOR, NULL, 0.0, NULL,
+                           __vp_subtitle_bg_color_popup_key_event_cb,
+                           __vp_subtitle_bg_color_popup_mouse_event_cb,
+                           (void *) pSubtitleBGColor);
        if (pSubtitleBGColor->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
                _vp_subtitle_bg_color_destroy_handle(pSubtitleBGColor);
@@ -403,49 +393,49 @@ subtitle_bg_color_handle vp_subtitle_bg_color_create(Evas_Object *
        }
 
        pSubtitleBGColor->pGenList =
-               _vp_subtitle_bg_color_create_genlist(pSubtitleBGColor->pPopup);
+           _vp_subtitle_bg_color_create_genlist(pSubtitleBGColor->pPopup);
        if (pSubtitleBGColor->pGenList == NULL) {
                VideoLogError("_vp_subtitle_bg_color_create_genlist fail");
                _vp_subtitle_bg_color_destroy_handle(pSubtitleBGColor);
                return NULL;
        }
        evas_object_data_set(pSubtitleBGColor->pGenList,
-                            VP_SUBTITLE_BG_COLOR_GENLIST_DATA_KEY,
-                            (void *) pSubtitleBGColor);
+                            VP_SUBTITLE_BG_COLOR_GENLIST_DATA_KEY,
+                            (void *) pSubtitleBGColor);
        evas_object_smart_callback_add(pSubtitleBGColor->pGenList, "realized",
-                                      __vp_subtitle_bg_color_genlist_realized,
-                                      NULL);
+                                      __vp_subtitle_bg_color_genlist_realized,
+                                      NULL);
 
        pSubtitleBGColor->nDefaultIndex = nDefaultColor;
        pSubtitleBGColor->pRadio = elm_radio_add(pSubtitleBGColor->pGenList);
 
        if (!_vp_subtitle_bg_color_add_genlist_item
-                       (pSubtitleBGColor->pGenList, (void *) pSubtitleBGColor)) {
+               (pSubtitleBGColor->pGenList, (void *) pSubtitleBGColor)) {
                VideoLogError("_vp_subtitle_bg_color_add_genlist_item fail");
                return FALSE;
        }
        //elm_radio_value_set(pSubtitleBGColor->pRadio, nDefaultColor);
        pSubtitleBGColor->currentBgColor = nDefaultColor;
        evas_object_smart_callback_add(pSubtitleBGColor->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_bg_color_popup_rotate_cb,
-                                      pSubtitleBGColor);
+                                      "rotation,changed",
+                                      __vp_subtitle_bg_color_popup_rotate_cb,
+                                      pSubtitleBGColor);
 
        pSubtitleBGColor->pBox = elm_box_add(pSubtitleBGColor->pPopup);
        vp_popup_set_popup_min_size(pSubtitleBGColor->pParent,
-                                   pSubtitleBGColor->pBox,
-                                   pSubtitleBGColor->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleBGColor->pBox,
+                                   pSubtitleBGColor->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
 
        elm_box_pack_end(pSubtitleBGColor->pBox, pSubtitleBGColor->pGenList);
        elm_object_content_set(pSubtitleBGColor->pPopup,
-                              pSubtitleBGColor->pBox);
+                              pSubtitleBGColor->pBox);
 
        return pSubtitleBGColor;
 }
 
 void vp_subtitle_bg_color_destroy(subtitle_bg_color_handle
-                                 pSubtitleBGColorHandle)
+                                  pSubtitleBGColorHandle)
 {
        if (pSubtitleBGColorHandle == NULL) {
                VideoLogError("pSubtitleBGColorHandle is NULL");
@@ -453,14 +443,14 @@ void vp_subtitle_bg_color_destroy(subtitle_bg_color_handle
        }
 
        SubtitleBGColorPopup *pSubtitleBGColor =
-               (SubtitleBGColorPopup *) pSubtitleBGColorHandle;
+           (SubtitleBGColorPopup *) pSubtitleBGColorHandle;
 
        _vp_subtitle_bg_color_destroy_handle(pSubtitleBGColor);
 
 }
 
 bool vp_subtitle_bg_color_realize(subtitle_bg_color_handle
-                                 pSubtitleBGColorHandle)
+                                  pSubtitleBGColorHandle)
 {
        if (pSubtitleBGColorHandle == NULL) {
                VideoLogError("pSubtitleBGColorHandle is NULL");
@@ -468,7 +458,7 @@ bool vp_subtitle_bg_color_realize(subtitle_bg_color_handle
        }
 
        SubtitleBGColorPopup *pSubtitleBGColor =
-               (SubtitleBGColorPopup *) pSubtitleBGColorHandle;
+           (SubtitleBGColorPopup *) pSubtitleBGColorHandle;
 
        evas_object_show(pSubtitleBGColor->pPopup);
 
@@ -476,7 +466,7 @@ bool vp_subtitle_bg_color_realize(subtitle_bg_color_handle
 }
 
 bool vp_subtitle_bg_color_unrealize(subtitle_bg_color_handle
-                                   pSubtitleBGColorHandle)
+                                    pSubtitleBGColorHandle)
 {
        if (pSubtitleBGColorHandle == NULL) {
                VideoLogError("pSubtitleBGColorHandle is NULL");
@@ -484,7 +474,7 @@ bool vp_subtitle_bg_color_unrealize(subtitle_bg_color_handle
        }
 
        SubtitleBGColorPopup *pSubtitleBGColor =
-               (SubtitleBGColorPopup *) pSubtitleBGColorHandle;
+           (SubtitleBGColorPopup *) pSubtitleBGColorHandle;
 
        evas_object_hide(pSubtitleBGColor->pPopup);
 
@@ -492,8 +482,8 @@ bool vp_subtitle_bg_color_unrealize(subtitle_bg_color_handle
 }
 
 bool vp_subtitle_bg_color_set_user_data(subtitle_bg_color_handle
-                                       pSubtitleBGColorHandle,
-                                       void *pUserData)
+                                        pSubtitleBGColorHandle,
+                                        void *pUserData)
 {
        if (pSubtitleBGColorHandle == NULL) {
                VideoLogError("pSubtitleBGColorHandle is NULL");
@@ -501,7 +491,7 @@ bool vp_subtitle_bg_color_set_user_data(subtitle_bg_color_handle
        }
 
        SubtitleBGColorPopup *pSubtitleBGColor =
-               (SubtitleBGColorPopup *) pSubtitleBGColorHandle;
+           (SubtitleBGColorPopup *) pSubtitleBGColorHandle;
 
        pSubtitleBGColor->pUserData = pUserData;
 
index 58554df..809f37b 100644 (file)
@@ -76,25 +76,23 @@ typedef struct _SubtitleColorPopup {
 
 
 static void _vp_subtitle_color_destroy_handle(SubtitleColorPopup *
-               pSubtitleColor);
+        pSubtitleColor);
 
 #ifndef SUBTITLE_K_FEATURE
 static void __vp_subtitle_color_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void
-               *pEventInfo);
+                        Evas_Object *pObject,
+                        void *pEventInfo);
 
 static void __vp_subtitle_color_genlist_realized(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 #endif
 static void __vp_subtitle_color_popup_rotate_cb(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        SubtitleColorPopup *pSubtitleColor = (SubtitleColorPopup *) data;
        if (!pSubtitleColor) {
@@ -106,19 +104,19 @@ static void __vp_subtitle_color_popup_rotate_cb(void *data,
                return;
        }
        vp_popup_set_popup_min_size(pSubtitleColor->pParent,
-                                   pSubtitleColor->pBox,
-                                   pSubtitleColor->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleColor->pBox,
+                                   pSubtitleColor->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
 #else
        int nRotation = elm_win_rotation_get(pSubtitleColor->pParent);
        if (nRotation == 90 || nRotation == 270)
                elm_layout_file_set(pSubtitleColor->pLayoutOut,
-                                   VP_PLAY_SUBTITLE_COLOR_POPUP_EDJ,
-                                   "pv.subtitle.scroller.layout.landscape");
+                                   VP_PLAY_SUBTITLE_COLOR_POPUP_EDJ,
+                                   "pv.subtitle.scroller.layout.landscape");
        else
                elm_layout_file_set(pSubtitleColor->pLayoutOut,
-                                   VP_PLAY_SUBTITLE_COLOR_POPUP_EDJ,
-                                   "pv.subtitle.scroller.layout");
+                                   VP_PLAY_SUBTITLE_COLOR_POPUP_EDJ,
+                                   "pv.subtitle.scroller.layout");
 #endif
 }
 
@@ -126,9 +124,9 @@ static void __vp_subtitle_color_popup_rotate_cb(void *data,
 
 /* callback functions */
 static char *__vp_subtitle_color_genlist_text_get_cb(const void
-               *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+                        *pUserData,
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -145,11 +143,9 @@ static char *__vp_subtitle_color_genlist_text_get_cb(const void
 }
 
 static Evas_Object *__vp_subtitle_color_genlist_content_get_cb(const void
-               *pUserData,
-               Evas_Object
-               * pObj,
-               const char
-               *pPart)
+                        *pUserData,
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -162,8 +158,8 @@ static Evas_Object *__vp_subtitle_color_genlist_content_get_cb(const void
                Evas_Object *pRadioObj = NULL;
 
                SubtitleColorPopup *pSubtitleColor =
-                       (SubtitleColorPopup *) evas_object_data_get(pObj,
-                                       VP_SUBTITLE_COLOR_GENLIST_DATA_KEY);
+                   (SubtitleColorPopup *) evas_object_data_get(pObj,
+                           VP_SUBTITLE_COLOR_GENLIST_DATA_KEY);
                if (pSubtitleColor == NULL) {
                        VideoLogWarning("evas_object_data_get is fail");
                        return NULL;
@@ -183,10 +179,10 @@ static Evas_Object *__vp_subtitle_color_genlist_content_get_cb(const void
                elm_radio_state_value_set(pRadioObj, nColor);
                elm_radio_group_add(pRadioObj, pSubtitleColor->pRadio);
                elm_radio_value_set(pSubtitleColor->pRadio,
-                                   pSubtitleColor->currentFontColor);
+                                   pSubtitleColor->currentFontColor);
                evas_object_smart_callback_add(pRadioObj, "changed",
-                                              __vp_subtitle_color_genlist_item_selected_cb,
-                                              pSubtitleColor);
+                                              __vp_subtitle_color_genlist_item_selected_cb,
+                                              pSubtitleColor);
                evas_object_show(pRadioObj);
 
                return pRadioObj;
@@ -196,9 +192,8 @@ static Evas_Object *__vp_subtitle_color_genlist_content_get_cb(const void
 }
 
 static void __vp_subtitle_color_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo)
+                        Evas_Object *pObject,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -211,7 +206,7 @@ static void __vp_subtitle_color_genlist_item_selected_cb(void *pUserData,
 
        Elm_Object_Item *pItem = (Elm_Object_Item *) pEventInfo;
        Elm_Object_Item *pSelectedItem =
-               elm_genlist_selected_item_get(pObject);
+           elm_genlist_selected_item_get(pObject);
        if (pSelectedItem) {
                elm_genlist_item_selected_set(pSelectedItem, EINA_FALSE);
        }
@@ -238,15 +233,15 @@ static void __vp_subtitle_color_genlist_item_selected_cb(void *pUserData,
        pSubtitleColor->currentFontColor = nColor;
        if (pSubtitleColor->pCloseCb) {
                pSubtitleColor->pCloseCb(nColor, FALSE,
-                                        (void *) pSubtitleColor->pUserData);
+                                        (void *) pSubtitleColor->pUserData);
        }
 }
 
 #endif
 
 static void __vp_subtitle_color_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -258,18 +253,18 @@ static void __vp_subtitle_color_popup_key_event_cb(void *pUserData,
        if (pSubtitleColor->pCloseCb) {
 #ifndef SUBTITLE_K_FEATURE
                pSubtitleColor->pCloseCb(-1, FALSE,
-                                        (void *) pSubtitleColor->pUserData);
+                                        (void *) pSubtitleColor->pUserData);
 #else
                pSubtitleColor->pCloseCb(pSubtitleColor->pCurrentColorHex, FALSE,
-                                        (void *) pSubtitleColor->pUserData);
+                                        (void *) pSubtitleColor->pUserData);
 #endif
        }
 }
 
 static void __vp_subtitle_color_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas *pEvas,
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -285,14 +280,14 @@ static void __vp_subtitle_color_popup_mouse_event_cb(void *pUserData,
 
        if (ev->button == 3) {
                SubtitleColorPopup *pSubtitleColor =
-                       (SubtitleColorPopup *) pUserData;
+                   (SubtitleColorPopup *) pUserData;
 
 #ifndef SUBTITLE_K_FEATURE
                pSubtitleColor->pCloseCb(-1, FALSE,
-                                        (void *) pSubtitleColor->pUserData);
+                                        (void *) pSubtitleColor->pUserData);
 #else
                pSubtitleColor->pCloseCb(pSubtitleColor->pCurrentColorHex, FALSE,
-                                        (void *) pSubtitleColor->pUserData);
+                                        (void *) pSubtitleColor->pUserData);
 #endif
        }
 }
@@ -376,7 +371,7 @@ char *_vp_subtitle_color_get_select_color(char *pColor, int nOpacity)
 }
 
 static void _vp_subtitle_color_destroy_handle(SubtitleColorPopup *
-               pSubtitleColor)
+                                pSubtitleColor)
 {
        if (pSubtitleColor == NULL) {
                VideoLogError("pSubtitleColor is NULL");
@@ -384,11 +379,11 @@ static void _vp_subtitle_color_destroy_handle(SubtitleColorPopup *
        }
 
        evas_object_smart_callback_del(pSubtitleColor->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_color_popup_rotate_cb);
+                                      "rotation,changed",
+                                      __vp_subtitle_color_popup_rotate_cb);
 #ifndef SUBTITLE_K_FEATURE
        evas_object_smart_callback_del(pSubtitleColor->pGenList, "realized",
-                                      __vp_subtitle_color_genlist_realized);
+                                      __vp_subtitle_color_genlist_realized);
 #endif
 
 
@@ -409,7 +404,7 @@ static void _vp_subtitle_color_destroy_handle(SubtitleColorPopup *
 #endif
        if (pSubtitleColor->st_SubtitleFontColor_Itc) {
                elm_genlist_item_class_free(pSubtitleColor->
-                                           st_SubtitleFontColor_Itc);
+                                           st_SubtitleFontColor_Itc);
                pSubtitleColor->st_SubtitleFontColor_Itc = NULL;
        }
 
@@ -420,7 +415,7 @@ static void _vp_subtitle_color_destroy_handle(SubtitleColorPopup *
 
 #ifndef SUBTITLE_K_FEATURE
 static Evas_Object *_vp_subtitle_color_create_genlist(Evas_Object *
-               pParent)
+                                pParent)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -431,7 +426,7 @@ static Evas_Object *_vp_subtitle_color_create_genlist(Evas_Object *
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -439,7 +434,7 @@ static Evas_Object *_vp_subtitle_color_create_genlist(Evas_Object *
 
 
 static bool _vp_subtitle_color_add_genlist_item(Evas_Object *pObj,
-               void *pUserData)
+                                void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -450,51 +445,51 @@ static bool _vp_subtitle_color_add_genlist_item(Evas_Object *pObj,
 
        if (pSubtitleColor->st_SubtitleFontColor_Itc) {
                elm_genlist_item_class_free(pSubtitleColor->
-                                           st_SubtitleFontColor_Itc);
+                                           st_SubtitleFontColor_Itc);
                pSubtitleColor->st_SubtitleFontColor_Itc = NULL;
        }
 
        pSubtitleColor->st_SubtitleFontColor_Itc =
-               elm_genlist_item_class_new();
+           elm_genlist_item_class_new();
        pSubtitleColor->st_SubtitleFontColor_Itc->version =
-               ELM_GENLIST_ITEM_CLASS_VERSION;
+           ELM_GENLIST_ITEM_CLASS_VERSION;
        pSubtitleColor->st_SubtitleFontColor_Itc->item_style =
-               "1text.1icon.3/popup";
+           "1text.1icon.3/popup";
        pSubtitleColor->st_SubtitleFontColor_Itc->func.text_get =
-               (void *) __vp_subtitle_color_genlist_text_get_cb;
+           (void *) __vp_subtitle_color_genlist_text_get_cb;
        pSubtitleColor->st_SubtitleFontColor_Itc->func.content_get =
-               (void *) __vp_subtitle_color_genlist_content_get_cb;
+           (void *) __vp_subtitle_color_genlist_content_get_cb;
        pSubtitleColor->st_SubtitleFontColor_Itc->func.state_get = NULL;
        pSubtitleColor->st_SubtitleFontColor_Itc->func.del = NULL;
        pSubtitleColor->nListCount = 0;
 
        elm_genlist_item_append(pObj,
-                               pSubtitleColor->st_SubtitleFontColor_Itc,
-                               (void *) VP_PLAY_STRING_SUBTITLE_COLOR_WHITE,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_color_genlist_item_selected_cb,
-                               pUserData);
+                               pSubtitleColor->st_SubtitleFontColor_Itc,
+                               (void *) VP_PLAY_STRING_SUBTITLE_COLOR_WHITE,
+                               NULL, ELM_GENLIST_ITEM_NONE,
+                               __vp_subtitle_color_genlist_item_selected_cb,
+                               pUserData);
        pSubtitleColor->nListCount++;
        elm_genlist_item_append(pObj,
-                               pSubtitleColor->st_SubtitleFontColor_Itc,
-                               (void *) VP_PLAY_STRING_SUBTITLE_COLOR_BLUE,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_color_genlist_item_selected_cb,
-                               pUserData);
+                               pSubtitleColor->st_SubtitleFontColor_Itc,
+                               (void *) VP_PLAY_STRING_SUBTITLE_COLOR_BLUE,
+                               NULL, ELM_GENLIST_ITEM_NONE,
+                               __vp_subtitle_color_genlist_item_selected_cb,
+                               pUserData);
        pSubtitleColor->nListCount++;
        elm_genlist_item_append(pObj,
-                               pSubtitleColor->st_SubtitleFontColor_Itc,
-                               (void *) VP_PLAY_STRING_SUBTITLE_COLOR_GREEN,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_color_genlist_item_selected_cb,
-                               pUserData);
+                               pSubtitleColor->st_SubtitleFontColor_Itc,
+                               (void *) VP_PLAY_STRING_SUBTITLE_COLOR_GREEN,
+                               NULL, ELM_GENLIST_ITEM_NONE,
+                               __vp_subtitle_color_genlist_item_selected_cb,
+                               pUserData);
        pSubtitleColor->nListCount++;
        elm_genlist_item_append(pObj,
-                               pSubtitleColor->st_SubtitleFontColor_Itc,
-                               (void *) VP_PLAY_STRING_SUBTITLE_COLOR_BLACK,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_color_genlist_item_selected_cb,
-                               pUserData);
+                               pSubtitleColor->st_SubtitleFontColor_Itc,
+                               (void *) VP_PLAY_STRING_SUBTITLE_COLOR_BLACK,
+                               NULL, ELM_GENLIST_ITEM_NONE,
+                               __vp_subtitle_color_genlist_item_selected_cb,
+                               pUserData);
        pSubtitleColor->nListCount++;
 
        return TRUE;
@@ -504,8 +499,8 @@ static bool _vp_subtitle_color_add_genlist_item(Evas_Object *pObj,
 /* callback functions */
 
 static void __vp_play_subtitle_color_popup_ok_btn_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -514,21 +509,21 @@ static void __vp_play_subtitle_color_popup_ok_btn_cb(void *pUserData,
 
        SubtitleColorPopup *pSubtitleColor = (SubtitleColorPopup *) pUserData;
        char *pColorHex =
-               _vp_subtitle_color_get_select_color(pSubtitleColor->
-                               pCurrentColorHex,
-                               pSubtitleColor->nOpacityVal);
+           _vp_subtitle_color_get_select_color(pSubtitleColor->
+                                               pCurrentColorHex,
+                                               pSubtitleColor->nOpacityVal);
 
        if (pSubtitleColor->pCloseCb) {
                pSubtitleColor->pCloseCb(pColorHex, TRUE,
-                                        (void *) pSubtitleColor->pUserData);
+                                        (void *) pSubtitleColor->pUserData);
        }
        VP_FREE(pColorHex);
 }
 
 static void __vp_play_subtitle_color_popup_cancel_btn_cb(void *pUserData,
-               Evas_Object *
-               pObj,
-               void *pEventInfo)
+        Evas_Object *
+        pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -539,13 +534,13 @@ static void __vp_play_subtitle_color_popup_cancel_btn_cb(void *pUserData,
 
        if (pSubtitleColor->pCloseCb) {
                pSubtitleColor->pCloseCb(pSubtitleColor->pCurrentColorHex, FALSE,
-                                        (void *) pSubtitleColor->pUserData);
+                                        (void *) pSubtitleColor->pUserData);
        }
 }
 
 static Evas_Object
 *_vp_play_subtitle_color_popup_create_ok_button(Evas_Object *pParent,
-               void *pUserData)
+                        void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -556,11 +551,11 @@ static Evas_Object
        pObj = elm_button_add(pParent);
        elm_object_style_set(pObj, "popup_button/default");
        elm_object_domain_translatable_text_set(pObj, VP_SYS_STR_PREFIX,
-                                               VP_PLAY_STRING_COM_OK_IDS);
+                                               VP_PLAY_STRING_COM_OK_IDS);
        elm_object_part_content_set(pParent, "button2", pObj);
        evas_object_smart_callback_add(pObj, "clicked",
-                                      __vp_play_subtitle_color_popup_ok_btn_cb,
-                                      pUserData);
+                                      __vp_play_subtitle_color_popup_ok_btn_cb,
+                                      pUserData);
        evas_object_show(pObj);
 
        return pObj;
@@ -568,8 +563,8 @@ static Evas_Object
 
 static Evas_Object
 *_vp_play_subtitle_color_popup_create_cancel_button(Evas_Object *
-               pParent,
-               void *pUserData)
+                        pParent,
+                        void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -580,21 +575,19 @@ static Evas_Object
        pObj = elm_button_add(pParent);
        elm_object_style_set(pObj, "popup_button/default");
        elm_object_domain_translatable_text_set(pObj, VP_SYS_STR_PREFIX,
-                                               VP_PLAY_STRING_COM_CANCEL_IDS);
+                                               VP_PLAY_STRING_COM_CANCEL_IDS);
        elm_object_part_content_set(pParent, "button1", pObj);
        evas_object_smart_callback_add(pObj, "clicked",
-                                      __vp_play_subtitle_color_popup_cancel_btn_cb,
-                                      pUserData);
+                                      __vp_play_subtitle_color_popup_cancel_btn_cb,
+                                      pUserData);
        evas_object_show(pObj);
 
        return pObj;
 }
 
 static void _vp_play_subtitle_color_popup_colorpalette_cb(void *data,
-               Evas_Object *
-               obj,
-               void
-               *event_info)
+                Evas_Object *obj,
+                void *event_info)
 {
        if (data == NULL) {
                VideoLogError("pUserData is NULL");
@@ -613,14 +606,14 @@ static void _vp_play_subtitle_color_popup_colorpalette_cb(void *data,
 
        VP_FREE(pSubtitleColor->pCurrentColorHex);
        pSubtitleColor->pCurrentColorHex =
-               vp_play_util_convert_rgba_to_hex(r, g, b, a);
+           vp_play_util_convert_rgba_to_hex(r, g, b, a);
        //Need Free;
        VideoLogInfo("p = %s", pSubtitleColor->pCurrentColorHex);
 }
 
 static void _vp_play_subtitle_color_popup_colorplane_cb(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                Evas_Object *obj,
+                void *event_info)
 {
        if (data == NULL) {
                VideoLogError("pUserData is NULL");
@@ -634,7 +627,7 @@ static void _vp_play_subtitle_color_popup_colorplane_cb(void *data,
        SubtitleColorplaneData *cp = pSubtitleColor->pColorplaneData;
        if (!cp->changed) {
                elm_object_item_signal_emit(cp->it_last, "elm,state,custom,hide",
-                                           "");
+                                           "");
                cp->changed = EINA_TRUE;
        }
        elm_colorselector_color_get(cp->colorselector, &r, &g, &b, &a);
@@ -645,20 +638,17 @@ static void _vp_play_subtitle_color_popup_colorplane_cb(void *data,
        elm_colorselector_palette_item_color_set(cp->it_last, r, g, b, a);
        if (cp->sel_it != cp->it_last) {
                elm_object_item_signal_emit(cp->it_last, "elm,state,selected",
-                                           "elm");
+                                           "elm");
        }
 
        VP_FREE(pSubtitleColor->pCurrentColorHex);
        pSubtitleColor->pCurrentColorHex =
-               vp_play_util_convert_rgba_to_hex(r, g, b, a);
+           vp_play_util_convert_rgba_to_hex(r, g, b, a);
 
 }
 
-static void _vp_play_subtitle_color_popup_create_colorpalette(Evas_Object
-               * layout,
-               SubtitleColorPopup
-               *
-               pSubtitleColorPopup)
+static void _vp_play_subtitle_color_popup_create_colorpalette(Evas_Object *layout,
+                SubtitleColorPopup *pSubtitleColorPopup)
 {
        if (pSubtitleColorPopup == NULL) {
                VideoLogError("pSubtitleColorPopup is NULL");
@@ -674,8 +664,8 @@ static void _vp_play_subtitle_color_popup_create_colorpalette(Evas_Object
        SubtitleColorplaneData *cp = pSubtitleColorPopup->pColorplaneData;
 
        int nIndex =
-               _vp_subtitle_color_get_platte_index(pSubtitleColorPopup->
-                               pCurrentColorHex);
+           _vp_subtitle_color_get_platte_index(pSubtitleColorPopup->
+                                               pCurrentColorHex);
 
        /* add color palette widget */
        Eina_List *last_list;
@@ -686,16 +676,16 @@ static void _vp_play_subtitle_color_popup_create_colorpalette(Evas_Object
        elm_object_style_set(cp->colorselector, "colorplane");
        //elm_colorselector_mode_set(cp->colorselector, ELM_COLORSELECTOR_PALETTE_PLANE);
        evas_object_size_hint_fill_set(cp->colorselector, EVAS_HINT_FILL,
-                                      EVAS_HINT_FILL);
+                                      EVAS_HINT_FILL);
        evas_object_size_hint_weight_set(cp->colorselector, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        elm_object_part_content_set(layout,
-                                   "pv.subtitle-color-popup.colorpalette.swallow",
-                                   cp->colorselector);
+                                   "pv.subtitle-color-popup.colorpalette.swallow",
+                                   cp->colorselector);
        evas_object_smart_callback_add(cp->colorselector,
-                                      "color,item,selected",
-                                      _vp_play_subtitle_color_popup_colorpalette_cb,
-                                      pSubtitleColorPopup);
+                                      "color,item,selected",
+                                      _vp_play_subtitle_color_popup_colorpalette_cb,
+                                      pSubtitleColorPopup);
 
        edje_object_message_signal_process(elm_layout_edje_get(layout));
        elm_colorselector_palette_color_add(cp->colorselector, 255, 255, 255, 255);     //white
@@ -714,18 +704,18 @@ static void _vp_play_subtitle_color_popup_create_colorpalette(Evas_Object
        elm_object_item_signal_emit(cp->it_last, "elm,state,custom,show", "");
        cp->changed = EINA_FALSE;
        evas_object_smart_callback_add(cp->colorselector, "changed",
-                                      _vp_play_subtitle_color_popup_colorplane_cb,
-                                      pSubtitleColorPopup);
+                                      _vp_play_subtitle_color_popup_colorplane_cb,
+                                      pSubtitleColorPopup);
        cp->sel_it = eina_list_nth(color_list, nIndex);
        elm_object_item_signal_emit(cp->sel_it, "elm,state,selected", "elm");
 
        if (nIndex == 8) {
                int r, g, b, a;
                vp_play_util_convert_hex_to_rgba(pSubtitleColorPopup->
-                                                pCurrentColorHex, &r, &g, &b,
-                                                &a);
+                                                pCurrentColorHex, &r, &g, &b,
+                                                &a);
                elm_colorselector_palette_item_color_set(cp->it_last, r, g, b,
-                               255);
+                       255);
        }
 }
 
@@ -744,18 +734,18 @@ static Evas_Object
        }
 
        elm_layout_file_set(pLayout, VP_PLAY_SUBTITLE_COLOR_POPUP_EDJ,
-                           VP_PLAY_EDJ_GROUP_PLAY_SUBTITLE_COLOR_POPUP);
+                           VP_PLAY_EDJ_GROUP_PLAY_SUBTITLE_COLOR_POPUP);
 
        evas_object_size_hint_weight_set(pLayout, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pLayout, EVAS_HINT_FILL,
-                                       EVAS_HINT_FILL);
+                                       EVAS_HINT_FILL);
 
        elm_object_part_text_set(pLayout, "pv.subtitle-color-popup.subject",
-                                VP_PLAY_STRING_SUBTITLE_TEXT);
+                                VP_PLAY_STRING_SUBTITLE_TEXT);
        elm_object_part_text_set(pLayout,
-                                "pv.subtitle-color-popup.opacity.text",
-                                VP_PLAY_STRING_SUBTITLE_OPACITY);
+                                "pv.subtitle-color-popup.opacity.text",
+                                VP_PLAY_STRING_SUBTITLE_OPACITY);
 
        evas_object_show(pLayout);
 
@@ -764,7 +754,7 @@ static Evas_Object
 }
 
 static void _vp_play_subtitle_color_update_text(SubtitleColorPopup *
-               pSubtitleColorPopup)
+                        pSubtitleColorPopup)
 {
        if (pSubtitleColorPopup == NULL) {
                VideoLogError("pSubtitleColorPopup is NULL");
@@ -774,16 +764,16 @@ static void _vp_play_subtitle_color_update_text(SubtitleColorPopup *
        char szValue[6] = { 0, };
 
        snprintf(szValue, 6, "%2d %%",
-                (int) pSubtitleColorPopup->nOpacityVal);
+                (int) pSubtitleColorPopup->nOpacityVal);
        elm_object_part_text_set(pSubtitleColorPopup->pLayout,
-                                "pv.subtitle-color-popup.opacity.percent",
-                                szValue);
+                                "pv.subtitle-color-popup.opacity.percent",
+                                szValue);
 
 }
 
 static void __vp_play_subtitle_color_btn_clicked_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+                        Evas_Object *pObj,
+                        void *pEvent)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -791,7 +781,7 @@ static void __vp_play_subtitle_color_btn_clicked_cb(void *pUserData,
        }
 
        SubtitleColorPopup *pSubtitleColorPopup =
-               (SubtitleColorPopup *) pUserData;
+           (SubtitleColorPopup *) pUserData;
 
        int nValue = elm_slider_value_get(pSubtitleColorPopup->pSlider);
        VideoLogDebug("== %d ==", nValue);
@@ -829,8 +819,8 @@ static void __vp_play_subtitle_color_btn_clicked_cb(void *pUserData,
 }
 
 static bool _vp_play_subtitle_color_popup_create_button(Evas_Object *
-               pParent,
-               void *pUserData)
+                        pParent,
+                        void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -838,82 +828,80 @@ static bool _vp_play_subtitle_color_popup_create_button(Evas_Object *
        }
 
        SubtitleColorPopup *pSubtitleColorPopup =
-               (SubtitleColorPopup *) pUserData;
+           (SubtitleColorPopup *) pUserData;
 
        pSubtitleColorPopup->pDelButton =
-               vp_button_create(pParent, "playview/custom/flat_63_78/default",
-                                NULL,
-                                (Evas_Smart_Cb)
-                                __vp_play_subtitle_color_btn_clicked_cb,
-                                (Evas_Smart_Cb) NULL, (Evas_Smart_Cb) NULL,
-                                (void *) pSubtitleColorPopup);
+           vp_button_create(pParent, "playview/custom/flat_63_78/default",
+                            NULL,
+                            (Evas_Smart_Cb)
+                            __vp_play_subtitle_color_btn_clicked_cb,
+                            (Evas_Smart_Cb) NULL, (Evas_Smart_Cb) NULL,
+                            (void *) pSubtitleColorPopup);
 
        pSubtitleColorPopup->pAddButton =
-               vp_button_create(pParent, "playview/custom/flat_63_78/default",
-                                NULL,
-                                (Evas_Smart_Cb)
-                                __vp_play_subtitle_color_btn_clicked_cb,
-                                (Evas_Smart_Cb) NULL, (Evas_Smart_Cb) NULL,
-                                (void *) pSubtitleColorPopup);
+           vp_button_create(pParent, "playview/custom/flat_63_78/default",
+                            NULL,
+                            (Evas_Smart_Cb)
+                            __vp_play_subtitle_color_btn_clicked_cb,
+                            (Evas_Smart_Cb) NULL, (Evas_Smart_Cb) NULL,
+                            (void *) pSubtitleColorPopup);
 
        Evas_Object *pIcon = NULL;
 
        pIcon =
-               vp_button_create_icon(pSubtitleColorPopup->pDelButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_DEL);
+           vp_button_create_icon(pSubtitleColorPopup->pDelButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_DEL);
        elm_object_part_content_set(pSubtitleColorPopup->pDelButton,
-                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pSubtitleColorPopup->pDelButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_DEL_PRESS);
+           vp_button_create_icon(pSubtitleColorPopup->pDelButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_DEL_PRESS);
        elm_object_part_content_set(pSubtitleColorPopup->pDelButton,
-                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pSubtitleColorPopup->pDelButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_DEL);
+           vp_button_create_icon(pSubtitleColorPopup->pDelButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_DEL);
        elm_object_part_content_set(pSubtitleColorPopup->pDelButton,
-                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pSubtitleColorPopup->pAddButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_ADD);
+           vp_button_create_icon(pSubtitleColorPopup->pAddButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_ADD);
        elm_object_part_content_set(pSubtitleColorPopup->pAddButton,
-                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pSubtitleColorPopup->pAddButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_ADD_PRESS);
+           vp_button_create_icon(pSubtitleColorPopup->pAddButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_ADD_PRESS);
        elm_object_part_content_set(pSubtitleColorPopup->pAddButton,
-                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pSubtitleColorPopup->pAddButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_ADD);
+           vp_button_create_icon(pSubtitleColorPopup->pAddButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_ADD);
        elm_object_part_content_set(pSubtitleColorPopup->pAddButton,
-                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
 
        elm_object_part_content_set(pParent, "elm.swallow.icon.1",
-                                   pSubtitleColorPopup->pDelButton);
+                                   pSubtitleColorPopup->pDelButton);
        elm_object_part_content_set(pParent, "elm.swallow.icon.2",
-                                   pSubtitleColorPopup->pAddButton);
+                                   pSubtitleColorPopup->pAddButton);
 
        return TRUE;
 }
 
 static void __vp_play_subtitle_color_popup_slider_change_cb(void
-               *pUserData,
-               Evas_Object *
-               pObj,
-               void
-               *pEventInfo)
+                        *pUserData,
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -945,7 +933,7 @@ static void __vp_play_subtitle_color_popup_slider_change_cb(void
 
 static Evas_Object
 *_vp_play_subtitle_color_popup_create_slider(Evas_Object *pParent,
-               void *pUserData)
+        void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -960,8 +948,8 @@ static Evas_Object
 
        elm_slider_min_max_set(pObj, 0, 100);
        evas_object_smart_callback_add(pObj, "changed",
-                                      __vp_play_subtitle_color_popup_slider_change_cb,
-                                      pUserData);
+                                      __vp_play_subtitle_color_popup_slider_change_cb,
+                                      pUserData);
 
        return pObj;
 }
@@ -971,14 +959,14 @@ static Evas_Object
 /* external functions */
 #ifndef SUBTITLE_K_FEATURE
 subtitle_color_handle vp_subtitle_color_create(Evas_Object *pParent,
-               SubtitlePopupCloseCbFunc
-               pCloseCb,
-               int nDefaultColor)
+        SubtitlePopupCloseCbFunc
+        pCloseCb,
+        int nDefaultColor)
 #else
 subtitle_color_handle vp_subtitle_color_hex_create(Evas_Object *pParent,
-               SubtitlePopupCloseCbFunc
-               pCloseCb,
-               char *pDefaultColor)
+        SubtitlePopupCloseCbFunc
+        pCloseCb,
+        char *pDefaultColor)
 #endif
 {
        if (pParent == NULL) {
@@ -1000,18 +988,18 @@ subtitle_color_handle vp_subtitle_color_hex_create(Evas_Object *pParent,
 
 #ifndef SUBTITLE_K_FEATURE
        pSubtitleColor->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_SUBTITLE_TEXT, NULL, 0.0, NULL,
-                               __vp_subtitle_color_popup_key_event_cb,
-                               __vp_subtitle_color_popup_mouse_event_cb,
-                               (void *) pSubtitleColor);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_SUBTITLE_TEXT, NULL, 0.0, NULL,
+                           __vp_subtitle_color_popup_key_event_cb,
+                           __vp_subtitle_color_popup_mouse_event_cb,
+                           (void *) pSubtitleColor);
 #else
        pSubtitleColor->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_EXPAND_WITH_CANCEL_BTN,
-                               VP_PLAY_STRING_SUBTITLE_COLOR_AND_OPACITY, NULL,
-                               0.0, NULL, __vp_subtitle_color_popup_key_event_cb,
-                               __vp_subtitle_color_popup_mouse_event_cb,
-                               (void *) pSubtitleColor);
+           vp_popup_create(pParent, POPUP_STYLE_EXPAND_WITH_CANCEL_BTN,
+                           VP_PLAY_STRING_SUBTITLE_COLOR_AND_OPACITY, NULL,
+                           0.0, NULL, __vp_subtitle_color_popup_key_event_cb,
+                           __vp_subtitle_color_popup_mouse_event_cb,
+                           (void *) pSubtitleColor);
 #endif
        if (pSubtitleColor->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
@@ -1020,47 +1008,47 @@ subtitle_color_handle vp_subtitle_color_hex_create(Evas_Object *pParent,
        }
 #ifndef SUBTITLE_K_FEATURE
        pSubtitleColor->pGenList =
-               _vp_subtitle_color_create_genlist(pSubtitleColor->pPopup);
+           _vp_subtitle_color_create_genlist(pSubtitleColor->pPopup);
        if (pSubtitleColor->pGenList == NULL) {
                VideoLogError("_vp_subtitle_color_create_genlist fail");
                _vp_subtitle_color_destroy_handle(pSubtitleColor);
                return NULL;
        }
        evas_object_data_set(pSubtitleColor->pGenList,
-                            VP_SUBTITLE_COLOR_GENLIST_DATA_KEY,
-                            (void *) pSubtitleColor);
+                            VP_SUBTITLE_COLOR_GENLIST_DATA_KEY,
+                            (void *) pSubtitleColor);
        evas_object_smart_callback_add(pSubtitleColor->pGenList, "realized",
-                                      __vp_subtitle_color_genlist_realized,
-                                      NULL);
+                                      __vp_subtitle_color_genlist_realized,
+                                      NULL);
 
        pSubtitleColor->nDefaultIndex = nDefaultColor;
        pSubtitleColor->pRadio = elm_radio_add(pSubtitleColor->pGenList);
 
        if (!_vp_subtitle_color_add_genlist_item
-                       (pSubtitleColor->pGenList, (void *) pSubtitleColor)) {
+               (pSubtitleColor->pGenList, (void *) pSubtitleColor)) {
                VideoLogError("_vp_subtitle_color_add_genlist_item fail");
                return FALSE;
        }
        //elm_radio_value_set(pSubtitleColor->pRadio, nDefaultColor);
        pSubtitleColor->currentFontColor = nDefaultColor;
        evas_object_smart_callback_add(pSubtitleColor->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_color_popup_rotate_cb,
-                                      pSubtitleColor);
+                                      "rotation,changed",
+                                      __vp_subtitle_color_popup_rotate_cb,
+                                      pSubtitleColor);
 
        pSubtitleColor->pBox = elm_box_add(pSubtitleColor->pPopup);
        vp_popup_set_popup_min_size(pSubtitleColor->pParent,
-                                   pSubtitleColor->pBox,
-                                   pSubtitleColor->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleColor->pBox,
+                                   pSubtitleColor->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
        elm_box_pack_end(pSubtitleColor->pBox, pSubtitleColor->pGenList);
        elm_object_content_set(pSubtitleColor->pPopup, pSubtitleColor->pBox);
 #else
        pSubtitleColor->pCurrentColorHex = strdup(pDefaultColor);
 
        pSubtitleColor->pCancelButton =
-               _vp_play_subtitle_color_popup_create_cancel_button
-               (pSubtitleColor->pPopup, (void *) pSubtitleColor);
+           _vp_play_subtitle_color_popup_create_cancel_button
+           (pSubtitleColor->pPopup, (void *) pSubtitleColor);
        if (pSubtitleColor->pCancelButton == NULL) {
                VideoLogError("_vp_play_speed_popup_create_cancel_button fail");
                _vp_subtitle_color_destroy_handle(pSubtitleColor);
@@ -1068,10 +1056,10 @@ subtitle_color_handle vp_subtitle_color_hex_create(Evas_Object *pParent,
        }
 
        pSubtitleColor->pOkButton =
-               _vp_play_subtitle_color_popup_create_ok_button(pSubtitleColor->
-                               pPopup,
-                               (void *)
-                               pSubtitleColor);
+           _vp_play_subtitle_color_popup_create_ok_button(pSubtitleColor->
+                   pPopup,
+                   (void *)
+                   pSubtitleColor);
        if (pSubtitleColor->pOkButton == NULL) {
                VideoLogError("_vp_play_speed_popup_create_ok_button fail");
                _vp_subtitle_color_destroy_handle(pSubtitleColor);
@@ -1079,8 +1067,8 @@ subtitle_color_handle vp_subtitle_color_hex_create(Evas_Object *pParent,
        }
 
        pSubtitleColor->pLayout =
-               _vp_play_subtitle_color_popup_create_layout(pSubtitleColor->
-                               pPopup);
+           _vp_play_subtitle_color_popup_create_layout(pSubtitleColor->
+                   pPopup);
        if (pSubtitleColor->pLayout == NULL) {
                VideoLogError("_vp_play_speed_popup_create_layout fail");
                _vp_subtitle_color_destroy_handle(pSubtitleColor);
@@ -1088,36 +1076,37 @@ subtitle_color_handle vp_subtitle_color_hex_create(Evas_Object *pParent,
        }
 
        pSubtitleColor->pColorplaneData =
-               (SubtitleColorplaneData *) malloc(sizeof(SubtitleColorplaneData));
-       if (!pSubtitleColor->pColorplaneData)
+           (SubtitleColorplaneData *) malloc(sizeof(SubtitleColorplaneData));
+       if (!pSubtitleColor->pColorplaneData) {
                return NULL;
+       }
        memset(pSubtitleColor->pColorplaneData, 0,
               sizeof(SubtitleColorplaneData));
 
        _vp_play_subtitle_color_popup_create_colorpalette(pSubtitleColor->
-                       pLayout,
-                       pSubtitleColor);
+               pLayout,
+               pSubtitleColor);
 
        pSubtitleColor->pSlider =
-               _vp_play_subtitle_color_popup_create_slider(pSubtitleColor->
-                               pLayout,
-                               pSubtitleColor);
+           _vp_play_subtitle_color_popup_create_slider(pSubtitleColor->
+                   pLayout,
+                   pSubtitleColor);
        if (pSubtitleColor->pSlider == NULL) {
                VideoLogError("_vp_play_subtitle_color_popup_create_slider fail");
                _vp_subtitle_color_destroy_handle(pSubtitleColor);
                return NULL;
        }
        _vp_play_subtitle_color_popup_create_button(pSubtitleColor->pLayout,
-                       pSubtitleColor);
+               pSubtitleColor);
        pSubtitleColor->nOpacityVal =
-               _vp_subtitle_color_get_opacity(pSubtitleColor->pCurrentColorHex);
+           _vp_subtitle_color_get_opacity(pSubtitleColor->pCurrentColorHex);
        elm_slider_value_set(pSubtitleColor->pSlider,
-                            (int) pSubtitleColor->nOpacityVal);
+                            (int) pSubtitleColor->nOpacityVal);
        _vp_play_subtitle_color_update_text(pSubtitleColor);
 
        elm_object_part_content_set(pSubtitleColor->pLayout,
-                                   "elm.swallow.content",
-                                   pSubtitleColor->pSlider);
+                                   "elm.swallow.content",
+                                   pSubtitleColor->pSlider);
 
        //Used for scroller layout:
        //popup->LayoutOut->Scroller->pLayout
@@ -1125,36 +1114,36 @@ subtitle_color_handle vp_subtitle_color_hex_create(Evas_Object *pParent,
        int nRotation = elm_win_rotation_get(pSubtitleColor->pParent);
        if (nRotation == 90 || nRotation == 270)
                elm_layout_file_set(pSubtitleColor->pLayoutOut,
-                                   VP_PLAY_SUBTITLE_COLOR_POPUP_EDJ,
-                                   "pv.subtitle.scroller.layout.landscape");
+                                   VP_PLAY_SUBTITLE_COLOR_POPUP_EDJ,
+                                   "pv.subtitle.scroller.layout.landscape");
        else
                elm_layout_file_set(pSubtitleColor->pLayoutOut,
-                                   VP_PLAY_SUBTITLE_COLOR_POPUP_EDJ,
-                                   "pv.subtitle.scroller.layout");
+                                   VP_PLAY_SUBTITLE_COLOR_POPUP_EDJ,
+                                   "pv.subtitle.scroller.layout");
        evas_object_size_hint_weight_set(pSubtitleColor->pLayoutOut,
-                                        EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
 
        pSubtitleColor->pScroller =
-               elm_scroller_add(pSubtitleColor->pLayoutOut);
+           elm_scroller_add(pSubtitleColor->pLayoutOut);
        elm_scroller_bounce_set(pSubtitleColor->pScroller, EINA_TRUE,
-                               EINA_TRUE);
+                               EINA_TRUE);
        elm_scroller_policy_set(pSubtitleColor->pScroller,
-                               ELM_SCROLLER_POLICY_OFF,
-                               ELM_SCROLLER_POLICY_AUTO);
+                               ELM_SCROLLER_POLICY_OFF,
+                               ELM_SCROLLER_POLICY_AUTO);
        evas_object_show(pSubtitleColor->pScroller);
        elm_object_content_set(pSubtitleColor->pScroller,
-                              pSubtitleColor->pLayout);
+                              pSubtitleColor->pLayout);
 
        elm_object_part_content_set(pSubtitleColor->pLayoutOut,
-                                   "elm.swallow.content",
-                                   pSubtitleColor->pScroller);
+                                   "elm.swallow.content",
+                                   pSubtitleColor->pScroller);
        elm_object_content_set(pSubtitleColor->pPopup,
-                              pSubtitleColor->pLayoutOut);
+                              pSubtitleColor->pLayoutOut);
 
        evas_object_smart_callback_add(pSubtitleColor->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_color_popup_rotate_cb,
-                                      pSubtitleColor);
+                                      "rotation,changed",
+                                      __vp_subtitle_color_popup_rotate_cb,
+                                      pSubtitleColor);
        evas_object_show(pSubtitleColor->pLayout);
 
 #endif
@@ -1169,7 +1158,7 @@ void vp_subtitle_color_destroy(subtitle_color_handle pSubtitleColorHandle)
        }
 
        SubtitleColorPopup *pSubtitleColor =
-               (SubtitleColorPopup *) pSubtitleColorHandle;
+           (SubtitleColorPopup *) pSubtitleColorHandle;
 
        _vp_subtitle_color_destroy_handle(pSubtitleColor);
 
@@ -1183,7 +1172,7 @@ bool vp_subtitle_color_realize(subtitle_color_handle pSubtitleColorHandle)
        }
 
        SubtitleColorPopup *pSubtitleColor =
-               (SubtitleColorPopup *) pSubtitleColorHandle;
+           (SubtitleColorPopup *) pSubtitleColorHandle;
 
        evas_object_show(pSubtitleColor->pPopup);
 
@@ -1191,7 +1180,7 @@ bool vp_subtitle_color_realize(subtitle_color_handle pSubtitleColorHandle)
 }
 
 bool vp_subtitle_color_unrealize(subtitle_color_handle
-                                pSubtitleColorHandle)
+                                 pSubtitleColorHandle)
 {
        if (pSubtitleColorHandle == NULL) {
                VideoLogError("pSubtitleColorHandle is NULL");
@@ -1199,7 +1188,7 @@ bool vp_subtitle_color_unrealize(subtitle_color_handle
        }
 
        SubtitleColorPopup *pSubtitleColor =
-               (SubtitleColorPopup *) pSubtitleColorHandle;
+           (SubtitleColorPopup *) pSubtitleColorHandle;
 
        evas_object_hide(pSubtitleColor->pPopup);
 
@@ -1207,8 +1196,8 @@ bool vp_subtitle_color_unrealize(subtitle_color_handle
 }
 
 bool vp_subtitle_color_set_user_data(subtitle_color_handle
-                                    pSubtitleColorHandle,
-                                    void *pUserData)
+                                     pSubtitleColorHandle,
+                                     void *pUserData)
 {
        if (pSubtitleColorHandle == NULL) {
                VideoLogError("pSubtitleColorHandle is NULL");
@@ -1216,7 +1205,7 @@ bool vp_subtitle_color_set_user_data(subtitle_color_handle
        }
 
        SubtitleColorPopup *pSubtitleColor =
-               (SubtitleColorPopup *) pSubtitleColorHandle;
+           (SubtitleColorPopup *) pSubtitleColorHandle;
 
        pSubtitleColor->pUserData = pUserData;
 
index 366c139..9c738cf 100644 (file)
@@ -48,22 +48,21 @@ typedef struct _SubtitleEdgePopup {
 
 
 static void _vp_subtitle_edge_destroy_handle(SubtitleEdgePopup *
-               pSubtitleEdge);
+        pSubtitleEdge);
 static void __vp_subtitle_edge_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo);
+                        Evas_Object *pObject,
+                        void *pEventInfo);
 
 static void __vp_subtitle_edge_genlist_realized(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_subtitle_edge_popup_rotate_cb(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        SubtitleEdgePopup *pSubtitleEdge = (SubtitleEdgePopup *) data;
        if (!pSubtitleEdge) {
@@ -74,16 +73,16 @@ static void __vp_subtitle_edge_popup_rotate_cb(void *data,
                return;
        }
        vp_popup_set_popup_min_size(pSubtitleEdge->pParent,
-                                   pSubtitleEdge->pBox,
-                                   pSubtitleEdge->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleEdge->pBox,
+                                   pSubtitleEdge->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
 
 }
 
 /* callback functions */
 static char *__vp_subtitle_edge_genlist_text_get_cb(const void *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -100,11 +99,9 @@ static char *__vp_subtitle_edge_genlist_text_get_cb(const void *pUserData,
 }
 
 static Evas_Object *__vp_subtitle_edge_genlist_content_get_cb(const void
-               *pUserData,
-               Evas_Object
-               * pObj,
-               const char
-               *pPart)
+                        *pUserData,
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -117,8 +114,8 @@ static Evas_Object *__vp_subtitle_edge_genlist_content_get_cb(const void
                Evas_Object *pRadioObj = NULL;
 
                SubtitleEdgePopup *pSubtitleEdge =
-                       (SubtitleEdgePopup *) evas_object_data_get(pObj,
-                                       VP_SUBTITLE_EDGE_GENLIST_DATA_KEY);
+                   (SubtitleEdgePopup *) evas_object_data_get(pObj,
+                           VP_SUBTITLE_EDGE_GENLIST_DATA_KEY);
                if (pSubtitleEdge == NULL) {
                        VideoLogWarning("evas_object_data_get is fail");
                        return NULL;
@@ -138,10 +135,10 @@ static Evas_Object *__vp_subtitle_edge_genlist_content_get_cb(const void
                elm_radio_state_value_set(pRadioObj, nEdge);
                elm_radio_group_add(pRadioObj, pSubtitleEdge->pRadio);
                elm_radio_value_set(pSubtitleEdge->pRadio,
-                                   pSubtitleEdge->currentSubtitleEdge);
+                                   pSubtitleEdge->currentSubtitleEdge);
                evas_object_smart_callback_add(pRadioObj, "changed",
-                                              __vp_subtitle_edge_genlist_item_selected_cb,
-                                              pSubtitleEdge);
+                                              __vp_subtitle_edge_genlist_item_selected_cb,
+                                              pSubtitleEdge);
                evas_object_show(pRadioObj);
 
                return pRadioObj;
@@ -151,9 +148,8 @@ static Evas_Object *__vp_subtitle_edge_genlist_content_get_cb(const void
 }
 
 static void __vp_subtitle_edge_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo)
+                        Evas_Object *pObject,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -166,7 +162,7 @@ static void __vp_subtitle_edge_genlist_item_selected_cb(void *pUserData,
 
        Elm_Object_Item *pItem = (Elm_Object_Item *) pEventInfo;
        Elm_Object_Item *pSelectedItem =
-               elm_genlist_selected_item_get(pObject);
+           elm_genlist_selected_item_get(pObject);
        if (pSelectedItem) {
                elm_genlist_item_selected_set(pSelectedItem, EINA_FALSE);
        }
@@ -192,13 +188,13 @@ static void __vp_subtitle_edge_genlist_item_selected_cb(void *pUserData,
        pSubtitleEdge->currentSubtitleEdge = nEdge;
        if (pSubtitleEdge->pCloseCb) {
                pSubtitleEdge->pCloseCb(nEdge, FALSE,
-                                       (void *) pSubtitleEdge->pUserData);
+                                       (void *) pSubtitleEdge->pUserData);
        }
 }
 
 static void __vp_subtitle_edge_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -209,14 +205,14 @@ static void __vp_subtitle_edge_popup_key_event_cb(void *pUserData,
 
        if (pSubtitleEdge->pCloseCb) {
                pSubtitleEdge->pCloseCb(-1, FALSE,
-                                       (void *) pSubtitleEdge->pUserData);
+                                       (void *) pSubtitleEdge->pUserData);
        }
 }
 
 static void __vp_subtitle_edge_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas *pEvas,
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -232,11 +228,11 @@ static void __vp_subtitle_edge_popup_mouse_event_cb(void *pUserData,
 
        if (ev->button == 3) {
                SubtitleEdgePopup *pSubtitleEdge =
-                       (SubtitleEdgePopup *) pUserData;
+                   (SubtitleEdgePopup *) pUserData;
 
                if (pSubtitleEdge->pCloseCb) {
                        pSubtitleEdge->pCloseCb(-1, FALSE,
-                                               (void *) pSubtitleEdge->pUserData);
+                                               (void *) pSubtitleEdge->pUserData);
                }
        }
 }
@@ -245,7 +241,7 @@ static void __vp_subtitle_edge_popup_mouse_event_cb(void *pUserData,
 
 /* internal functions */
 static void _vp_subtitle_edge_destroy_handle(SubtitleEdgePopup *
-               pSubtitleEdge)
+                pSubtitleEdge)
 {
        if (pSubtitleEdge == NULL) {
                VideoLogError("pSubtitleEdge is NULL");
@@ -253,10 +249,10 @@ static void _vp_subtitle_edge_destroy_handle(SubtitleEdgePopup *
        }
 
        evas_object_smart_callback_del(pSubtitleEdge->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_edge_popup_rotate_cb);
+                                      "rotation,changed",
+                                      __vp_subtitle_edge_popup_rotate_cb);
        evas_object_smart_callback_del(pSubtitleEdge->pGenList, "realized",
-                                      __vp_subtitle_edge_genlist_realized);
+                                      __vp_subtitle_edge_genlist_realized);
 
        VP_EVAS_DEL(pSubtitleEdge->pRadio);
        VP_EVAS_DEL(pSubtitleEdge->pGenList);
@@ -275,7 +271,7 @@ static void _vp_subtitle_edge_destroy_handle(SubtitleEdgePopup *
 
 
 static Evas_Object *_vp_subtitle_edge_create_genlist(Evas_Object *
-               pParent)
+                        pParent)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -286,7 +282,7 @@ static Evas_Object *_vp_subtitle_edge_create_genlist(Evas_Object *
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -294,7 +290,7 @@ static Evas_Object *_vp_subtitle_edge_create_genlist(Evas_Object *
 
 
 static bool _vp_subtitle_edge_add_genlist_item(Evas_Object *pObj,
-               void *pUserData)
+                void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -312,46 +308,46 @@ static bool _vp_subtitle_edge_add_genlist_item(Evas_Object *pObj,
 
        if (pSubtitleEdge->st_SubtitleEdge_Itc != NULL) {
                pSubtitleEdge->st_SubtitleEdge_Itc->version =
-                       ELM_GENLIST_ITEM_CLASS_VERSION;
+                   ELM_GENLIST_ITEM_CLASS_VERSION;
                pSubtitleEdge->st_SubtitleEdge_Itc->item_style =
-                       "1text.1icon.3/popup";
+                   "1text.1icon.3/popup";
                pSubtitleEdge->st_SubtitleEdge_Itc->func.text_get =
-                       (void *) __vp_subtitle_edge_genlist_text_get_cb;
+                   (void *) __vp_subtitle_edge_genlist_text_get_cb;
                pSubtitleEdge->st_SubtitleEdge_Itc->func.content_get =
-                       (void *) __vp_subtitle_edge_genlist_content_get_cb;
+                   (void *) __vp_subtitle_edge_genlist_content_get_cb;
                pSubtitleEdge->st_SubtitleEdge_Itc->func.state_get = NULL;
                pSubtitleEdge->st_SubtitleEdge_Itc->func.del = NULL;
                pSubtitleEdge->nListCount = 0;
 
                elm_genlist_item_append(pObj, pSubtitleEdge->st_SubtitleEdge_Itc,
-                               (void *) VP_PLAY_STRING_EDGE_NO_EDGE, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_edge_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_EDGE_NO_EDGE, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_edge_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleEdge->nListCount++;
                elm_genlist_item_append(pObj, pSubtitleEdge->st_SubtitleEdge_Itc,
-                               (void *) VP_PLAY_STRING_EDGE_RAISED, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_edge_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_EDGE_RAISED, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_edge_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleEdge->nListCount++;
                elm_genlist_item_append(pObj, pSubtitleEdge->st_SubtitleEdge_Itc,
-                               (void *) VP_PLAY_STRING_EDGE_DEPRESSED, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_edge_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_EDGE_DEPRESSED, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_edge_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleEdge->nListCount++;
                elm_genlist_item_append(pObj, pSubtitleEdge->st_SubtitleEdge_Itc,
-                               (void *) VP_PLAY_STRING_EDGE_UNIFORM, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_edge_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_EDGE_UNIFORM, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_edge_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleEdge->nListCount++;
                elm_genlist_item_append(pObj, pSubtitleEdge->st_SubtitleEdge_Itc,
-                               (void *) VP_PLAY_STRING_EDGE_DROP_SHADOW,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_edge_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_EDGE_DROP_SHADOW,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_edge_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleEdge->nListCount++;
        }
 
@@ -360,8 +356,8 @@ static bool _vp_subtitle_edge_add_genlist_item(Evas_Object *pObj,
 
 /* external functions */
 subtitle_edge_handle vp_subtitle_edge_create(Evas_Object *pParent,
-               PopupCloseCbFunc pCloseCb,
-               int nDefaultSize)
+                        PopupCloseCbFunc pCloseCb,
+                        int nDefaultSize)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -381,11 +377,11 @@ subtitle_edge_handle vp_subtitle_edge_create(Evas_Object *pParent,
        pSubtitleEdge->pCloseCb = pCloseCb;
 
        pSubtitleEdge->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_SUBTITLE_EDGE, NULL, 0.0, NULL,
-                               __vp_subtitle_edge_popup_key_event_cb,
-                               __vp_subtitle_edge_popup_mouse_event_cb,
-                               (void *) pSubtitleEdge);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_SUBTITLE_EDGE, NULL, 0.0, NULL,
+                           __vp_subtitle_edge_popup_key_event_cb,
+                           __vp_subtitle_edge_popup_mouse_event_cb,
+                           (void *) pSubtitleEdge);
        if (pSubtitleEdge->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
                _vp_subtitle_edge_destroy_handle(pSubtitleEdge);
@@ -393,38 +389,38 @@ subtitle_edge_handle vp_subtitle_edge_create(Evas_Object *pParent,
        }
 
        pSubtitleEdge->pGenList =
-               _vp_subtitle_edge_create_genlist(pSubtitleEdge->pPopup);
+           _vp_subtitle_edge_create_genlist(pSubtitleEdge->pPopup);
        if (pSubtitleEdge->pGenList == NULL) {
                VideoLogError("_vp_subtitle_size_create_genlist fail");
                _vp_subtitle_edge_destroy_handle(pSubtitleEdge);
                return NULL;
        }
        evas_object_data_set(pSubtitleEdge->pGenList,
-                            VP_SUBTITLE_EDGE_GENLIST_DATA_KEY,
-                            (void *) pSubtitleEdge);
+                            VP_SUBTITLE_EDGE_GENLIST_DATA_KEY,
+                            (void *) pSubtitleEdge);
        evas_object_smart_callback_add(pSubtitleEdge->pGenList, "realized",
-                                      __vp_subtitle_edge_genlist_realized,
-                                      NULL);
+                                      __vp_subtitle_edge_genlist_realized,
+                                      NULL);
 
        pSubtitleEdge->pRadio = elm_radio_add(pSubtitleEdge->pGenList);
 
        if (!_vp_subtitle_edge_add_genlist_item
-                       (pSubtitleEdge->pGenList, (void *) pSubtitleEdge)) {
+               (pSubtitleEdge->pGenList, (void *) pSubtitleEdge)) {
                VideoLogError("_vp_subtitle_size_add_genlist_item fail");
                return FALSE;
        }
        //elm_radio_value_set(pSubtitleEdge->pRadio, nDefaultSize);
        pSubtitleEdge->currentSubtitleEdge = nDefaultSize;
        evas_object_smart_callback_add(pSubtitleEdge->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_edge_popup_rotate_cb,
-                                      pSubtitleEdge);
+                                      "rotation,changed",
+                                      __vp_subtitle_edge_popup_rotate_cb,
+                                      pSubtitleEdge);
 
        pSubtitleEdge->pBox = elm_box_add(pSubtitleEdge->pPopup);
        vp_popup_set_popup_min_size(pSubtitleEdge->pParent,
-                                   pSubtitleEdge->pBox,
-                                   pSubtitleEdge->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleEdge->pBox,
+                                   pSubtitleEdge->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
        elm_box_pack_end(pSubtitleEdge->pBox, pSubtitleEdge->pGenList);
        elm_object_content_set(pSubtitleEdge->pPopup, pSubtitleEdge->pBox);
 
@@ -439,7 +435,7 @@ void vp_subtitle_edge_destroy(subtitle_edge_handle pSubtitleEdgeHandle)
        }
 
        SubtitleEdgePopup *pSubtitleEdge =
-               (SubtitleEdgePopup *) pSubtitleEdgeHandle;
+           (SubtitleEdgePopup *) pSubtitleEdgeHandle;
 
        _vp_subtitle_edge_destroy_handle(pSubtitleEdge);
 
@@ -453,7 +449,7 @@ bool vp_subtitle_edge_realize(subtitle_edge_handle pSubtitleEdgeHandle)
        }
 
        SubtitleEdgePopup *pSubtitleEdge =
-               (SubtitleEdgePopup *) pSubtitleEdgeHandle;
+           (SubtitleEdgePopup *) pSubtitleEdgeHandle;
 
        evas_object_show(pSubtitleEdge->pPopup);
 
@@ -468,7 +464,7 @@ bool vp_subtitle_edge_unrealize(subtitle_edge_handle pSubtitleEdgeHandle)
        }
 
        SubtitleEdgePopup *pSubtitleEdge =
-               (SubtitleEdgePopup *) pSubtitleEdgeHandle;
+           (SubtitleEdgePopup *) pSubtitleEdgeHandle;
 
        evas_object_hide(pSubtitleEdge->pPopup);
 
@@ -476,7 +472,7 @@ bool vp_subtitle_edge_unrealize(subtitle_edge_handle pSubtitleEdgeHandle)
 }
 
 bool vp_subtitle_edge_set_user_data(subtitle_edge_handle
-                                   pSubtitleEdgeHandle, void *pUserData)
+                                    pSubtitleEdgeHandle, void *pUserData)
 {
        if (pSubtitleEdgeHandle == NULL) {
                VideoLogError("pSubtitleEdgeHandle is NULL");
@@ -484,7 +480,7 @@ bool vp_subtitle_edge_set_user_data(subtitle_edge_handle
        }
 
        SubtitleEdgePopup *pSubtitleEdge =
-               (SubtitleEdgePopup *) pSubtitleEdgeHandle;
+           (SubtitleEdgePopup *) pSubtitleEdgeHandle;
 
        pSubtitleEdge->pUserData = pUserData;
 
index 43f8a8b..920da68 100644 (file)
@@ -61,22 +61,21 @@ typedef struct _SubtitleFontPopup {
 
 
 static void _vp_subtitle_font_destroy_handle(SubtitleFontPopup *
-               pSubtitleFont);
+        pSubtitleFont);
 static void __vp_subtitle_font_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo);
+                        Evas_Object *pObject,
+                        void *pEventInfo);
 
 static void __vp_subtitle_font_genlist_realized(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_subtitle_font_popup_rotate_cb(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        SubtitleFontPopup *pSubtitleFont = (SubtitleFontPopup *) data;
        if (!pSubtitleFont) {
@@ -87,16 +86,16 @@ static void __vp_subtitle_font_popup_rotate_cb(void *data,
                return;
        }
        vp_popup_set_popup_min_size(pSubtitleFont->pParent,
-                                   pSubtitleFont->pBox,
-                                   pSubtitleFont->nAppendCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleFont->pBox,
+                                   pSubtitleFont->nAppendCount,
+                                   VIDEO_POPUP_DEFAULT);
 
 }
 
 /* callback functions */
 static char *__vp_subtitle_font_genlist_text_get_cb(const void *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -109,39 +108,39 @@ static char *__vp_subtitle_font_genlist_text_get_cb(const void *pUserData,
                char *szFormat = NULL;
                if (strcmp(szTxt, VP_PLAY_STRING_COM_DEFAULT) == 0) {
                        szFormat =
-                               g_strdup_printf("<font='%s'>%s</font>",
-                                               VP_FONT_DEFAULT_FONT_NAME,
-                                               VP_PLAY_STRING_FONT_DEFAULT);
+                           g_strdup_printf("<font='%s'>%s</font>",
+                                           VP_FONT_DEFAULT_FONT_NAME,
+                                           VP_PLAY_STRING_FONT_DEFAULT);
                } else if (strcmp(szTxt, VP_FONT_UDRGOTHIC_FONT_NAME) == 0) {
                        szFormat =
-                               g_strdup_printf("<font='%s'>%s</font>",
-                                               VP_FONT_UDRGOTHIC_FONT_NAME,
-                                               VP_PLAY_STRING_FONT_UDRCOTHICM);
+                           g_strdup_printf("<font='%s'>%s</font>",
+                                           VP_FONT_UDRGOTHIC_FONT_NAME,
+                                           VP_PLAY_STRING_FONT_UDRCOTHICM);
                } else if (strcmp(szTxt, VP_FONT_UDMINCHO_FONT_NAME) == 0) {
                        szFormat =
-                               g_strdup_printf("<font='%s'>%s</font>",
-                                               VP_FONT_UDMINCHO_FONT_NAME,
-                                               VP_PLAY_STRING_FONT_UDMINCHO);
+                           g_strdup_printf("<font='%s'>%s</font>",
+                                           VP_FONT_UDMINCHO_FONT_NAME,
+                                           VP_PLAY_STRING_FONT_UDMINCHO);
                } else if (strcmp(szTxt, VP_FONT_POP_FONT_NAME) == 0) {
                        szFormat =
-                               g_strdup_printf("<font='%s'>%s</font>",
-                                               VP_FONT_POP_FONT_NAME,
-                                               VP_PLAY_STRING_FONT_POP);
+                           g_strdup_printf("<font='%s'>%s</font>",
+                                           VP_FONT_POP_FONT_NAME,
+                                           VP_PLAY_STRING_FONT_POP);
                } else if (strcmp(szTxt, VP_FONT_CHOCOCOOKY_FONT_NAME) == 0) {
                        szFormat =
-                               g_strdup_printf("<font='%s'>%s</font>",
-                                               VP_FONT_CHOCOCOOKY_FONT_NAME,
-                                               VP_PLAY_STRING_FONT_CHOCO_COOKY);
+                           g_strdup_printf("<font='%s'>%s</font>",
+                                           VP_FONT_CHOCOCOOKY_FONT_NAME,
+                                           VP_PLAY_STRING_FONT_CHOCO_COOKY);
                } else if (strcmp(szTxt, VP_FONT_COOLJAZZ_FONT_NAME) == 0) {
                        szFormat =
-                               g_strdup_printf("<font='%s'>%s</font>",
-                                               VP_FONT_COOLJAZZ_FONT_NAME,
-                                               VP_PLAY_STRING_FONT_COOL_JAZZ);
+                           g_strdup_printf("<font='%s'>%s</font>",
+                                           VP_FONT_COOLJAZZ_FONT_NAME,
+                                           VP_PLAY_STRING_FONT_COOL_JAZZ);
                } else if (strcmp(szTxt, VP_FONT_ROSEMARY_FONT_NAME) == 0) {
                        szFormat =
-                               g_strdup_printf("<font='%s'>%s</font>",
-                                               VP_FONT_ROSEMARY_FONT_NAME,
-                                               VP_PLAY_STRING_FONT_ROSEMARY);
+                           g_strdup_printf("<font='%s'>%s</font>",
+                                           VP_FONT_ROSEMARY_FONT_NAME,
+                                           VP_PLAY_STRING_FONT_ROSEMARY);
                }
 
                return szFormat;
@@ -151,11 +150,9 @@ static char *__vp_subtitle_font_genlist_text_get_cb(const void *pUserData,
 }
 
 static Evas_Object *__vp_subtitle_font_genlist_content_get_cb(const void
-               *pUserData,
-               Evas_Object
-               * pObj,
-               const char
-               *pPart)
+                        *pUserData,
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -168,8 +165,8 @@ static Evas_Object *__vp_subtitle_font_genlist_content_get_cb(const void
                Evas_Object *pRadioObj = NULL;
 
                SubtitleFontPopup *pSubtitleFont =
-                       (SubtitleFontPopup *) evas_object_data_get(pObj,
-                                       VP_SUBTITLE_FONT_GENLIST_DATA_KEY);
+                   (SubtitleFontPopup *) evas_object_data_get(pObj,
+                           VP_SUBTITLE_FONT_GENLIST_DATA_KEY);
                if (pSubtitleFont == NULL) {
                        VideoLogWarning("evas_object_data_get is fail");
                        return NULL;
@@ -183,7 +180,7 @@ static Evas_Object *__vp_subtitle_font_genlist_content_get_cb(const void
                for (i = 0; i < nCount; i++) {
                        char *szName = NULL;
                        szName =
-                               (char *)g_list_nth_data(pSubtitleFont->pFontList, i);
+                           (char *)g_list_nth_data(pSubtitleFont->pFontList, i);
                        if (szName == NULL) {
                                continue;
                        }
@@ -197,10 +194,10 @@ static Evas_Object *__vp_subtitle_font_genlist_content_get_cb(const void
                elm_radio_state_value_set(pRadioObj, nIndex);
                elm_radio_group_add(pRadioObj, pSubtitleFont->pRadio);
                elm_radio_value_set(pSubtitleFont->pRadio,
-                                   pSubtitleFont->nCurrentFontIdx);
+                                   pSubtitleFont->nCurrentFontIdx);
                evas_object_smart_callback_add(pRadioObj, "changed",
-                                              __vp_subtitle_font_genlist_item_selected_cb,
-                                              pSubtitleFont);
+                                              __vp_subtitle_font_genlist_item_selected_cb,
+                                              pSubtitleFont);
                evas_object_show(pRadioObj);
 
                return pRadioObj;
@@ -210,9 +207,8 @@ static Evas_Object *__vp_subtitle_font_genlist_content_get_cb(const void
 }
 
 static void __vp_subtitle_font_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo)
+                        Evas_Object *pObject,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -225,7 +221,7 @@ static void __vp_subtitle_font_genlist_item_selected_cb(void *pUserData,
 
        Elm_Object_Item *pItem = (Elm_Object_Item *) pEventInfo;
        Elm_Object_Item *pSelectedItem =
-               elm_genlist_selected_item_get(pObject);
+           elm_genlist_selected_item_get(pObject);
        if (pSelectedItem) {
                elm_genlist_item_selected_set(pSelectedItem, EINA_FALSE);
        }
@@ -246,7 +242,7 @@ static void __vp_subtitle_font_genlist_item_selected_cb(void *pUserData,
                for (i = 0; i < nCount; i++) {
                        char *szName = NULL;
                        szName =
-                               (char *)g_list_nth_data(pSubtitleFont->pFontList, i);
+                           (char *)g_list_nth_data(pSubtitleFont->pFontList, i);
                        if (szName == NULL) {
                                continue;
                        }
@@ -265,8 +261,8 @@ static void __vp_subtitle_font_genlist_item_selected_cb(void *pUserData,
 }
 
 static void __vp_subtitle_font_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -281,9 +277,9 @@ static void __vp_subtitle_font_popup_key_event_cb(void *pUserData,
 }
 
 static void __vp_subtitle_font_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas *pEvas,
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -299,11 +295,11 @@ static void __vp_subtitle_font_popup_mouse_event_cb(void *pUserData,
 
        if (ev->button == 3) {
                SubtitleFontPopup *pSubtitleFont =
-                       (SubtitleFontPopup *) pUserData;
+                   (SubtitleFontPopup *) pUserData;
 
                if (pSubtitleFont->pCloseCb) {
                        pSubtitleFont->pCloseCb(NULL,
-                                               (void *) pSubtitleFont->pUserData);
+                                               (void *) pSubtitleFont->pUserData);
                }
        }
 }
@@ -312,7 +308,7 @@ static void __vp_subtitle_font_popup_mouse_event_cb(void *pUserData,
 
 /* internal functions */
 static void _vp_subtitle_font_destroy_handle(SubtitleFontPopup *
-               pSubtitleFont)
+                pSubtitleFont)
 {
        if (pSubtitleFont == NULL) {
                VideoLogError("pSubtitleFont is NULL");
@@ -321,10 +317,10 @@ static void _vp_subtitle_font_destroy_handle(SubtitleFontPopup *
        int nCount = 0;
        int i = 0;
        evas_object_smart_callback_del(pSubtitleFont->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_font_popup_rotate_cb);
+                                      "rotation,changed",
+                                      __vp_subtitle_font_popup_rotate_cb);
        evas_object_smart_callback_del(pSubtitleFont->pGenList, "realized",
-                                      __vp_subtitle_font_genlist_realized);
+                                      __vp_subtitle_font_genlist_realized);
 
        VP_EVAS_DEL(pSubtitleFont->pRadio);
        VP_EVAS_DEL(pSubtitleFont->pGenList);
@@ -355,7 +351,7 @@ static void _vp_subtitle_font_destroy_handle(SubtitleFontPopup *
 
 
 static Evas_Object *_vp_subtitle_font_create_genlist(Evas_Object *
-               pParent)
+                pParent)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -366,14 +362,14 @@ static Evas_Object *_vp_subtitle_font_create_genlist(Evas_Object *
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
 }
 
 static bool _vp_subtitle_font_add_genlist_item(Evas_Object *pObj,
-               void *pUserData)
+                void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -391,21 +387,21 @@ static bool _vp_subtitle_font_add_genlist_item(Evas_Object *pObj,
 
        if (pSubtitleFont->st_SubtitleFont_Itc != NULL) {
                pSubtitleFont->st_SubtitleFont_Itc->version =
-                       ELM_GENLIST_ITEM_CLASS_VERSION;
+                   ELM_GENLIST_ITEM_CLASS_VERSION;
                pSubtitleFont->st_SubtitleFont_Itc->item_style =
-                       "video.multiline/1text.1icon";
+                   "video.multiline/1text.1icon";
                pSubtitleFont->st_SubtitleFont_Itc->func.text_get =
-                       (void *) __vp_subtitle_font_genlist_text_get_cb;
+                   (void *) __vp_subtitle_font_genlist_text_get_cb;
                pSubtitleFont->st_SubtitleFont_Itc->func.content_get =
-                       (void *) __vp_subtitle_font_genlist_content_get_cb;
+                   (void *) __vp_subtitle_font_genlist_content_get_cb;
                pSubtitleFont->st_SubtitleFont_Itc->func.state_get = NULL;
                pSubtitleFont->st_SubtitleFont_Itc->func.del = NULL;
 
                elm_genlist_item_append(pObj, pSubtitleFont->st_SubtitleFont_Itc,
-                               (void *) VP_PLAY_STRING_COM_DEFAULT, NULL,
-                               ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_font_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_COM_DEFAULT, NULL,
+                                       ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_font_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleFont->nAppendCount++;
 
                int nCount = 0;
@@ -419,10 +415,10 @@ static bool _vp_subtitle_font_add_genlist_item(Evas_Object *pObj,
                                continue;
                        }
                        elm_genlist_item_append(pObj, pSubtitleFont->st_SubtitleFont_Itc,
-                                       (void *) szName, NULL,
-                                       ELM_GENLIST_ITEM_NONE,
-                                       __vp_subtitle_font_genlist_item_selected_cb,
-                                       pUserData);
+                                               (void *) szName, NULL,
+                                               ELM_GENLIST_ITEM_NONE,
+                                               __vp_subtitle_font_genlist_item_selected_cb,
+                                               pUserData);
                        pSubtitleFont->nAppendCount++;
                }
        }
@@ -430,7 +426,7 @@ static bool _vp_subtitle_font_add_genlist_item(Evas_Object *pObj,
 }
 
 static bool __vp_subtitle_font_load_font_list(SubtitleFontPopup *
-               pSubtitleFont)
+        pSubtitleFont)
 {
        if (pSubtitleFont == NULL) {
                VideoLogError("pSubtitleFont is NULL");
@@ -468,19 +464,19 @@ static bool __vp_subtitle_font_load_font_list(SubtitleFontPopup *
                        FcChar8 *szFile = NULL;
 
                        if (FcPatternGetString(fs->fonts[j], FC_FILE, 0, &szFile) ==
-                                       FcResultMatch) {
+                               FcResultMatch) {
                                if (szFile == NULL) {
                                        continue;
                                }
                                if (strncmp
-                                               ((const char *) szFile, VP_FONT_PRELOAD_FONT_PATH,
-                                                nPreloadPathLen) == 0
-                                               || strncmp((const char *) szFile,
-                                                          VP_FONT_DOWNLOADED_FONT_PATH,
-                                                          nDownloadPathLen) == 0) {
+                                       ((const char *) szFile, VP_FONT_PRELOAD_FONT_PATH,
+                                        nPreloadPathLen) == 0
+                                       || strncmp((const char *) szFile,
+                                                  VP_FONT_DOWNLOADED_FONT_PATH,
+                                                  nDownloadPathLen) == 0) {
                                        if (FcPatternGetString
-                                                       (fs->fonts[j], FC_FAMILY, 0,
-                                                        &szfamily) == FcResultMatch) {
+                                               (fs->fonts[j], FC_FAMILY, 0,
+                                                &szfamily) == FcResultMatch) {
                                                bool bIsExist = FALSE;
 
                                                if (szfamily == NULL) {
@@ -492,17 +488,17 @@ static bool __vp_subtitle_font_load_font_list(SubtitleFontPopup *
                                                        int nIdx = 0;
 
                                                        nCount =
-                                                               g_list_length(pSubtitleFont->pFontList);
+                                                           g_list_length(pSubtitleFont->pFontList);
                                                        for (nIdx = 0; nIdx < nCount; nIdx++) {
                                                                char *szListName = NULL;
                                                                szListName =
-                                                                       (char *)
-                                                                       g_list_nth_data(pSubtitleFont->
-                                                                                       pFontList, nIdx);
+                                                                   (char *)
+                                                                   g_list_nth_data(pSubtitleFont->
+                                                                                   pFontList, nIdx);
                                                                if (szListName) {
                                                                        if (strcmp
-                                                                                       ((char *)szfamily,
-                                                                                        szListName) == 0) {
+                                                                               ((char *)szfamily,
+                                                                                szListName) == 0) {
                                                                                bIsExist = TRUE;
                                                                        }
                                                                }
@@ -510,44 +506,44 @@ static bool __vp_subtitle_font_load_font_list(SubtitleFontPopup *
                                                }
                                                if (bIsExist == FALSE) {
                                                        if ((strcmp
-                                                                       ((char *)szfamily,
-                                                                        VP_FONT_UDRGOTHIC_FONT_NAME) == 0)
-                                                                       ||
-                                                                       (strcmp
-                                                                        ((char *)szfamily,
-                                                                         VP_FONT_UDMINCHO_FONT_NAME) == 0)
-                                                                       ||
-                                                                       (strcmp
-                                                                        ((char *)szfamily,
-                                                                         VP_FONT_POP_FONT_NAME) == 0)
-                                                                       ||
-                                                                       (strcmp
-                                                                        ((char *)szfamily,
-                                                                         VP_FONT_CHOCOCOOKY_FONT_NAME) == 0)
-                                                                       ||
-                                                                       (strcmp
-                                                                        ((char *)szfamily,
-                                                                         VP_FONT_COOLJAZZ_FONT_NAME) == 0)
-                                                                       ||
-                                                                       (strcmp
-                                                                        ((char *)szfamily,
-                                                                         VP_FONT_ROSEMARY_FONT_NAME) == 0)) {
+                                                               ((char *)szfamily,
+                                                                VP_FONT_UDRGOTHIC_FONT_NAME) == 0)
+                                                               ||
+                                                               (strcmp
+                                                                ((char *)szfamily,
+                                                                 VP_FONT_UDMINCHO_FONT_NAME) == 0)
+                                                               ||
+                                                               (strcmp
+                                                                ((char *)szfamily,
+                                                                 VP_FONT_POP_FONT_NAME) == 0)
+                                                               ||
+                                                               (strcmp
+                                                                ((char *)szfamily,
+                                                                 VP_FONT_CHOCOCOOKY_FONT_NAME) == 0)
+                                                               ||
+                                                               (strcmp
+                                                                ((char *)szfamily,
+                                                                 VP_FONT_COOLJAZZ_FONT_NAME) == 0)
+                                                               ||
+                                                               (strcmp
+                                                                ((char *)szfamily,
+                                                                 VP_FONT_ROSEMARY_FONT_NAME) == 0)) {
                                                                char *szFontName = NULL;
                                                                VP_STRDUP(szFontName, (char *)szfamily);
                                                                if (szFontName) {
                                                                        pSubtitleFont->pFontList =
-                                                                               g_list_append(pSubtitleFont->
-                                                                                             pFontList, szFontName);
+                                                                           g_list_append(pSubtitleFont->
+                                                                                         pFontList, szFontName);
                                                                        if (strcmp
-                                                                                       (pSubtitleFont->szCurrentFont,
-                                                                                        szFontName) == 0) {
+                                                                               (pSubtitleFont->szCurrentFont,
+                                                                                szFontName) == 0) {
                                                                                pSubtitleFont->nCurrentFontIdx =
-                                                                                       g_list_length(pSubtitleFont->
-                                                                                                     pFontList);
+                                                                                   g_list_length(pSubtitleFont->
+                                                                                                 pFontList);
                                                                        }
                                                                }
                                                                VideoLogError("==> [%d] : %s ", j,
-                                                                             szfamily);
+                                                                             szfamily);
                                                        }
                                                }
                                        }
@@ -566,8 +562,8 @@ static bool __vp_subtitle_font_load_font_list(SubtitleFontPopup *
 
 /* external functions */
 subtitle_font_handle vp_subtitle_font_create(Evas_Object *pParent,
-               SubtitleFontCbFunc pCloseCb,
-               char *szCurrentFont)
+                        SubtitleFontCbFunc pCloseCb,
+                        char *szCurrentFont)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -594,11 +590,11 @@ subtitle_font_handle vp_subtitle_font_create(Evas_Object *pParent,
        pSubtitleFont->nCurrentFontIdx = 0;
 
        pSubtitleFont->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_SUBTITLE_FONT, NULL, 0.0, NULL,
-                               __vp_subtitle_font_popup_key_event_cb,
-                               __vp_subtitle_font_popup_mouse_event_cb,
-                               (void *) pSubtitleFont);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_SUBTITLE_FONT, NULL, 0.0, NULL,
+                           __vp_subtitle_font_popup_key_event_cb,
+                           __vp_subtitle_font_popup_mouse_event_cb,
+                           (void *) pSubtitleFont);
        if (pSubtitleFont->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
                _vp_subtitle_font_destroy_handle(pSubtitleFont);
@@ -606,18 +602,18 @@ subtitle_font_handle vp_subtitle_font_create(Evas_Object *pParent,
        }
 
        pSubtitleFont->pGenList =
-               _vp_subtitle_font_create_genlist(pSubtitleFont->pPopup);
+           _vp_subtitle_font_create_genlist(pSubtitleFont->pPopup);
        if (pSubtitleFont->pGenList == NULL) {
                VideoLogError("_vp_subtitle_font_create_genlist fail");
                _vp_subtitle_font_destroy_handle(pSubtitleFont);
                return NULL;
        }
        evas_object_data_set(pSubtitleFont->pGenList,
-                            VP_SUBTITLE_FONT_GENLIST_DATA_KEY,
-                            (void *) pSubtitleFont);
+                            VP_SUBTITLE_FONT_GENLIST_DATA_KEY,
+                            (void *) pSubtitleFont);
        evas_object_smart_callback_add(pSubtitleFont->pGenList, "realized",
-                                      __vp_subtitle_font_genlist_realized,
-                                      NULL);
+                                      __vp_subtitle_font_genlist_realized,
+                                      NULL);
 
        pSubtitleFont->pRadio = elm_radio_add(pSubtitleFont->pGenList);
 
@@ -626,21 +622,21 @@ subtitle_font_handle vp_subtitle_font_create(Evas_Object *pParent,
        elm_genlist_mode_set(pSubtitleFont->pGenList, ELM_LIST_COMPRESS);
 
        if (!_vp_subtitle_font_add_genlist_item
-                       (pSubtitleFont->pGenList, (void *) pSubtitleFont)) {
+               (pSubtitleFont->pGenList, (void *) pSubtitleFont)) {
                VideoLogError("_vp_subtitle_font_add_genlist_item fail");
                return FALSE;
        }
        //elm_radio_value_set(pSubtitleFont->pRadio, pSubtitleFont->nCurrentFontIdx);
        evas_object_smart_callback_add(pSubtitleFont->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_font_popup_rotate_cb,
-                                      pSubtitleFont);
+                                      "rotation,changed",
+                                      __vp_subtitle_font_popup_rotate_cb,
+                                      pSubtitleFont);
 
        pSubtitleFont->pBox = elm_box_add(pSubtitleFont->pPopup);
        vp_popup_set_popup_min_size(pSubtitleFont->pParent,
-                                   pSubtitleFont->pBox,
-                                   pSubtitleFont->nAppendCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleFont->pBox,
+                                   pSubtitleFont->nAppendCount,
+                                   VIDEO_POPUP_DEFAULT);
 
        elm_box_pack_end(pSubtitleFont->pBox, pSubtitleFont->pGenList);
        elm_object_content_set(pSubtitleFont->pPopup, pSubtitleFont->pBox);
@@ -656,7 +652,7 @@ void vp_subtitle_font_destroy(subtitle_font_handle pSubtitleFontHandle)
        }
 
        SubtitleFontPopup *pSubtitleFont =
-               (SubtitleFontPopup *) pSubtitleFontHandle;
+           (SubtitleFontPopup *) pSubtitleFontHandle;
 
        _vp_subtitle_font_destroy_handle(pSubtitleFont);
 
@@ -670,7 +666,7 @@ bool vp_subtitle_font_realize(subtitle_font_handle pSubtitleFontHandle)
        }
 
        SubtitleFontPopup *pSubtitleFont =
-               (SubtitleFontPopup *) pSubtitleFontHandle;
+           (SubtitleFontPopup *) pSubtitleFontHandle;
 
        evas_object_show(pSubtitleFont->pPopup);
 
@@ -685,7 +681,7 @@ bool vp_subtitle_font_unrealize(subtitle_font_handle pSubtitleFontHandle)
        }
 
        SubtitleFontPopup *pSubtitleFont =
-               (SubtitleFontPopup *) pSubtitleFontHandle;
+           (SubtitleFontPopup *) pSubtitleFontHandle;
 
        evas_object_hide(pSubtitleFont->pPopup);
 
@@ -693,7 +689,7 @@ bool vp_subtitle_font_unrealize(subtitle_font_handle pSubtitleFontHandle)
 }
 
 bool vp_subtitle_font_set_user_data(subtitle_font_handle
-                                   pSubtitleFontHandle, void *pUserData)
+                                    pSubtitleFontHandle, void *pUserData)
 {
        if (pSubtitleFontHandle == NULL) {
                VideoLogError("pSubtitleFontHandle is NULL");
@@ -701,7 +697,7 @@ bool vp_subtitle_font_set_user_data(subtitle_font_handle
        }
 
        SubtitleFontPopup *pSubtitleFont =
-               (SubtitleFontPopup *) pSubtitleFontHandle;
+           (SubtitleFontPopup *) pSubtitleFontHandle;
 
        pSubtitleFont->pUserData = pUserData;
 
index 96a2925..afbca2b 100644 (file)
@@ -48,7 +48,7 @@ typedef struct _SubtitleSelectPopup {
        SubtitleCloseCbFunc     pButtonCb;
        GList                   *pItemList;
        int                             nSubtitleIdx;
-}SubtitleSelectPopup;
+} SubtitleSelectPopup;
 
 
 
@@ -82,7 +82,7 @@ static char *__vp_subtitle_select_genlist_text_get_cb(const void *pUserData, Eva
                return NULL;
        }
 
-       const char *szTxt= (const char *)pUserData;
+       const char *szTxt = (const char *)pUserData;
 
        if (!strcmp(pPart, "elm.text.main.left")) {
                const char *szFileName = vp_file_get(szTxt);
@@ -124,16 +124,16 @@ static Evas_Object *__vp_subtitle_select_genlist_content_get_cb(const void *pUse
 
                        nCount = g_list_length(pSubtitleSelect->pItemList);
                        for (i = 0; i < nCount ; i++) {
-                       char *szName = NULL;
-                       szName = (char *)g_list_nth_data(pSubtitleSelect->pItemList, i);
+                               char *szName = NULL;
+                               szName = (char *)g_list_nth_data(pSubtitleSelect->pItemList, i);
 
-                       if (szName == NULL) {
-                               continue;
-                       }
-                       if (strcmp(szName, szTxt) == 0) {
-                               break;
-                       }
-                       nIndex++;
+                               if (szName == NULL) {
+                                       continue;
+                               }
+                               if (strcmp(szName, szTxt) == 0) {
+                                       break;
+                               }
+                               nIndex++;
                        }
 
                        /* get file name list */
@@ -150,7 +150,7 @@ static Evas_Object *__vp_subtitle_select_genlist_content_get_cb(const void *pUse
        return NULL;
 }
 
-static void __vp_subtitle_select_genlist_item_selected_cb(void *pUserData,Evas_Object *pObject,void *pEventInfo)
+static void __vp_subtitle_select_genlist_item_selected_cb(void *pUserData, Evas_Object *pObject, void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -291,8 +291,7 @@ static void _vp_subtitle_select_destroy_handle(SubtitleSelectPopup *pSubtitleSel
        }
 
        nCount = g_list_length(pSubtitleSelect->pItemList);
-       for (i = 0; i < nCount ; i++)
-       {
+       for (i = 0; i < nCount ; i++) {
                char *szName = NULL;
                szName = (char *)g_list_nth_data(pSubtitleSelect->pItemList, i);
                VP_FREE(szName);
@@ -338,7 +337,7 @@ static bool _vp_subtitle_select_add_genlist_item(Evas_Object *pObj, void *pUserD
        }
 
        pSubtitleSelect->st_SubtitleSelect_Itc = elm_genlist_item_class_new();
-       
+
        if (pSubtitleSelect->st_SubtitleSelect_Itc != NULL) {
                pSubtitleSelect->st_SubtitleSelect_Itc->version = ELM_GENLIST_ITEM_CLASS_VERSION;
                pSubtitleSelect->st_SubtitleSelect_Itc->item_style = "1line";
@@ -392,20 +391,21 @@ subtitle_select_handle vp_subtitle_select_create(Evas_Object *pParent, SubtitleC
        pSubtitleSelect->pCloseCb = pCloseCb;
        pSubtitleSelect->pButtonCb = pButtonCb;
        int nItemCount = 0;
-       if (pFileList)
+       if (pFileList) {
                nItemCount = g_list_length(pFileList);
-       if (nItemCount >0)
+       }
+       if (nItemCount > 0)
                pSubtitleSelect->pPopup = vp_two_button_popup_create(pParent, VP_PLAY_STRING_SUBTITLE_SELECT_SUBTITLES,
-                                       NULL, VP_PLAY_STRING_COM_CANCEL,
-                                       __vp_subtitle_select_popup_cancel_cb, VP_PLAY_STRING_SETTINGS,
-                                        __vp_subtitle_select_popup_settings_cb,
-                                       (void *)pSubtitleSelect);
+                                         NULL, VP_PLAY_STRING_COM_CANCEL,
+                                         __vp_subtitle_select_popup_cancel_cb, VP_PLAY_STRING_SETTINGS,
+                                         __vp_subtitle_select_popup_settings_cb,
+                                         (void *)pSubtitleSelect);
        else {
                pSubtitleSelect->pPopup = vp_two_button_popup_create(pParent, VP_PLAY_STRING_SUBTITLE_SELECT_SUBTITLES,
-                                       NULL, VP_PLAY_STRING_COM_CANCEL,
-                                       __vp_subtitle_select_popup_cancel_cb, VP_PLAY_STRING_SETTINGS,
-                                        NULL,
-                                       (void *)pSubtitleSelect);
+                                         NULL, VP_PLAY_STRING_COM_CANCEL,
+                                         __vp_subtitle_select_popup_cancel_cb, VP_PLAY_STRING_SETTINGS,
+                                         NULL,
+                                         (void *)pSubtitleSelect);
                Elm_Object_Item *it = NULL;
                it = (Evas_Object *)elm_object_part_content_get(pSubtitleSelect->pPopup, "button2");
                if (it) {
@@ -435,7 +435,7 @@ subtitle_select_handle vp_subtitle_select_create(Evas_Object *pParent, SubtitleC
        int nCount = 0;
 
        if (pFileList) {
-       for (i = 0; i < nItemCount; i++) {
+               for (i = 0; i < nItemCount; i++) {
                        char *szName = NULL;
                        char *szItem = NULL;
                        szName = (char *)g_list_nth_data(pFileList, i);
@@ -466,7 +466,7 @@ subtitle_select_handle vp_subtitle_select_create(Evas_Object *pParent, SubtitleC
                return FALSE;
        }
        if (isSubtitleOff || !bOn) {
-               pSubtitleSelect->nSubtitleIdx = (nCount-1);
+               pSubtitleSelect->nSubtitleIdx = (nCount - 1);
                elm_radio_value_set(pSubtitleSelect->pRadio, pSubtitleSelect->nSubtitleIdx);
        }
        evas_object_smart_callback_add(pSubtitleSelect->pParent, "rotation,changed", __vp_subtitle_select_popup_rotate_cb, pSubtitleSelect);
index 999ead1..c3455cc 100644 (file)
@@ -48,22 +48,21 @@ typedef struct _SubtitleSizePopup {
 
 
 static void _vp_subtitle_size_destroy_handle(SubtitleSizePopup *
-               pSubtitleSize);
+                        pSubtitleSize);
 static void __vp_subtitle_size_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo);
+                        Evas_Object *pObject,
+                        void *pEventInfo);
 
 static void __vp_subtitle_size_genlist_realized(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_subtitle_size_popup_rotate_cb(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        SubtitleSizePopup *pSubtitleSize = (SubtitleSizePopup *) data;
        if (!pSubtitleSize) {
@@ -74,16 +73,16 @@ static void __vp_subtitle_size_popup_rotate_cb(void *data,
                return;
        }
        vp_popup_set_popup_min_size(pSubtitleSize->pParent,
-                                   pSubtitleSize->pBox,
-                                   pSubtitleSize->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleSize->pBox,
+                                   pSubtitleSize->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
 
 }
 
 /* callback functions */
 static char *__vp_subtitle_size_genlist_text_get_cb(const void *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -105,7 +104,7 @@ static char *__vp_subtitle_size_genlist_text_get_cb(const void *pUserData,
                }
 
                snprintf(szTmp, VP_STRING_LEN_MAX - 1,
-                        "<font_size=%d>%s</font_size>", nSize, szTxt);
+                        "<font_size=%d>%s</font_size>", nSize, szTxt);
 
                return strdup(szTmp);
        }
@@ -114,11 +113,9 @@ static char *__vp_subtitle_size_genlist_text_get_cb(const void *pUserData,
 }
 
 static Evas_Object *__vp_subtitle_size_genlist_content_get_cb(const void
-               *pUserData,
-               Evas_Object
-               * pObj,
-               const char
-               *pPart)
+                        *pUserData,
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -131,8 +128,8 @@ static Evas_Object *__vp_subtitle_size_genlist_content_get_cb(const void
                Evas_Object *pRadioObj = NULL;
 
                SubtitleSizePopup *pSubtitleSize =
-                       (SubtitleSizePopup *) evas_object_data_get(pObj,
-                                       VP_SUBTITLE_SIZE_GENLIST_DATA_KEY);
+                   (SubtitleSizePopup *) evas_object_data_get(pObj,
+                           VP_SUBTITLE_SIZE_GENLIST_DATA_KEY);
                if (pSubtitleSize == NULL) {
                        VideoLogWarning("evas_object_data_get is fail");
                        return NULL;
@@ -150,10 +147,10 @@ static Evas_Object *__vp_subtitle_size_genlist_content_get_cb(const void
                elm_radio_state_value_set(pRadioObj, nSize);
                elm_radio_group_add(pRadioObj, pSubtitleSize->pRadio);
                elm_radio_value_set(pSubtitleSize->pRadio,
-                                   pSubtitleSize->currentSubtitleSize);
+                                   pSubtitleSize->currentSubtitleSize);
                evas_object_smart_callback_add(pRadioObj, "changed",
-                                              __vp_subtitle_size_genlist_item_selected_cb,
-                                              pSubtitleSize);
+                                              __vp_subtitle_size_genlist_item_selected_cb,
+                                              pSubtitleSize);
                evas_object_show(pRadioObj);
 
                return pRadioObj;
@@ -163,9 +160,8 @@ static Evas_Object *__vp_subtitle_size_genlist_content_get_cb(const void
 }
 
 static void __vp_subtitle_size_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo)
+                        Evas_Object *pObject,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -178,7 +174,7 @@ static void __vp_subtitle_size_genlist_item_selected_cb(void *pUserData,
 
        Elm_Object_Item *pItem = (Elm_Object_Item *) pEventInfo;
        Elm_Object_Item *pSelectedItem =
-               elm_genlist_selected_item_get(pObject);
+           elm_genlist_selected_item_get(pObject);
        if (pSelectedItem) {
                elm_genlist_item_selected_set(pSelectedItem, EINA_FALSE);
        }
@@ -202,13 +198,13 @@ static void __vp_subtitle_size_genlist_item_selected_cb(void *pUserData,
        pSubtitleSize->currentSubtitleSize = nSize;
        if (pSubtitleSize->pCloseCb) {
                pSubtitleSize->pCloseCb(nSize, FALSE,
-                                       (void *) pSubtitleSize->pUserData);
+                                       (void *) pSubtitleSize->pUserData);
        }
 }
 
 static void __vp_subtitle_size_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -219,14 +215,14 @@ static void __vp_subtitle_size_popup_key_event_cb(void *pUserData,
 
        if (pSubtitleSize->pCloseCb) {
                pSubtitleSize->pCloseCb(-1, FALSE,
-                                       (void *) pSubtitleSize->pUserData);
+                                       (void *) pSubtitleSize->pUserData);
        }
 }
 
 static void __vp_subtitle_size_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas *pEvas,
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -242,11 +238,11 @@ static void __vp_subtitle_size_popup_mouse_event_cb(void *pUserData,
 
        if (ev->button == 3) {
                SubtitleSizePopup *pSubtitleSize =
-                       (SubtitleSizePopup *) pUserData;
+                   (SubtitleSizePopup *) pUserData;
 
                if (pSubtitleSize->pCloseCb) {
                        pSubtitleSize->pCloseCb(-1, FALSE,
-                                               (void *) pSubtitleSize->pUserData);
+                                               (void *) pSubtitleSize->pUserData);
                }
        }
 }
@@ -255,7 +251,7 @@ static void __vp_subtitle_size_popup_mouse_event_cb(void *pUserData,
 
 /* internal functions */
 static void _vp_subtitle_size_destroy_handle(SubtitleSizePopup *
-               pSubtitleSize)
+        pSubtitleSize)
 {
        if (pSubtitleSize == NULL) {
                VideoLogError("pSubtitleSize is NULL");
@@ -263,10 +259,10 @@ static void _vp_subtitle_size_destroy_handle(SubtitleSizePopup *
        }
 
        evas_object_smart_callback_del(pSubtitleSize->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_size_popup_rotate_cb);
+                                      "rotation,changed",
+                                      __vp_subtitle_size_popup_rotate_cb);
        evas_object_smart_callback_del(pSubtitleSize->pGenList, "realized",
-                                      __vp_subtitle_size_genlist_realized);
+                                      __vp_subtitle_size_genlist_realized);
 
        VP_EVAS_DEL(pSubtitleSize->pRadio);
        VP_EVAS_DEL(pSubtitleSize->pGenList);
@@ -285,7 +281,7 @@ static void _vp_subtitle_size_destroy_handle(SubtitleSizePopup *
 
 
 static Evas_Object *_vp_subtitle_size_create_genlist(Evas_Object *
-               pParent)
+        pParent)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -296,7 +292,7 @@ static Evas_Object *_vp_subtitle_size_create_genlist(Evas_Object *
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -304,7 +300,7 @@ static Evas_Object *_vp_subtitle_size_create_genlist(Evas_Object *
 
 
 static bool _vp_subtitle_size_add_genlist_item(Evas_Object *pObj,
-               void *pUserData)
+        void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -322,34 +318,34 @@ static bool _vp_subtitle_size_add_genlist_item(Evas_Object *pObj,
 
        if (pSubtitleSize->st_SubtitleSize_Itc != NULL) {
                pSubtitleSize->st_SubtitleSize_Itc->version =
-                       ELM_GENLIST_ITEM_CLASS_VERSION;
+                   ELM_GENLIST_ITEM_CLASS_VERSION;
                pSubtitleSize->st_SubtitleSize_Itc->item_style = "1line";
                pSubtitleSize->st_SubtitleSize_Itc->func.text_get =
-                       (void *) __vp_subtitle_size_genlist_text_get_cb;
+                   (void *) __vp_subtitle_size_genlist_text_get_cb;
                pSubtitleSize->st_SubtitleSize_Itc->func.content_get =
-                       (void *) __vp_subtitle_size_genlist_content_get_cb;
+                   (void *) __vp_subtitle_size_genlist_content_get_cb;
                pSubtitleSize->st_SubtitleSize_Itc->func.state_get = NULL;
                pSubtitleSize->st_SubtitleSize_Itc->func.del = NULL;
                pSubtitleSize->nListCount = 0;
 
-               elm_genlist_item_append(pObj, 
-                               pSubtitleSize->st_SubtitleSize_Itc,
-                               (void *) VP_PLAY_STRING_SUBTITLE_SIZE_LARGE,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_size_genlist_item_selected_cb,
-                               pUserData);
+               elm_genlist_item_append(pObj,
+                                       pSubtitleSize->st_SubtitleSize_Itc,
+                                       (void *) VP_PLAY_STRING_SUBTITLE_SIZE_LARGE,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_size_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleSize->nListCount++;
                elm_genlist_item_append(pObj, pSubtitleSize->st_SubtitleSize_Itc,
-                               (void *) VP_PLAY_STRING_SUBTITLE_SIZE_MEDIUM,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_size_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_SUBTITLE_SIZE_MEDIUM,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_size_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleSize->nListCount++;
                elm_genlist_item_append(pObj, pSubtitleSize->st_SubtitleSize_Itc,
-                               (void *) VP_PLAY_STRING_SUBTITLE_SIZE_SMALL,
-                               NULL, ELM_GENLIST_ITEM_NONE,
-                               __vp_subtitle_size_genlist_item_selected_cb,
-                               pUserData);
+                                       (void *) VP_PLAY_STRING_SUBTITLE_SIZE_SMALL,
+                                       NULL, ELM_GENLIST_ITEM_NONE,
+                                       __vp_subtitle_size_genlist_item_selected_cb,
+                                       pUserData);
                pSubtitleSize->nListCount++;
        }
 
@@ -358,8 +354,8 @@ static bool _vp_subtitle_size_add_genlist_item(Evas_Object *pObj,
 
 /* external functions */
 subtitle_size_handle vp_subtitle_size_create(Evas_Object *pParent,
-               PopupCloseCbFunc pCloseCb,
-               int nDefaultSize)
+        PopupCloseCbFunc pCloseCb,
+        int nDefaultSize)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -379,11 +375,11 @@ subtitle_size_handle vp_subtitle_size_create(Evas_Object *pParent,
        pSubtitleSize->pCloseCb = pCloseCb;
 
        pSubtitleSize->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_SUBTITLE_SIZE, NULL, 0.0, NULL,
-                               __vp_subtitle_size_popup_key_event_cb,
-                               __vp_subtitle_size_popup_mouse_event_cb,
-                               (void *) pSubtitleSize);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_SUBTITLE_SIZE, NULL, 0.0, NULL,
+                           __vp_subtitle_size_popup_key_event_cb,
+                           __vp_subtitle_size_popup_mouse_event_cb,
+                           (void *) pSubtitleSize);
        if (pSubtitleSize->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
                _vp_subtitle_size_destroy_handle(pSubtitleSize);
@@ -391,38 +387,38 @@ subtitle_size_handle vp_subtitle_size_create(Evas_Object *pParent,
        }
 
        pSubtitleSize->pGenList =
-               _vp_subtitle_size_create_genlist(pSubtitleSize->pPopup);
+           _vp_subtitle_size_create_genlist(pSubtitleSize->pPopup);
        if (pSubtitleSize->pGenList == NULL) {
                VideoLogError("_vp_subtitle_size_create_genlist fail");
                _vp_subtitle_size_destroy_handle(pSubtitleSize);
                return NULL;
        }
        evas_object_data_set(pSubtitleSize->pGenList,
-                            VP_SUBTITLE_SIZE_GENLIST_DATA_KEY,
-                            (void *) pSubtitleSize);
+                            VP_SUBTITLE_SIZE_GENLIST_DATA_KEY,
+                            (void *) pSubtitleSize);
        evas_object_smart_callback_add(pSubtitleSize->pGenList, "realized",
-                                      __vp_subtitle_size_genlist_realized,
-                                      NULL);
+                                      __vp_subtitle_size_genlist_realized,
+                                      NULL);
 
        pSubtitleSize->pRadio = elm_radio_add(pSubtitleSize->pGenList);
 
        if (!_vp_subtitle_size_add_genlist_item
-                       (pSubtitleSize->pGenList, (void *) pSubtitleSize)) {
+               (pSubtitleSize->pGenList, (void *) pSubtitleSize)) {
                VideoLogError("_vp_subtitle_size_add_genlist_item fail");
                return FALSE;
        }
        //elm_radio_value_set(pSubtitleSize->pRadio, nDefaultSize);
        pSubtitleSize->currentSubtitleSize = nDefaultSize;
        evas_object_smart_callback_add(pSubtitleSize->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_size_popup_rotate_cb,
-                                      pSubtitleSize);
+                                      "rotation,changed",
+                                      __vp_subtitle_size_popup_rotate_cb,
+                                      pSubtitleSize);
 
        pSubtitleSize->pBox = elm_box_add(pSubtitleSize->pPopup);
        vp_popup_set_popup_min_size(pSubtitleSize->pParent,
-                                   pSubtitleSize->pBox,
-                                   pSubtitleSize->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleSize->pBox,
+                                   pSubtitleSize->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
        elm_box_pack_end(pSubtitleSize->pBox, pSubtitleSize->pGenList);
        elm_object_content_set(pSubtitleSize->pPopup, pSubtitleSize->pBox);
 
@@ -437,7 +433,7 @@ void vp_subtitle_size_destroy(subtitle_size_handle pSubtitleSizeHandle)
        }
 
        SubtitleSizePopup *pSubtitleSize =
-               (SubtitleSizePopup *) pSubtitleSizeHandle;
+           (SubtitleSizePopup *) pSubtitleSizeHandle;
 
        _vp_subtitle_size_destroy_handle(pSubtitleSize);
 
@@ -451,7 +447,7 @@ bool vp_subtitle_size_realize(subtitle_size_handle pSubtitleSizeHandle)
        }
 
        SubtitleSizePopup *pSubtitleSize =
-               (SubtitleSizePopup *) pSubtitleSizeHandle;
+           (SubtitleSizePopup *) pSubtitleSizeHandle;
 
        evas_object_show(pSubtitleSize->pPopup);
 
@@ -466,7 +462,7 @@ bool vp_subtitle_size_unrealize(subtitle_size_handle pSubtitleSizeHandle)
        }
 
        SubtitleSizePopup *pSubtitleSize =
-               (SubtitleSizePopup *) pSubtitleSizeHandle;
+           (SubtitleSizePopup *) pSubtitleSizeHandle;
 
        evas_object_hide(pSubtitleSize->pPopup);
 
@@ -474,7 +470,7 @@ bool vp_subtitle_size_unrealize(subtitle_size_handle pSubtitleSizeHandle)
 }
 
 bool vp_subtitle_size_set_user_data(subtitle_size_handle
-                                   pSubtitleSizeHandle, void *pUserData)
+                                    pSubtitleSizeHandle, void *pUserData)
 {
        if (pSubtitleSizeHandle == NULL) {
                VideoLogError("pSubtitleSizeHandle is NULL");
@@ -482,7 +478,7 @@ bool vp_subtitle_size_set_user_data(subtitle_size_handle
        }
 
        SubtitleSizePopup *pSubtitleSize =
-               (SubtitleSizePopup *) pSubtitleSizeHandle;
+           (SubtitleSizePopup *) pSubtitleSizeHandle;
 
        pSubtitleSize->pUserData = pUserData;
 
index 8561fbf..3a7bb02 100644 (file)
@@ -54,16 +54,16 @@ typedef struct _SubtitleSyncPopup {
 
 
 static void _vp_subtitle_sync_popup_destroy_handle(SubtitleSyncPopup *
-               pSubtitleSyncPopup);
+        pSubtitleSyncPopup);
 static void _vp_subtitle_sync_update_text(SubtitleSyncPopup *
-               pSubtitleSyncPopup);
+        pSubtitleSyncPopup);
 
 
 /* callback functions */
 
 static void __vp_subtitle_sync_popup_ok_btn_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+        Evas_Object *pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -71,18 +71,18 @@ static void __vp_subtitle_sync_popup_ok_btn_cb(void *pUserData,
        }
 
        SubtitleSyncPopup *pSubtitleSyncPopup =
-               (SubtitleSyncPopup *) pUserData;
+           (SubtitleSyncPopup *) pUserData;
 
        if (pSubtitleSyncPopup->pDoneCb) {
                pSubtitleSyncPopup->pDoneCb(pSubtitleSyncPopup->fSyncVal, TRUE,
-                                           (void *) pSubtitleSyncPopup->
-                                           pUserData);
+                                           (void *) pSubtitleSyncPopup->
+                                           pUserData);
        }
 }
 
 static void __vp_subtitle_sync_popup_cancel_btn_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -90,19 +90,19 @@ static void __vp_subtitle_sync_popup_cancel_btn_cb(void *pUserData,
        }
 
        SubtitleSyncPopup *pSubtitleSyncPopup =
-               (SubtitleSyncPopup *) pUserData;
+           (SubtitleSyncPopup *) pUserData;
 
        if (pSubtitleSyncPopup->pDoneCb) {
                pSubtitleSyncPopup->pDoneCb(pSubtitleSyncPopup->fSyncVal, FALSE,
-                                           (void *) pSubtitleSyncPopup->
-                                           pUserData);
+                                           (void *) pSubtitleSyncPopup->
+                                           pUserData);
        }
 }
 
 
 static void __vp_subtitle_sync_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -110,20 +110,20 @@ static void __vp_subtitle_sync_popup_key_event_cb(void *pUserData,
        }
 
        SubtitleSyncPopup *pSubtitleSyncPopup =
-               (SubtitleSyncPopup *) pUserData;
+           (SubtitleSyncPopup *) pUserData;
 
        if (pSubtitleSyncPopup->pDoneCb) {
                pSubtitleSyncPopup->pDoneCb(pSubtitleSyncPopup->fSyncVal, FALSE,
-                                           (void *) pSubtitleSyncPopup->
-                                           pUserData);
+                                           (void *) pSubtitleSyncPopup->
+                                           pUserData);
        }
 
 }
 
 static void __vp_subtitle_sync_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas *pEvas,
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -139,20 +139,20 @@ static void __vp_subtitle_sync_popup_mouse_event_cb(void *pUserData,
 
        if (ev->button == 3) {
                SubtitleSyncPopup *pSubtitleSyncPopup =
-                       (SubtitleSyncPopup *) pUserData;
+                   (SubtitleSyncPopup *) pUserData;
                if (pSubtitleSyncPopup->pDoneCb) {
                        pSubtitleSyncPopup->pDoneCb(pSubtitleSyncPopup->fSyncVal,
-                                                   FALSE,
-                                                   (void *) pSubtitleSyncPopup->
-                                                   pUserData);
+                                                   FALSE,
+                                                   (void *) pSubtitleSyncPopup->
+                                                   pUserData);
                }
 
        }
 }
 
 static void __vp_subtitle_sync_popup_slider_change_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -160,16 +160,16 @@ static void __vp_subtitle_sync_popup_slider_change_cb(void *pUserData,
        }
 
        SubtitleSyncPopup *pSubtitleSyncPopup =
-               (SubtitleSyncPopup *) pUserData;
+           (SubtitleSyncPopup *) pUserData;
 
        float fValue =
-               (float) elm_slider_value_get(pSubtitleSyncPopup->pSlider);
+           (float) elm_slider_value_get(pSubtitleSyncPopup->pSlider);
 
        if (fValue != pSubtitleSyncPopup->fSyncVal) {
                if (pSubtitleSyncPopup->pUpdateCb) {
                        pSubtitleSyncPopup->pUpdateCb(pSubtitleSyncPopup->fSyncVal,
-                                                     (void *) pSubtitleSyncPopup->
-                                                     pUserData);
+                                                     (void *) pSubtitleSyncPopup->
+                                                     pUserData);
                        pSubtitleSyncPopup->fSyncVal = fValue;
                        _vp_subtitle_sync_update_text(pSubtitleSyncPopup);
                }
@@ -177,8 +177,8 @@ static void __vp_subtitle_sync_popup_slider_change_cb(void *pUserData,
 }
 
 static void __vp_subtitle_sync_btn_clicked_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+                        Evas_Object *pObj,
+                        void *pEvent)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -186,10 +186,10 @@ static void __vp_subtitle_sync_btn_clicked_cb(void *pUserData,
        }
 
        SubtitleSyncPopup *pSubtitleSyncPopup =
-               (SubtitleSyncPopup *) pUserData;
+           (SubtitleSyncPopup *) pUserData;
 
        float fValue =
-               (float) elm_slider_value_get(pSubtitleSyncPopup->pSlider);
+           (float) elm_slider_value_get(pSubtitleSyncPopup->pSlider);
        VideoLogWarning("== %f ==", fValue);
 
        if (pObj == pSubtitleSyncPopup->pAddButton) {
@@ -197,13 +197,13 @@ static void __vp_subtitle_sync_btn_clicked_cb(void *pUserData,
                if (fValue <= VP_SUBTITLE_SYNC_MAX_VALUE) {
                        VideoLogWarning("== %f ==", fValue);
                        elm_slider_value_set(pSubtitleSyncPopup->pSlider,
-                                            (double) fValue);
+                                            (double) fValue);
                        if (pSubtitleSyncPopup->pUpdateCb) {
                                pSubtitleSyncPopup->pUpdateCb(pSubtitleSyncPopup->
-                                                             fSyncVal,
-                                                             (void *)
-                                                             pSubtitleSyncPopup->
-                                                             pUserData);
+                                                             fSyncVal,
+                                                             (void *)
+                                                             pSubtitleSyncPopup->
+                                                             pUserData);
                                pSubtitleSyncPopup->fSyncVal = fValue;
                                _vp_subtitle_sync_update_text(pSubtitleSyncPopup);
                        }
@@ -213,13 +213,13 @@ static void __vp_subtitle_sync_btn_clicked_cb(void *pUserData,
                if (fValue >= VP_SUBTITLE_SYNC_MIN_VALUE) {
                        VideoLogWarning("== %f ==", fValue);
                        elm_slider_value_set(pSubtitleSyncPopup->pSlider,
-                                            (double) fValue);
+                                            (double) fValue);
                        if (pSubtitleSyncPopup->pUpdateCb) {
                                pSubtitleSyncPopup->pUpdateCb(pSubtitleSyncPopup->
-                                                             fSyncVal,
-                                                             (void *)
-                                                             pSubtitleSyncPopup->
-                                                             pUserData);
+                                                             fSyncVal,
+                                                             (void *)
+                                                             pSubtitleSyncPopup->
+                                                             pUserData);
                                pSubtitleSyncPopup->fSyncVal = fValue;
                                _vp_subtitle_sync_update_text(pSubtitleSyncPopup);
                        }
@@ -231,7 +231,7 @@ static void __vp_subtitle_sync_btn_clicked_cb(void *pUserData,
 
 /* internal functions */
 static void _vp_subtitle_sync_popup_destroy_handle(SubtitleSyncPopup *
-               pSubtitleSyncPopup)
+        pSubtitleSyncPopup)
 {
        if (pSubtitleSyncPopup == NULL) {
                VideoLogError("pSubtitleSyncPopup is NULL");
@@ -252,7 +252,7 @@ static void _vp_subtitle_sync_popup_destroy_handle(SubtitleSyncPopup *
 }
 
 static void _vp_subtitle_sync_update_text(SubtitleSyncPopup *
-               pSubtitleSyncPopup)
+        pSubtitleSyncPopup)
 {
        if (pSubtitleSyncPopup == NULL) {
                VideoLogError("pSubtitleSyncPopup is NULL");
@@ -263,15 +263,14 @@ static void _vp_subtitle_sync_update_text(SubtitleSyncPopup *
 
        snprintf(szValue, 6, "%0.1f", (double) pSubtitleSyncPopup->fSyncVal);
        elm_object_part_text_set(pSubtitleSyncPopup->pLayout,
-                                "elm.text.title", szValue);
+                                "elm.text.title", szValue);
 
 }
 
 
 static Evas_Object *_vp_subtitle_sync_popup_create_ok_button(Evas_Object *
-               pParent,
-               void
-               *pUserData)
+        pParent,
+        void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -282,11 +281,11 @@ static Evas_Object *_vp_subtitle_sync_popup_create_ok_button(Evas_Object *
        pObj = elm_button_add(pParent);
        elm_object_style_set(pObj, "popup_button/default");
        elm_object_domain_translatable_text_set(pObj, VP_SYS_STR_PREFIX,
-                                               VP_PLAY_STRING_COM_OK_IDS);
+                                               VP_PLAY_STRING_COM_OK_IDS);
        elm_object_part_content_set(pParent, "button2", pObj);
        evas_object_smart_callback_add(pObj, "clicked",
-                                      __vp_subtitle_sync_popup_ok_btn_cb,
-                                      pUserData);
+                                      __vp_subtitle_sync_popup_ok_btn_cb,
+                                      pUserData);
        evas_object_show(pObj);
 
        return pObj;
@@ -295,7 +294,7 @@ static Evas_Object *_vp_subtitle_sync_popup_create_ok_button(Evas_Object *
 
 static Evas_Object
 *_vp_subtitle_sync_popup_create_cancel_button(Evas_Object *pParent,
-               void *pUserData)
+        void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -306,19 +305,19 @@ static Evas_Object
        pObj = elm_button_add(pParent);
        elm_object_style_set(pObj, "popup_button/default");
        elm_object_domain_translatable_text_set(pObj, VP_SYS_STR_PREFIX,
-                                               VP_PLAY_STRING_COM_CANCEL_IDS);
+                                               VP_PLAY_STRING_COM_CANCEL_IDS);
        elm_object_part_content_set(pParent, "button1", pObj);
        evas_object_smart_callback_add(pObj, "clicked",
-                                      __vp_subtitle_sync_popup_cancel_btn_cb,
-                                      pUserData);
+                                      __vp_subtitle_sync_popup_cancel_btn_cb,
+                                      pUserData);
        evas_object_show(pObj);
 
        return pObj;
 }
 
 static Evas_Object *_vp_subtitle_sync_popup_create_slider(Evas_Object *
-               pParent,
-               void *pUserData)
+        pParent,
+        void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -329,20 +328,20 @@ static Evas_Object *_vp_subtitle_sync_popup_create_slider(Evas_Object *
        pObj = elm_slider_add(pParent);
        elm_slider_indicator_show_set(pObj, EINA_FALSE);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
 
        elm_slider_min_max_set(pObj, VP_SUBTITLE_SYNC_MIN_VALUE,
-                              VP_SUBTITLE_SYNC_MAX_VALUE);
+                              VP_SUBTITLE_SYNC_MAX_VALUE);
        evas_object_smart_callback_add(pObj, "changed",
-                                      __vp_subtitle_sync_popup_slider_change_cb,
-                                      pUserData);
+                                      __vp_subtitle_sync_popup_slider_change_cb,
+                                      pUserData);
 
        return pObj;
 }
 
 static bool _vp_subtitle_sync_popup_create_button(Evas_Object *pParent,
-               void *pUserData)
+        void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -350,80 +349,80 @@ static bool _vp_subtitle_sync_popup_create_button(Evas_Object *pParent,
        }
 
        SubtitleSyncPopup *pSubtitleSyncPopup =
-               (SubtitleSyncPopup *) pUserData;
+           (SubtitleSyncPopup *) pUserData;
 
        pSubtitleSyncPopup->pDelButton =
-               vp_button_create(pParent, "playview/custom/flat_63_78/default",
-                                NULL,
-                                (Evas_Smart_Cb)
-                                __vp_subtitle_sync_btn_clicked_cb,
-                                (Evas_Smart_Cb) NULL, (Evas_Smart_Cb) NULL,
-                                (void *) pSubtitleSyncPopup);
+           vp_button_create(pParent, "playview/custom/flat_63_78/default",
+                            NULL,
+                            (Evas_Smart_Cb)
+                            __vp_subtitle_sync_btn_clicked_cb,
+                            (Evas_Smart_Cb) NULL, (Evas_Smart_Cb) NULL,
+                            (void *) pSubtitleSyncPopup);
 
 
 
        pSubtitleSyncPopup->pAddButton =
-               vp_button_create(pParent, "playview/custom/flat_63_78/default",
-                                NULL,
-                                (Evas_Smart_Cb)
-                                __vp_subtitle_sync_btn_clicked_cb,
-                                (Evas_Smart_Cb) NULL, (Evas_Smart_Cb) NULL,
-                                (void *) pSubtitleSyncPopup);
+           vp_button_create(pParent, "playview/custom/flat_63_78/default",
+                            NULL,
+                            (Evas_Smart_Cb)
+                            __vp_subtitle_sync_btn_clicked_cb,
+                            (Evas_Smart_Cb) NULL, (Evas_Smart_Cb) NULL,
+                            (void *) pSubtitleSyncPopup);
 
        Evas_Object *pIcon = NULL;
 
        pIcon =
-               vp_button_create_icon(pSubtitleSyncPopup->pDelButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_DEL);
+           vp_button_create_icon(pSubtitleSyncPopup->pDelButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_DEL);
        elm_object_part_content_set(pSubtitleSyncPopup->pDelButton,
-                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pSubtitleSyncPopup->pDelButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_DEL_PRESS);
+           vp_button_create_icon(pSubtitleSyncPopup->pDelButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_DEL_PRESS);
        elm_object_part_content_set(pSubtitleSyncPopup->pDelButton,
-                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pSubtitleSyncPopup->pDelButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_DEL);
+           vp_button_create_icon(pSubtitleSyncPopup->pDelButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_DEL);
        elm_object_part_content_set(pSubtitleSyncPopup->pDelButton,
-                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pSubtitleSyncPopup->pAddButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_ADD);
+           vp_button_create_icon(pSubtitleSyncPopup->pAddButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_ADD);
        elm_object_part_content_set(pSubtitleSyncPopup->pAddButton,
-                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pSubtitleSyncPopup->pAddButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_ADD_PRESS);
+           vp_button_create_icon(pSubtitleSyncPopup->pAddButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_ADD_PRESS);
        elm_object_part_content_set(pSubtitleSyncPopup->pAddButton,
-                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pSubtitleSyncPopup->pAddButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_RES_BUTTON_ADD);
+           vp_button_create_icon(pSubtitleSyncPopup->pAddButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_RES_BUTTON_ADD);
        elm_object_part_content_set(pSubtitleSyncPopup->pAddButton,
-                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
 
        elm_object_part_content_set(pParent, "elm.swallow.icon.1",
-                                   pSubtitleSyncPopup->pDelButton);
+                                   pSubtitleSyncPopup->pDelButton);
        elm_object_part_content_set(pParent, "elm.swallow.icon.2",
-                                   pSubtitleSyncPopup->pAddButton);
+                                   pSubtitleSyncPopup->pAddButton);
 
        return TRUE;
 }
 
 static Evas_Object *_vp_subtitle_sync_popup_create_layout(Evas_Object *
-               pParent)
+        pParent)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -437,12 +436,12 @@ static Evas_Object *_vp_subtitle_sync_popup_create_layout(Evas_Object *
        }
 
        elm_layout_file_set(pLayout, VP_PLAY_SPEED_POPUP_EDJ,
-                           VP_PLAY_EDJ_GROUP_PLAY_SPEED_POPUP);
+                           VP_PLAY_EDJ_GROUP_PLAY_SPEED_POPUP);
 
        evas_object_size_hint_weight_set(pLayout, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pLayout, EVAS_HINT_FILL,
-                                       EVAS_HINT_FILL);
+                                       EVAS_HINT_FILL);
 
        evas_object_show(pLayout);
 
@@ -454,11 +453,11 @@ static Evas_Object *_vp_subtitle_sync_popup_create_layout(Evas_Object *
 
 /* external functions */
 subtitle_sync_popup vp_subtitle_sync_popup_create(Evas_Object *pParent,
-               float fSyncVal,
-               SubtitleSyncUpdateCbFunc
-               pUpdateCb,
-               SubtitleSyncDoneCbFunc
-               pDoneCb)
+        float fSyncVal,
+        SubtitleSyncUpdateCbFunc
+        pUpdateCb,
+        SubtitleSyncDoneCbFunc
+        pDoneCb)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -480,11 +479,11 @@ subtitle_sync_popup vp_subtitle_sync_popup_create(Evas_Object *pParent,
        pSubtitleSyncPopup->fSyncVal = fSyncVal;
 
        pSubtitleSyncPopup->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_EXPAND_WITH_CANCEL_BTN,
-                               VP_PLAY_STRING_SUBTITLE_SYNC, NULL, 0.0, NULL,
-                               __vp_subtitle_sync_popup_key_event_cb,
-                               __vp_subtitle_sync_popup_mouse_event_cb,
-                               (void *) pSubtitleSyncPopup);
+           vp_popup_create(pParent, POPUP_STYLE_EXPAND_WITH_CANCEL_BTN,
+                           VP_PLAY_STRING_SUBTITLE_SYNC, NULL, 0.0, NULL,
+                           __vp_subtitle_sync_popup_key_event_cb,
+                           __vp_subtitle_sync_popup_mouse_event_cb,
+                           (void *) pSubtitleSyncPopup);
 
        if (pSubtitleSyncPopup->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
@@ -493,10 +492,10 @@ subtitle_sync_popup vp_subtitle_sync_popup_create(Evas_Object *pParent,
        }
 
        pSubtitleSyncPopup->pCancelButton =
-               _vp_subtitle_sync_popup_create_cancel_button(pSubtitleSyncPopup->
-                               pPopup,
-                               (void *)
-                               pSubtitleSyncPopup);
+           _vp_subtitle_sync_popup_create_cancel_button(pSubtitleSyncPopup->
+                   pPopup,
+                   (void *)
+                   pSubtitleSyncPopup);
        if (pSubtitleSyncPopup->pCancelButton == NULL) {
                VideoLogError
                ("_vp_subtitle_sync_popup_create_cancel_button fail");
@@ -505,10 +504,10 @@ subtitle_sync_popup vp_subtitle_sync_popup_create(Evas_Object *pParent,
        }
 
        pSubtitleSyncPopup->pOkButton =
-               _vp_subtitle_sync_popup_create_ok_button(pSubtitleSyncPopup->
-                               pPopup,
-                               (void *)
-                               pSubtitleSyncPopup);
+           _vp_subtitle_sync_popup_create_ok_button(pSubtitleSyncPopup->
+                   pPopup,
+                   (void *)
+                   pSubtitleSyncPopup);
        if (pSubtitleSyncPopup->pOkButton == NULL) {
                VideoLogError("_vp_subtitle_sync_popup_create_ok_button fail");
                _vp_subtitle_sync_popup_destroy_handle(pSubtitleSyncPopup);
@@ -516,7 +515,7 @@ subtitle_sync_popup vp_subtitle_sync_popup_create(Evas_Object *pParent,
        }
 
        pSubtitleSyncPopup->pLayout =
-               _vp_subtitle_sync_popup_create_layout(pSubtitleSyncPopup->pPopup);
+           _vp_subtitle_sync_popup_create_layout(pSubtitleSyncPopup->pPopup);
        if (pSubtitleSyncPopup->pLayout == NULL) {
                VideoLogError("_vp_subtitle_sync_popup_create_layout fail");
                _vp_subtitle_sync_popup_destroy_handle(pSubtitleSyncPopup);
@@ -524,8 +523,8 @@ subtitle_sync_popup vp_subtitle_sync_popup_create(Evas_Object *pParent,
        }
 
        pSubtitleSyncPopup->pSlider =
-               _vp_subtitle_sync_popup_create_slider(pSubtitleSyncPopup->pLayout,
-                               pSubtitleSyncPopup);
+           _vp_subtitle_sync_popup_create_slider(pSubtitleSyncPopup->pLayout,
+                   pSubtitleSyncPopup);
        if (pSubtitleSyncPopup->pSlider == NULL) {
                VideoLogError("_vp_subtitle_sync_popup_create_slider fail");
                _vp_subtitle_sync_popup_destroy_handle(pSubtitleSyncPopup);
@@ -533,21 +532,21 @@ subtitle_sync_popup vp_subtitle_sync_popup_create(Evas_Object *pParent,
        }
 
        _vp_subtitle_sync_popup_create_button(pSubtitleSyncPopup->pLayout,
-                                             pSubtitleSyncPopup);
+                                             pSubtitleSyncPopup);
 
        elm_slider_value_set(pSubtitleSyncPopup->pSlider,
-                            (double) pSubtitleSyncPopup->fSyncVal);
+                            (double) pSubtitleSyncPopup->fSyncVal);
        _vp_subtitle_sync_update_text(pSubtitleSyncPopup);
 
        elm_object_part_content_set(pSubtitleSyncPopup->pLayout,
-                                   "elm.swallow.content",
-                                   pSubtitleSyncPopup->pSlider);
+                                   "elm.swallow.content",
+                                   pSubtitleSyncPopup->pSlider);
        elm_object_content_set(pSubtitleSyncPopup->pPopup,
-                              pSubtitleSyncPopup->pLayout);
+                              pSubtitleSyncPopup->pLayout);
        evas_object_show(pSubtitleSyncPopup->pLayout);
 
        elm_popup_orient_set(pSubtitleSyncPopup->pPopup,
-                            ELM_POPUP_ORIENT_CENTER);
+                            ELM_POPUP_ORIENT_CENTER);
 
        return pSubtitleSyncPopup;
 }
@@ -560,7 +559,7 @@ void vp_subtitle_sync_popup_destroy(subtitle_sync_popup pSubtitleSync)
        }
 
        SubtitleSyncPopup *pSubtitleSyncPopup =
-               (SubtitleSyncPopup *) pSubtitleSync;
+           (SubtitleSyncPopup *) pSubtitleSync;
 
        _vp_subtitle_sync_popup_destroy_handle(pSubtitleSyncPopup);
 
@@ -574,7 +573,7 @@ bool vp_subtitle_sync_popup_realize(subtitle_sync_popup pSubtitleSync)
        }
 
        SubtitleSyncPopup *pSubtitleSyncPopup =
-               (SubtitleSyncPopup *) pSubtitleSync;
+           (SubtitleSyncPopup *) pSubtitleSync;
 
        evas_object_show(pSubtitleSyncPopup->pPopup);
 
@@ -590,7 +589,7 @@ bool vp_subtitle_sync_popup_unrealize(subtitle_sync_popup pSubtitleSync)
        }
 
        SubtitleSyncPopup *pSubtitleSyncPopup =
-               (SubtitleSyncPopup *) pSubtitleSync;
+           (SubtitleSyncPopup *) pSubtitleSync;
 
        evas_object_hide(pSubtitleSyncPopup->pPopup);
 
@@ -600,7 +599,7 @@ bool vp_subtitle_sync_popup_unrealize(subtitle_sync_popup pSubtitleSync)
 
 
 bool vp_subtitle_sync_popup_set_user_data(subtitle_sync_popup
-               pSubtitleSync, void *pUserData)
+        pSubtitleSync, void *pUserData)
 {
        if (pSubtitleSync == NULL) {
                VideoLogError("pSubtitleSync is NULL");
@@ -608,7 +607,7 @@ bool vp_subtitle_sync_popup_set_user_data(subtitle_sync_popup
        }
 
        SubtitleSyncPopup *pSubtitleSyncPopup =
-               (SubtitleSyncPopup *) pSubtitleSync;
+           (SubtitleSyncPopup *) pSubtitleSync;
 
        pSubtitleSyncPopup->pUserData = pUserData;
 
index f15e79d..ab5e219 100644 (file)
@@ -68,31 +68,31 @@ typedef struct _SubtitleTrackPopup {
 
 
 static void _vp_subtitle_track_destroy_handle(SubtitleTrackPopup *
-               pSubtitleTrack);
+        pSubtitleTrack);
 #ifdef _SUBTITLE_MULTI_LANGUAGE
 static void __vp_subtitle_track_popup_check_state_change_cb(void
-               *pUserData,
-               Evas_Object *
-               pObject,
-               void
-               *pEventInfo);
+        *pUserData,
+        Evas_Object *
+        pObject,
+        void
+        *pEventInfo);
 #else
 static void __vp_subtitle_track_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void
-               *pEventInfo);
+        Evas_Object *
+        pObject,
+        void
+        *pEventInfo);
 #endif
 static void __vp_subtitle_track_genlist_realized(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        VP_GENLIST_HIDE_BOTTOMLINE(data, obj, event_info);
 }
 
 static void __vp_subtitle_track_popup_rotate_cb(void *data,
-               Evas_Object *obj,
-               void *event_info)
+                        Evas_Object *obj,
+                        void *event_info)
 {
        SubtitleTrackPopup *pSubtitleTrack = (SubtitleTrackPopup *) data;
        if (!pSubtitleTrack) {
@@ -103,17 +103,17 @@ static void __vp_subtitle_track_popup_rotate_cb(void *data,
                return;
        }
        vp_popup_set_popup_min_size(pSubtitleTrack->pParent,
-                                   pSubtitleTrack->pBox,
-                                   pSubtitleTrack->nListCount,
-                                   VIDEO_POPUP_DEFAULT);
+                                   pSubtitleTrack->pBox,
+                                   pSubtitleTrack->nListCount,
+                                   VIDEO_POPUP_DEFAULT);
 
 }
 
 /* callback functions */
 static char *__vp_subtitle_track_genlist_text_get_cb(const void
-               *pUserData,
-               Evas_Object *pObj,
-               const char *pPart)
+        *pUserData,
+        Evas_Object *pObj,
+        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("Invalid user data");
@@ -129,11 +129,9 @@ static char *__vp_subtitle_track_genlist_text_get_cb(const void
 }
 
 static Evas_Object *__vp_subtitle_track_genlist_content_get_cb(const void
-               *pUserData,
-               Evas_Object
-               * pObj,
-               const char
-               *pPart)
+                        *pUserData,
+                        Evas_Object *pObj,
+                        const char *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("Invalid user data");
@@ -144,7 +142,7 @@ static Evas_Object *__vp_subtitle_track_genlist_content_get_cb(const void
 
        if (!strcmp(pPart, "elm.icon")) {
                SubtitleTrackPopup *pSubtitleTrack =
-                       (SubtitleTrackPopup *) pTrackItem->pSubtitleTrackPopup;
+                   (SubtitleTrackPopup *) pTrackItem->pSubtitleTrackPopup;
                if (pSubtitleTrack == NULL) {
                        VideoLogWarning("evas_object_data_get is fail");
                        return NULL;
@@ -153,8 +151,8 @@ static Evas_Object *__vp_subtitle_track_genlist_content_get_cb(const void
                Evas_Object *pCheckBox = elm_check_add(pObj);
                evas_object_propagate_events_set(pCheckBox, EINA_FALSE);
                evas_object_smart_callback_add(pCheckBox, "changed",
-                                              __vp_subtitle_track_popup_check_state_change_cb,
-                                              pUserData);
+                                              __vp_subtitle_track_popup_check_state_change_cb,
+                                              pUserData);
                elm_check_state_set(pCheckBox, pTrackItem->bCheck);
                evas_object_show(pCheckBox);
 
@@ -165,10 +163,10 @@ static Evas_Object *__vp_subtitle_track_genlist_content_get_cb(const void
                elm_radio_state_value_set(pRadioObj, pTrackItem->nIndex);
                elm_radio_group_add(pRadioObj, pSubtitleTrack->pRadio);
                elm_radio_value_set(pSubtitleTrack->pRadio,
-                                   pSubtitleTrack->nCurrentIndex);
+                                   pSubtitleTrack->nCurrentIndex);
                evas_object_smart_callback_add(pRadioObj, "changed",
-                                              __vp_subtitle_track_genlist_item_selected_cb,
-                                              pTrackItem);
+                                              __vp_subtitle_track_genlist_item_selected_cb,
+                                              pTrackItem);
                evas_object_show(pRadioObj);
 
                return pRadioObj;
@@ -180,7 +178,7 @@ static Evas_Object *__vp_subtitle_track_genlist_content_get_cb(const void
 
 #ifdef _SUBTITLE_MULTI_LANGUAGE
 static bool __vp_subtitle_track_select_no_item(SubtitleTrackPopup *
-               pSubtitleTrackPopup)
+        pSubtitleTrackPopup)
 {
        if (pSubtitleTrackPopup == NULL) {
                VideoLogError("pSubtitleTrackPopup is NULL");
@@ -197,8 +195,8 @@ static bool __vp_subtitle_track_select_no_item(SubtitleTrackPopup *
        for (; index < g_list_length(pSubtitleTrackPopup->pItemList); ++index) {
                SubtitleTrackItem *pItem = NULL;
                pItem =
-                       (SubtitleTrackItem *) g_list_nth_data(pSubtitleTrackPopup->
-                                       pItemList, index);
+                   (SubtitleTrackItem *) g_list_nth_data(pSubtitleTrackPopup->
+                           pItemList, index);
                if (pItem && pItem->bCheck) {
                        ret = false;
                        break;
@@ -209,8 +207,8 @@ static bool __vp_subtitle_track_select_no_item(SubtitleTrackPopup *
 }
 
 static void __vp_subtitle_track_popup_disable_button(SubtitleTrackPopup *
-               pSubtitleTrackPopup,
-               bool bDisabled)
+                        pSubtitleTrackPopup,
+                        bool bDisabled)
 {
        if (pSubtitleTrackPopup == NULL) {
                VideoLogError("pSubtitleTrackPopup is NULL");
@@ -223,17 +221,17 @@ static void __vp_subtitle_track_popup_disable_button(SubtitleTrackPopup *
        }
 
        Evas_Object *pRightButton =
-               elm_object_part_content_get(pSubtitleTrackPopup->pPopup,
-                                           "button2");
+           elm_object_part_content_get(pSubtitleTrackPopup->pPopup,
+                                       "button2");
        if (pRightButton
-                       && bDisabled != elm_object_disabled_get(pRightButton))
+               && bDisabled != elm_object_disabled_get(pRightButton)) {
                elm_object_disabled_set(pRightButton, bDisabled);
+       }
 }
 #endif
 static void __vp_subtitle_track_genlist_item_selected_cb(void *pUserData,
-               Evas_Object *
-               pObject,
-               void *pEventInfo)
+                        Evas_Object *pObject,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -242,58 +240,56 @@ static void __vp_subtitle_track_genlist_item_selected_cb(void *pUserData,
 
        SubtitleTrackItem *pTrackItem = (SubtitleTrackItem *) pUserData;
        Elm_Object_Item *pSelectedItem =
-               elm_genlist_selected_item_get(pObject);
+           elm_genlist_selected_item_get(pObject);
        if (pSelectedItem) {
                elm_genlist_item_selected_set(pSelectedItem, EINA_FALSE);
        }
        SubtitleTrackPopup *pSubtitleTrackPopup =
-               (SubtitleTrackPopup *) pTrackItem->pSubtitleTrackPopup;
+           (SubtitleTrackPopup *) pTrackItem->pSubtitleTrackPopup;
        if (pSubtitleTrackPopup == NULL) {
                VideoLogError("SubtitleTrackPopup is NULL");
                return;
        }
 #ifdef _SUBTITLE_MULTI_LANGUAGE
        Evas_Object *pCheckBox =
-               elm_object_item_part_content_get(pSelectedItem, "elm.icon");
+           elm_object_item_part_content_get(pSelectedItem, "elm.icon");
        if (pCheckBox) {
                pTrackItem->bCheck = !pTrackItem->bCheck;
                elm_check_state_set(pCheckBox, pTrackItem->bCheck);
                VideoLogInfo("bCheck: %d, nIndex: %d", pTrackItem->bCheck,
-                            pTrackItem->nIndex);
+                            pTrackItem->nIndex);
                if (__vp_subtitle_track_select_no_item(pSubtitleTrackPopup)) {
                        vp_play_util_status_noti_show
                        (VP_PLAY_STRING_SELECTED_LANGUAGE);
                        __vp_subtitle_track_popup_disable_button(pSubtitleTrackPopup,
-                                       true);
+                               true);
                } else {
                        __vp_subtitle_track_popup_disable_button(pSubtitleTrackPopup,
-                                       false);
+                               false);
                }
        }
 #else
        if (pTrackItem->nIndex == pSubtitleTrackPopup->nCurrentIndex) {
                if (pSubtitleTrackPopup->pCloseCb) {
                        VideoLogInfo("Selected lang track indexp[%d]",
-                                    pTrackItem->nIndex);
+                                    pTrackItem->nIndex);
                        pSubtitleTrackPopup->pCloseCb(pTrackItem->nIndex, FALSE,
-                                                     (void *) pSubtitleTrackPopup->
-                                                     pUserData);
+                                                     (void *) pSubtitleTrackPopup->
+                                                     pUserData);
                }
        } else {
                pSubtitleTrackPopup->nCurrentIndex = pTrackItem->nIndex;
                elm_radio_value_set(pSubtitleTrackPopup->pRadio,
-                                   pSubtitleTrackPopup->nCurrentIndex);
+                                   pSubtitleTrackPopup->nCurrentIndex);
        }
 #endif
 }
 
 #ifdef _SUBTITLE_MULTI_LANGUAGE
 static void __vp_subtitle_track_popup_check_state_change_cb(void
-               *pUserData,
-               Evas_Object *
-               pObject,
-               void
-               *pEventInfo)
+                        *pUserData,
+                        Evas_Object *pObject,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -302,28 +298,28 @@ static void __vp_subtitle_track_popup_check_state_change_cb(void
 
        SubtitleTrackItem *pTrackItem = (SubtitleTrackItem *) pUserData;
        SubtitleTrackPopup *pSubtitleTrackPopup =
-               (SubtitleTrackPopup *) pTrackItem->pSubtitleTrackPopup;
+           (SubtitleTrackPopup *) pTrackItem->pSubtitleTrackPopup;
        if (pSubtitleTrackPopup == NULL) {
                VideoLogError("SubtitleTrackPopup is NULL");
                return;
        }
        pTrackItem->bCheck = elm_check_state_get(pObject);
        VideoLogInfo("bCheck: %d, nIndex: %d", pTrackItem->bCheck,
-                    pTrackItem->nIndex);
+                    pTrackItem->nIndex);
 
        if (__vp_subtitle_track_select_no_item(pSubtitleTrackPopup)) {
                vp_play_util_status_noti_show(VP_PLAY_STRING_SELECTED_LANGUAGE);
                __vp_subtitle_track_popup_disable_button(pSubtitleTrackPopup,
-                               true);
+                       true);
        } else {
                __vp_subtitle_track_popup_disable_button(pSubtitleTrackPopup,
-                               false);
+                       false);
        }
 }
 #endif
 static void __vp_subtitle_track_popup_key_event_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -334,15 +330,15 @@ static void __vp_subtitle_track_popup_key_event_cb(void *pUserData,
 
        if (pSubtitleTrack->pCloseCb) {
                pSubtitleTrack->pCloseCb(-1, FALSE,
-                                        (void *) pSubtitleTrack->pUserData);
+                                        (void *) pSubtitleTrack->pUserData);
        }
 }
 
 #ifndef _SUBTITLE_MULTI_LANGUAGE
 static void __vp_subtitle_track_popup_mouse_event_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas *pEvas,
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -358,18 +354,18 @@ static void __vp_subtitle_track_popup_mouse_event_cb(void *pUserData,
 
        if (ev->button == 3) {
                SubtitleTrackPopup *pSubtitleTrack =
-                       (SubtitleTrackPopup *) pUserData;
+                   (SubtitleTrackPopup *) pUserData;
 
                if (pSubtitleTrack->pCloseCb) {
                        pSubtitleTrack->pCloseCb(-1, FALSE,
-                                                (void *) pSubtitleTrack->pUserData);
+                                                (void *) pSubtitleTrack->pUserData);
                }
        }
 }
 #endif
 /* internal functions */
 static void _vp_subtitle_track_clear_item_list(SubtitleTrackPopup *
-               pSubtitleTrack)
+        pSubtitleTrack)
 {
        if (pSubtitleTrack == NULL) {
                VideoLogError("pSubtitleTrack is NULL");
@@ -388,8 +384,8 @@ static void _vp_subtitle_track_clear_item_list(SubtitleTrackPopup *
                SubtitleTrackItem *pItem = NULL;
 
                pItem =
-                       (SubtitleTrackItem *) g_list_nth_data(pSubtitleTrack->
-                                       pItemList, idx);
+                   (SubtitleTrackItem *) g_list_nth_data(pSubtitleTrack->
+                           pItemList, idx);
                if (pItem) {
                        VP_EVAS_ITEM_DEL(pItem->pItem);
                        VP_FREE(pItem->szName);
@@ -404,7 +400,7 @@ static void _vp_subtitle_track_clear_item_list(SubtitleTrackPopup *
 }
 
 static void _vp_subtitle_track_destroy_handle(SubtitleTrackPopup *
-               pSubtitleTrack)
+        pSubtitleTrack)
 {
        if (pSubtitleTrack == NULL) {
                VideoLogError("pSubtitleTrack is NULL");
@@ -412,10 +408,10 @@ static void _vp_subtitle_track_destroy_handle(SubtitleTrackPopup *
        }
 
        evas_object_smart_callback_del(pSubtitleTrack->pGenList, "realized",
-                                      __vp_subtitle_track_genlist_realized);
+                                      __vp_subtitle_track_genlist_realized);
        evas_object_smart_callback_del(pSubtitleTrack->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_track_popup_rotate_cb);
+                                      "rotation,changed",
+                                      __vp_subtitle_track_popup_rotate_cb);
 
        _vp_subtitle_track_clear_item_list(pSubtitleTrack);
 #ifndef _SUBTITLE_MULTI_LANGUAGE
@@ -436,7 +432,7 @@ static void _vp_subtitle_track_destroy_handle(SubtitleTrackPopup *
 }
 
 static Evas_Object *_vp_subtitle_track_create_genlist(Evas_Object *
-               pParent)
+        pParent)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -447,7 +443,7 @@ static Evas_Object *_vp_subtitle_track_create_genlist(Evas_Object *
 
        pObj = elm_genlist_add(pParent);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_show(pObj);
        return pObj;
@@ -455,7 +451,7 @@ static Evas_Object *_vp_subtitle_track_create_genlist(Evas_Object *
 
 
 static bool _vp_subtitle_track_add_genlist_item(Evas_Object *pObj,
-               void *pUserData)
+                        void *pUserData)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -473,13 +469,13 @@ static bool _vp_subtitle_track_add_genlist_item(Evas_Object *pObj,
 
        if (pSubtitleTrack->st_SubtitleTrack_Itc) {
                pSubtitleTrack->st_SubtitleTrack_Itc->version =
-                       ELM_GENLIST_ITEM_CLASS_VERSION;
+                   ELM_GENLIST_ITEM_CLASS_VERSION;
                pSubtitleTrack->st_SubtitleTrack_Itc->item_style =
-                       "1text.1icon.3/popup";
+                   "1text.1icon.3/popup";
                pSubtitleTrack->st_SubtitleTrack_Itc->func.text_get =
-                       (void *) __vp_subtitle_track_genlist_text_get_cb;
+                   (void *) __vp_subtitle_track_genlist_text_get_cb;
                pSubtitleTrack->st_SubtitleTrack_Itc->func.content_get =
-                       (void *) __vp_subtitle_track_genlist_content_get_cb;
+                   (void *) __vp_subtitle_track_genlist_content_get_cb;
                pSubtitleTrack->st_SubtitleTrack_Itc->func.state_get = NULL;
                pSubtitleTrack->st_SubtitleTrack_Itc->func.del = NULL;
        }
@@ -492,16 +488,16 @@ static bool _vp_subtitle_track_add_genlist_item(Evas_Object *pObj,
                SubtitleTrackItem *pItem = NULL;
 
                pItem =
-                       (SubtitleTrackItem *) g_list_nth_data(pSubtitleTrack->
-                                       pItemList, idx);
+                   (SubtitleTrackItem *) g_list_nth_data(pSubtitleTrack->
+                           pItemList, idx);
                if (pItem) {
                        pItem->pItem = elm_genlist_item_append(pObj,
-                                                              pSubtitleTrack->
-                                                              st_SubtitleTrack_Itc,
-                                                              (void *) pItem, NULL,
-                                                              ELM_GENLIST_ITEM_NONE,
-                                                              __vp_subtitle_track_genlist_item_selected_cb,
-                                                              pItem);
+                                                              pSubtitleTrack->
+                                                              st_SubtitleTrack_Itc,
+                                                              (void *) pItem, NULL,
+                                                              ELM_GENLIST_ITEM_NONE,
+                                                              __vp_subtitle_track_genlist_item_selected_cb,
+                                                              pItem);
                        pSubtitleTrack->nListCount++;
                }
        }
@@ -511,8 +507,8 @@ static bool _vp_subtitle_track_add_genlist_item(Evas_Object *pObj,
 
 #ifdef _SUBTITLE_MULTI_LANGUAGE
 static void __vp_subtitle_track_popup_left_button_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -523,13 +519,13 @@ static void __vp_subtitle_track_popup_left_button_cb(void *pUserData,
 
        if (pSubtitleTrack->pCloseCb) {
                pSubtitleTrack->pCloseCb(-1, FALSE,
-                                        (void *) pSubtitleTrack->pUserData);
+                                        (void *) pSubtitleTrack->pUserData);
        }
 }
 
 static void __vp_subtitle_track_popup_right_button_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -550,40 +546,40 @@ static void __vp_subtitle_track_popup_right_button_cb(void *pUserData,
                SubtitleTrackItem *pItem = NULL;
 
                pItem =
-                       (SubtitleTrackItem *) g_list_nth_data(pSubtitleTrack->
-                                       pItemList, idx);
+                   (SubtitleTrackItem *) g_list_nth_data(pSubtitleTrack->
+                           pItemList, idx);
                /*set subtitle's language */
                if (pItem) {
                        VideoLogInfo("nIndex=%d,bCheck=%d", pItem->nIndex,
-                                    pItem->bCheck);
+                                    pItem->bCheck);
                        if (pItem->bCheck && pSubtitleTrack->pAddLanguageCb) {
                                pSubtitleTrack->pAddLanguageCb(pItem->nIndex,
-                                                              (void *) pSubtitleTrack->
-                                                              pUserData);
+                                                              (void *) pSubtitleTrack->
+                                                              pUserData);
                        } else if (!pItem->bCheck
-                                       && pSubtitleTrack->pRemoveLanguageCb) {
+                                  && pSubtitleTrack->pRemoveLanguageCb) {
                                pSubtitleTrack->pRemoveLanguageCb(pItem->nIndex,
-                                                                 (void *)
-                                                                 pSubtitleTrack->
-                                                                 pUserData);
+                                                                 (void *)
+                                                                 pSubtitleTrack->
+                                                                 pUserData);
                        }
                }
        }
 
        if (pSubtitleTrack->pCloseCb) {
                pSubtitleTrack->pCloseCb(-1, FALSE,
-                                        (void *) pSubtitleTrack->pUserData);
+                                        (void *) pSubtitleTrack->pUserData);
        }
 }
 #endif
 /* external functions */
 #ifdef _SUBTITLE_MULTI_LANGUAGE
 subtitle_track_handle vp_subtitle_track_create(Evas_Object *pParent,
-               PopupCloseCbFunc pCloseCb)
+        PopupCloseCbFunc pCloseCb)
 #else
 subtitle_track_handle vp_subtitle_track_create(Evas_Object *pParent,
-               PopupCloseCbFunc pCloseCb,
-               int nDefaultIndex)
+        PopupCloseCbFunc pCloseCb,
+        int nDefaultIndex)
 #endif
 {
        if (pParent == NULL) {
@@ -604,21 +600,21 @@ subtitle_track_handle vp_subtitle_track_create(Evas_Object *pParent,
        pSubtitleTrack->pCloseCb = pCloseCb;
 #ifdef _SUBTITLE_MULTI_LANGUAGE
        pSubtitleTrack->pPopup = vp_title_two_button_popup_create(pParent,
-                                VP_PLAY_STRING_SUBTITLE_LANGUAGE,
-                                NULL,
-                                VP_PLAY_STRING_COM_CANCEL,
-                                __vp_subtitle_track_popup_left_button_cb,
-                                VP_PLAY_STRING_COM_OK,
-                                __vp_subtitle_track_popup_right_button_cb,
-                                (void *)
-                                pSubtitleTrack);
+                                VP_PLAY_STRING_SUBTITLE_LANGUAGE,
+                                NULL,
+                                VP_PLAY_STRING_COM_CANCEL,
+                                __vp_subtitle_track_popup_left_button_cb,
+                                VP_PLAY_STRING_COM_OK,
+                                __vp_subtitle_track_popup_right_button_cb,
+                                (void *)
+                                pSubtitleTrack);
 #else
        pSubtitleTrack->pPopup =
-               vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
-                               VP_PLAY_STRING_SUBTITLE_LANGUAGE, NULL, 0.0, NULL,
-                               __vp_subtitle_track_popup_key_event_cb,
-                               __vp_subtitle_track_popup_mouse_event_cb,
-                               (void *) pSubtitleTrack);
+           vp_popup_create(pParent, POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN,
+                           VP_PLAY_STRING_SUBTITLE_LANGUAGE, NULL, 0.0, NULL,
+                           __vp_subtitle_track_popup_key_event_cb,
+                           __vp_subtitle_track_popup_mouse_event_cb,
+                           (void *) pSubtitleTrack);
 #endif
        if (pSubtitleTrack->pPopup == NULL) {
                VideoLogError("vp_popup_create fail");
@@ -627,13 +623,13 @@ subtitle_track_handle vp_subtitle_track_create(Evas_Object *pParent,
        }
 #ifdef _SUBTITLE_MULTI_LANGUAGE
        eext_object_event_callback_add(pSubtitleTrack->pPopup,
-                                      EEXT_CALLBACK_BACK,
-                                      __vp_subtitle_track_popup_key_event_cb,
-                                      (void *) pSubtitleTrack);
+                                      EEXT_CALLBACK_BACK,
+                                      __vp_subtitle_track_popup_key_event_cb,
+                                      (void *) pSubtitleTrack);
 #endif
 
        pSubtitleTrack->pGenList =
-               _vp_subtitle_track_create_genlist(pSubtitleTrack->pPopup);
+           _vp_subtitle_track_create_genlist(pSubtitleTrack->pPopup);
        if (pSubtitleTrack->pGenList == NULL) {
                VideoLogError("_vp_subtitle_track_create_genlist fail");
                _vp_subtitle_track_destroy_handle(pSubtitleTrack);
@@ -641,16 +637,16 @@ subtitle_track_handle vp_subtitle_track_create(Evas_Object *pParent,
        }
 
        evas_object_smart_callback_add(pSubtitleTrack->pGenList, "realized",
-                                      __vp_subtitle_track_genlist_realized,
-                                      NULL);
+                                      __vp_subtitle_track_genlist_realized,
+                                      NULL);
        evas_object_smart_callback_add(pSubtitleTrack->pParent,
-                                      "rotation,changed",
-                                      __vp_subtitle_track_popup_rotate_cb,
-                                      pSubtitleTrack);
+                                      "rotation,changed",
+                                      __vp_subtitle_track_popup_rotate_cb,
+                                      pSubtitleTrack);
 
        evas_object_data_set(pSubtitleTrack->pGenList,
-                            VP_SUBTITLE_TRACK_GENLIST_DATA_KEY,
-                            (void *) pSubtitleTrack);
+                            VP_SUBTITLE_TRACK_GENLIST_DATA_KEY,
+                            (void *) pSubtitleTrack);
 #ifndef _SUBTITLE_MULTI_LANGUAGE
        pSubtitleTrack->nCurrentIndex = nDefaultIndex;
        pSubtitleTrack->pRadio = elm_radio_add(pSubtitleTrack->pGenList);
@@ -669,7 +665,7 @@ void vp_subtitle_track_destroy(subtitle_track_handle pSubtitleTrackHandle)
        }
 
        SubtitleTrackPopup *pSubtitleTrack =
-               (SubtitleTrackPopup *) pSubtitleTrackHandle;
+           (SubtitleTrackPopup *) pSubtitleTrackHandle;
 
        _vp_subtitle_track_destroy_handle(pSubtitleTrack);
 
@@ -683,26 +679,26 @@ bool vp_subtitle_track_realize(subtitle_track_handle pSubtitleTrackHandle)
        }
 
        SubtitleTrackPopup *pSubtitleTrack =
-               (SubtitleTrackPopup *) pSubtitleTrackHandle;
+           (SubtitleTrackPopup *) pSubtitleTrackHandle;
 
        if (!_vp_subtitle_track_add_genlist_item
-                       (pSubtitleTrack->pGenList, (void *) pSubtitleTrack)) {
+               (pSubtitleTrack->pGenList, (void *) pSubtitleTrack)) {
                VideoLogError("_vp_subtitle_track_add_genlist_item fail");
                return FALSE;
        }
        if (pSubtitleTrack->nListCount == 1) {
                vp_popup_set_popup_min_size(pSubtitleTrack->pParent,
-                                           pSubtitleTrack->pBox,
-                                           pSubtitleTrack->nListCount,
-                                           VIDEO_POPUP_DEFAULT);
+                                           pSubtitleTrack->pBox,
+                                           pSubtitleTrack->nListCount,
+                                           VIDEO_POPUP_DEFAULT);
                elm_scroller_policy_set(pSubtitleTrack->pGenList,
-                                       ELM_SCROLLER_POLICY_OFF,
-                                       ELM_SCROLLER_POLICY_OFF);
+                                       ELM_SCROLLER_POLICY_OFF,
+                                       ELM_SCROLLER_POLICY_OFF);
        } else {
                vp_popup_set_popup_min_size(pSubtitleTrack->pParent,
-                                           pSubtitleTrack->pBox,
-                                           pSubtitleTrack->nListCount,
-                                           VIDEO_POPUP_DEFAULT);
+                                           pSubtitleTrack->pBox,
+                                           pSubtitleTrack->nListCount,
+                                           VIDEO_POPUP_DEFAULT);
        }
 
        //elm_radio_value_set(pSubtitleTrack->pRadio, pSubtitleTrack->nCurrentIndex);
@@ -715,7 +711,7 @@ bool vp_subtitle_track_realize(subtitle_track_handle pSubtitleTrackHandle)
 }
 
 bool vp_subtitle_track_unrealize(subtitle_track_handle
-                                pSubtitleTrackHandle)
+                                 pSubtitleTrackHandle)
 {
        if (pSubtitleTrackHandle == NULL) {
                VideoLogError("pSubtitleTrackHandle is NULL");
@@ -723,7 +719,7 @@ bool vp_subtitle_track_unrealize(subtitle_track_handle
        }
 
        SubtitleTrackPopup *pSubtitleTrack =
-               (SubtitleTrackPopup *) pSubtitleTrackHandle;
+           (SubtitleTrackPopup *) pSubtitleTrackHandle;
 
        _vp_subtitle_track_clear_item_list(pSubtitleTrack);
 
@@ -734,12 +730,12 @@ bool vp_subtitle_track_unrealize(subtitle_track_handle
 
 #ifdef _SUBTITLE_MULTI_LANGUAGE
 bool vp_subtitle_track_add_Item(subtitle_track_handle
-                               pSubtitleTrackHandle, char *szCode,
-                               int nIndex, bool bCheck)
+                                pSubtitleTrackHandle, char *szCode,
+                                int nIndex, bool bCheck)
 #else
 bool vp_subtitle_track_add_Item(subtitle_track_handle
-                               pSubtitleTrackHandle, char *szCode,
-                               int nIndex)
+                                pSubtitleTrackHandle, char *szCode,
+                                int nIndex)
 #endif
 {
        if (pSubtitleTrackHandle == NULL) {
@@ -748,7 +744,7 @@ bool vp_subtitle_track_add_Item(subtitle_track_handle
        }
 
        SubtitleTrackPopup *pSubtitleTrack =
-               (SubtitleTrackPopup *) pSubtitleTrackHandle;
+           (SubtitleTrackPopup *) pSubtitleTrackHandle;
 
        SubtitleTrackItem *pItem = calloc(1, sizeof(SubtitleTrackItem));
        if (pItem == NULL) {
@@ -773,14 +769,14 @@ bool vp_subtitle_track_add_Item(subtitle_track_handle
        }
 
        pSubtitleTrack->pItemList =
-               g_list_append(pSubtitleTrack->pItemList, pItem);
+           g_list_append(pSubtitleTrack->pItemList, pItem);
 
        return TRUE;
 }
 
 bool vp_subtitle_track_set_user_data(subtitle_track_handle
-                                    pSubtitleTrackHandle,
-                                    void *pUserData)
+                                     pSubtitleTrackHandle,
+                                     void *pUserData)
 {
        if (pSubtitleTrackHandle == NULL) {
                VideoLogError("pSubtitleTrackHandle is NULL");
@@ -788,7 +784,7 @@ bool vp_subtitle_track_set_user_data(subtitle_track_handle
        }
 
        SubtitleTrackPopup *pSubtitleTrack =
-               (SubtitleTrackPopup *) pSubtitleTrackHandle;
+           (SubtitleTrackPopup *) pSubtitleTrackHandle;
 
        pSubtitleTrack->pUserData = pUserData;
 
@@ -797,9 +793,9 @@ bool vp_subtitle_track_set_user_data(subtitle_track_handle
 
 #ifdef _SUBTITLE_MULTI_LANGUAGE
 bool vp_subtitle_track_set_add_language_cb(subtitle_track_handle
-               pSubtitleTrackHandle,
-               SubtitleLanguageChangeCbFunc
-               pCallback)
+        pSubtitleTrackHandle,
+        SubtitleLanguageChangeCbFunc
+        pCallback)
 {
        if (pSubtitleTrackHandle == NULL) {
                VideoLogError("pSubtitleTrackHandle is NULL");
@@ -807,7 +803,7 @@ bool vp_subtitle_track_set_add_language_cb(subtitle_track_handle
        }
 
        SubtitleTrackPopup *pSubtitleTrack =
-               (SubtitleTrackPopup *) pSubtitleTrackHandle;
+           (SubtitleTrackPopup *) pSubtitleTrackHandle;
 
        pSubtitleTrack->pAddLanguageCb = pCallback;
 
@@ -815,9 +811,9 @@ bool vp_subtitle_track_set_add_language_cb(subtitle_track_handle
 }
 
 bool vp_subtitle_track_set_remove_language_cb(subtitle_track_handle
-               pSubtitleTrackHandle,
-               SubtitleLanguageChangeCbFunc
-               pCallback)
+        pSubtitleTrackHandle,
+        SubtitleLanguageChangeCbFunc
+        pCallback)
 {
        if (pSubtitleTrackHandle == NULL) {
                VideoLogError("pSubtitleTrackHandle is NULL");
@@ -825,7 +821,7 @@ bool vp_subtitle_track_set_remove_language_cb(subtitle_track_handle
        }
 
        SubtitleTrackPopup *pSubtitleTrack =
-               (SubtitleTrackPopup *) pSubtitleTrackHandle;
+           (SubtitleTrackPopup *) pSubtitleTrackHandle;
 
        pSubtitleTrack->pRemoveLanguageCb = pCallback;
 
index 63f9561..ddc3f4e 100644 (file)
@@ -68,7 +68,7 @@ typedef struct _SubtitlePopup {
        void                    *pUserData;
        PopupCloseCbFunc        pCloseCb;
 
-}SubtitlePopup;
+} SubtitlePopup;
 
 static void _vp_subtitle_destroy_handle(SubtitlePopup *pSubtitle);
 char *_vp_subtitle_get_opacity(char *colorHex);
@@ -124,7 +124,7 @@ static void __vp_subtitle_popup_size_set(SubtitlePopup *pSubtitle)
                return;
        }
 
-       int nWidth= 0, nHeight = 0;
+       int nWidth = 0, nHeight = 0;
        if (vp_popup_check_landspace_by_win(pSubtitle->pParent)) {
                nWidth = 480;
                nHeight = VP_POPUP_MAX_HEIGHT_L;
@@ -133,16 +133,15 @@ static void __vp_subtitle_popup_size_set(SubtitlePopup *pSubtitle)
                nHeight = VP_POPUP_MAX_HEIGHT;
        }
        VideoLogInfo("nWidth=%d, nHeight=%d", nWidth, nHeight);
-       evas_object_size_hint_min_set(pSubtitle->pBox, nWidth,  (nHeight) * VP_SCALE);
+       evas_object_size_hint_min_set(pSubtitle->pBox, nWidth, (nHeight) * VP_SCALE);
        //evas_object_size_hint_min_set(pSubtitle->pPopupTitle, nWidth * VP_SCALE,  (VP_POPUP_TITLE_HEIGHT) * VP_SCALE);
-       evas_object_size_hint_min_set(pSubtitle->pContentBox, nWidth, (nHeight-VP_POPUP_TITLE_HEIGHT) * VP_SCALE);
+       evas_object_size_hint_min_set(pSubtitle->pContentBox, nWidth, (nHeight - VP_POPUP_TITLE_HEIGHT) * VP_SCALE);
 }
 
 static void __vp_subtitle_popup_rotate_cb(void *data, Evas_Object *obj, void *event_info)
 {
        SubtitlePopup *pSubtitle = (SubtitlePopup *)data;
-       if (!pSubtitle)
-       {
+       if (!pSubtitle) {
                VideoLogError("pSubtitle IS null");
                return;
        }
@@ -195,7 +194,7 @@ static char *_vp_play_subtitle_text_get(SubtitleInfo *pSubtitleInfo, bool bActiv
        char *szTxtFormat = NULL;
        char *szColor = NULL;
        char *szBGColor = NULL;
-       char *szBGColorOn= NULL;
+       char *szBGColorOn = NULL;
        char *szFontEdge = NULL;
        char *szAlignment = NULL;
        char *szFontWeight = NULL;
@@ -204,11 +203,9 @@ static char *_vp_play_subtitle_text_get(SubtitleInfo *pSubtitleInfo, bool bActiv
 
        if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_SMALL) {
                nSize = VP_SUBTITLE_SIZE_SMALL_VALUE * pSubtitleInfo->fZoom;
-       }
-       else if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_LARGE) {
+       } else if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_LARGE) {
                nSize = VP_SUBTITLE_SIZE_LARGE_VALUE * pSubtitleInfo->fZoom;
-       }
-       else {
+       } else {
                nSize = VP_SUBTITLE_SIZE_MEDIUM_VALUE * pSubtitleInfo->fZoom;
        }
 
@@ -223,26 +220,21 @@ static char *_vp_play_subtitle_text_get(SubtitleInfo *pSubtitleInfo, bool bActiv
 #ifndef SUBTITLE_K_FEATURE
        if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_BLACK) {
                szColor = g_strdup_printf("#000000");
-       }
-       else if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_BLUE) {
+       } else if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_BLUE) {
                szColor = g_strdup_printf("#0000FF");
-       }
-       else if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_GREEN) {
+       } else if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_GREEN) {
                szColor = g_strdup_printf("#00FF00");
-       }
-       else if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_WHITE) {
+       } else if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_WHITE) {
                szColor = g_strdup_printf("#FFFFFF");
        }
 
        if (pSubtitleInfo->nBGColor == VIDEO_SUBTITLE_COLOR_NONE) {
                szBGColorOn = g_strdup_printf("off");
                szBGColor = g_strdup_printf("#000000");
-       }
-       else if (pSubtitleInfo->nBGColor == VIDEO_SUBTITLE_COLOR_BLACK) {
+       } else if (pSubtitleInfo->nBGColor == VIDEO_SUBTITLE_COLOR_BLACK) {
                szBGColorOn = g_strdup_printf("on");
                szBGColor = g_strdup_printf("#000000");
-       }
-       else if (pSubtitleInfo->nBGColor == VIDEO_SUBTITLE_COLOR_WHITE) {
+       } else if (pSubtitleInfo->nBGColor == VIDEO_SUBTITLE_COLOR_WHITE) {
                szBGColorOn = g_strdup_printf("on");
                szBGColor = g_strdup_printf("#FFFFFF");
        }
@@ -264,11 +256,9 @@ static char *_vp_play_subtitle_text_get(SubtitleInfo *pSubtitleInfo, bool bActiv
 
        if (pSubtitleInfo->eAlignment == VIDEO_SUBTITLE_ALIGNMENT_LEFT) {
                szAlignment = g_strdup_printf("left");
-       }
-       else if (pSubtitleInfo->eAlignment == VIDEO_SUBTITLE_ALIGNMENT_CENTER) {
+       } else if (pSubtitleInfo->eAlignment == VIDEO_SUBTITLE_ALIGNMENT_CENTER) {
                szAlignment = g_strdup_printf("center");
-       }
-       else if (pSubtitleInfo->eAlignment == VIDEO_SUBTITLE_ALIGNMENT_RIGHT) {
+       } else if (pSubtitleInfo->eAlignment == VIDEO_SUBTITLE_ALIGNMENT_RIGHT) {
                szAlignment = g_strdup_printf("right");
        }
 
@@ -300,29 +290,21 @@ static char *__vp_subtitle_get_color_and_opacity(char *szColorHex)
 
        if (!strncasecmp(szColorHex, "#000000", VP_SUBTITLE_COLOR_LEN)) {
                szColorAndOpacity = g_strdup_printf("%s,%s", VP_PLAY_STRING_SUBTITLE_COLOR_BLACK, szOpacity);
-       }
-       else if (!strncasecmp(szColorHex, "#0000ff", VP_SUBTITLE_COLOR_LEN)) {
+       } else if (!strncasecmp(szColorHex, "#0000ff", VP_SUBTITLE_COLOR_LEN)) {
                szColorAndOpacity = g_strdup_printf("%s,%s", VP_PLAY_STRING_SUBTITLE_COLOR_BLUE, szOpacity);
-       }
-       else if (!strncasecmp(szColorHex, "#00ff00", VP_SUBTITLE_COLOR_LEN)) {
+       } else if (!strncasecmp(szColorHex, "#00ff00", VP_SUBTITLE_COLOR_LEN)) {
                szColorAndOpacity = g_strdup_printf("%s,%s", VP_PLAY_STRING_SUBTITLE_COLOR_GREEN, szOpacity);
-       }
-       else if (!strncasecmp(szColorHex, "#ffffff", VP_SUBTITLE_COLOR_LEN)) {
+       } else if (!strncasecmp(szColorHex, "#ffffff", VP_SUBTITLE_COLOR_LEN)) {
                szColorAndOpacity = g_strdup_printf("%s,%s", VP_PLAY_STRING_SUBTITLE_COLOR_WHITE, szOpacity);
-       }
-       else if (!strncasecmp(szColorHex, "#ff0000", VP_SUBTITLE_COLOR_LEN)) {
+       } else if (!strncasecmp(szColorHex, "#ff0000", VP_SUBTITLE_COLOR_LEN)) {
                szColorAndOpacity = g_strdup_printf("%s,%s", VP_PLAY_STRING_SUBTITLE_COLOR_RED, szOpacity);
-       }
-       else if (!strncasecmp(szColorHex, "#ffff00", VP_SUBTITLE_COLOR_LEN)) {
+       } else if (!strncasecmp(szColorHex, "#ffff00", VP_SUBTITLE_COLOR_LEN)) {
                szColorAndOpacity = g_strdup_printf("%s,%s", VP_PLAY_STRING_SUBTITLE_COLOR_YELLOW, szOpacity);
-       }
-       else if (!strncasecmp(szColorHex, "#ff00ff", VP_SUBTITLE_COLOR_LEN)) {
+       } else if (!strncasecmp(szColorHex, "#ff00ff", VP_SUBTITLE_COLOR_LEN)) {
                szColorAndOpacity = g_strdup_printf("%s,%s", VP_PLAY_STRING_SUBTITLE_COLOR_MAGENTA, szOpacity);
-       }
-       else if (!strncasecmp(szColorHex, "#00ffff", VP_SUBTITLE_COLOR_LEN)) {
+       } else if (!strncasecmp(szColorHex, "#00ffff", VP_SUBTITLE_COLOR_LEN)) {
                szColorAndOpacity = g_strdup_printf("%s,%s", VP_PLAY_STRING_SUBTITLE_COLOR_CYAN, szOpacity);
-       }
-       else {
+       } else {
                szColorAndOpacity = g_strdup_printf("%s,%s", VP_PLAY_STRING_SUBTITLE_COLOR_CUSTOM, szOpacity);
        }
 
@@ -337,11 +319,12 @@ static char *__vp_subtitle_genlist_text_get_cb(const void *pUserData, Evas_Objec
                return NULL;
        }
 
-       char *szTxt= (char *)pUserData;
+       char *szTxt = (char *)pUserData;
 
        if (!strcmp(pPart, "elm.text.main.left")) {
-               if (!g_strcmp0(VP_PLAY_STRING_ACTIVATION, szTxt))
+               if (!g_strcmp0(VP_PLAY_STRING_ACTIVATION, szTxt)) {
                        return strdup(szTxt);
+               }
        }
 
        if (!g_strcmp0(VP_PLAY_STRING_SETTINGS, szTxt)) {
@@ -351,7 +334,7 @@ static char *__vp_subtitle_genlist_text_get_cb(const void *pUserData, Evas_Objec
        }
 
        if (!g_strcmp0(VP_PLAY_STRING_SUBTITLE_SELECT_SUBTITLES, szTxt)
-               || !g_strcmp0(VP_PLAY_STRING_SUBTITLE_ALIGNMENT, szTxt) || !g_strcmp0(VP_PLAY_STRING_SUBTITLE_SIZE, szTxt)) {
+               || !g_strcmp0(VP_PLAY_STRING_SUBTITLE_ALIGNMENT, szTxt) || !g_strcmp0(VP_PLAY_STRING_SUBTITLE_SIZE, szTxt)) {
                if (!strcmp(pPart, "elm.text.main.left.top")) {
                        return strdup(szTxt);
                } else if (!strcmp(pPart, "elm.text.sub.left.bottom")) {
@@ -373,33 +356,26 @@ static char *__vp_subtitle_genlist_text_get_cb(const void *pUserData, Evas_Objec
                                if (pSubtitleInfo->szURL) {
                                        return vp_util_convert_file_location(pSubtitleInfo->szURL);
                                }
-                       }
-                       else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_ALIGNMENT)) {
-                               switch (pSubtitleInfo->eAlignment)
-                               {
-                                       case VIDEO_SUBTITLE_ALIGNMENT_LEFT:
-                                               {
-                                                       return strdup(VP_PLAY_STRING_ALIGNMENT_LEFT);
-                                               }
-                                       case VIDEO_SUBTITLE_ALIGNMENT_CENTER:
-                                               {
-                                                       return strdup(VP_PLAY_STRING_ALIGNMENT_CENTER);
-                                               }
-                                       case VIDEO_SUBTITLE_ALIGNMENT_RIGHT:
-                                               {
-                                                       return strdup(VP_PLAY_STRING_ALIGNMENT_RIGHT);
-                                               }
-                                       default: break;
+                       } else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_ALIGNMENT)) {
+                               switch (pSubtitleInfo->eAlignment) {
+                               case VIDEO_SUBTITLE_ALIGNMENT_LEFT: {
+                                       return strdup(VP_PLAY_STRING_ALIGNMENT_LEFT);
                                }
-                       }
-                       else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_SIZE)) {
+                               case VIDEO_SUBTITLE_ALIGNMENT_CENTER: {
+                                       return strdup(VP_PLAY_STRING_ALIGNMENT_CENTER);
+                               }
+                               case VIDEO_SUBTITLE_ALIGNMENT_RIGHT: {
+                                       return strdup(VP_PLAY_STRING_ALIGNMENT_RIGHT);
+                               }
+                               default:
+                                       break;
+                               }
+                       } else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_SIZE)) {
                                if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_LARGE) {
                                        return strdup(VP_PLAY_STRING_SUBTITLE_SIZE_LARGE);
-                               }
-                               else if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_MEDIUM) {
+                               } else if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_MEDIUM) {
                                        return strdup(VP_PLAY_STRING_SUBTITLE_SIZE_MEDIUM);
-                               }
-                               else if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_SMALL) {
+                               } else if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_SMALL) {
                                        return strdup(VP_PLAY_STRING_SUBTITLE_SIZE_SMALL);
                                }
                        }
@@ -408,11 +384,9 @@ static char *__vp_subtitle_genlist_text_get_cb(const void *pUserData, Evas_Objec
 #if 1
        if (!strcmp(pPart, "elm.text")) {
                return strdup(szTxt);
-       }
-       else if (!strcmp(pPart, "elm.text.1")) {
+       } else if (!strcmp(pPart, "elm.text.1")) {
                return strdup(szTxt);
-       }
-       else if (!strcmp(pPart, "elm.text.2")) {
+       } else if (!strcmp(pPart, "elm.text.2")) {
 
                SubtitlePopup *pSubtitle = (SubtitlePopup *)evas_object_data_get(pObj , VP_SUBTITLE_GENLIST_DATA_KEY);
                if (pSubtitle == NULL) {
@@ -431,29 +405,25 @@ static char *__vp_subtitle_genlist_text_get_cb(const void *pUserData, Evas_Objec
                        snprintf(szTemp, sizeof(szTemp), "%0.1f", pSubtitleInfo->fSync);
 
                        return g_strdup_printf(VP_PLAY_STRING_SUBTITLE_SECS, szTemp);
-               }
-               else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_LANGUAGE)) {
+               } else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_LANGUAGE)) {
                        if (pSubtitleInfo->szLanguage) {
                                return strdup(pSubtitleInfo->szLanguage);
                        }
                }
 #ifdef SUBTITLE_K_FEATURE
                else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_ALIGNMENT)) {
-                       switch (pSubtitleInfo->eAlignment)
-                       {
-                               case VIDEO_SUBTITLE_ALIGNMENT_LEFT:
-                                       {
-                                               return strdup(VP_PLAY_STRING_ALIGNMENT_LEFT);
-                                       }
-                               case VIDEO_SUBTITLE_ALIGNMENT_CENTER:
-                                       {
-                                               return strdup(VP_PLAY_STRING_ALIGNMENT_CENTER);
-                                       }
-                               case VIDEO_SUBTITLE_ALIGNMENT_RIGHT:
-                                       {
-                                               return strdup(VP_PLAY_STRING_ALIGNMENT_RIGHT);
-                                       }
-                               default: break;
+                       switch (pSubtitleInfo->eAlignment) {
+                       case VIDEO_SUBTITLE_ALIGNMENT_LEFT: {
+                               return strdup(VP_PLAY_STRING_ALIGNMENT_LEFT);
+                       }
+                       case VIDEO_SUBTITLE_ALIGNMENT_CENTER: {
+                               return strdup(VP_PLAY_STRING_ALIGNMENT_CENTER);
+                       }
+                       case VIDEO_SUBTITLE_ALIGNMENT_RIGHT: {
+                               return strdup(VP_PLAY_STRING_ALIGNMENT_RIGHT);
+                       }
+                       default:
+                               break;
                        }
                }
 #endif
@@ -461,39 +431,34 @@ static char *__vp_subtitle_genlist_text_get_cb(const void *pUserData, Evas_Objec
                        if (pSubtitleInfo->szURL) {
                                return vp_util_convert_file_location(pSubtitleInfo->szURL);
                        }
-               }
-               else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_FONT)) {
+               } else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_FONT)) {
                        if (pSubtitleInfo->szFontName) {
                                return strdup(pSubtitleInfo->szFontName);
                        }
-               }
-               else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_SIZE)) {
+               } else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_SIZE)) {
                        if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_LARGE) {
                                return strdup(VP_PLAY_STRING_SUBTITLE_SIZE_LARGE);
-                       }
-                       else if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_MEDIUM) {
+                       } else if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_MEDIUM) {
                                return strdup(VP_PLAY_STRING_SUBTITLE_SIZE_MEDIUM);
-                       }
-                       else if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_SMALL) {
+                       } else if (pSubtitleInfo->nFontSize == VIDEO_SUBTITLE_SIZE_SMALL) {
                                return strdup(VP_PLAY_STRING_SUBTITLE_SIZE_SMALL);
                        }
                }
 //#ifdef SUBTITLE_K_FEATURE
                else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_EDGE)) {
-                       switch (pSubtitleInfo->nEdge)
-                       {
-                               case VP_SUBTITLE_EDGE_NO_EDGE:
-                                       return strdup(VP_PLAY_STRING_EDGE_NO_EDGE);
-                               case VP_SUBTITLE_EDGE_RAISED:
-                                       return strdup(VP_PLAY_STRING_EDGE_RAISED);
-                               case VP_SUBTITLE_EDGE_DEPRESSED:
-                                       return strdup(VP_PLAY_STRING_EDGE_DEPRESSED);
-                               case VP_SUBTITLE_EDGE_UNIFORM:
-                                       return strdup(VP_PLAY_STRING_EDGE_UNIFORM);
-                               case VP_SUBTITLE_EDGE_DROP_SHADOW:
-                                       return strdup(VP_PLAY_STRING_EDGE_DROP_SHADOW);
-                               default:
-                                       return strdup(VP_PLAY_STRING_EDGE_NO_EDGE);
+                       switch (pSubtitleInfo->nEdge) {
+                       case VP_SUBTITLE_EDGE_NO_EDGE:
+                               return strdup(VP_PLAY_STRING_EDGE_NO_EDGE);
+                       case VP_SUBTITLE_EDGE_RAISED:
+                               return strdup(VP_PLAY_STRING_EDGE_RAISED);
+                       case VP_SUBTITLE_EDGE_DEPRESSED:
+                               return strdup(VP_PLAY_STRING_EDGE_DEPRESSED);
+                       case VP_SUBTITLE_EDGE_UNIFORM:
+                               return strdup(VP_PLAY_STRING_EDGE_UNIFORM);
+                       case VP_SUBTITLE_EDGE_DROP_SHADOW:
+                               return strdup(VP_PLAY_STRING_EDGE_DROP_SHADOW);
+                       default:
+                               return strdup(VP_PLAY_STRING_EDGE_NO_EDGE);
                        }
                }
 //#endif
@@ -501,29 +466,23 @@ static char *__vp_subtitle_genlist_text_get_cb(const void *pUserData, Evas_Objec
 #ifndef SUBTITLE_K_FEATURE
                        if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_BLACK) {
                                return strdup(VP_PLAY_STRING_SUBTITLE_COLOR_BLACK);
-                       }
-                       else if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_BLUE) {
+                       } else if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_BLUE) {
                                return strdup(VP_PLAY_STRING_SUBTITLE_COLOR_BLUE);
-                       }
-                       else if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_GREEN) {
+                       } else if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_GREEN) {
                                return strdup(VP_PLAY_STRING_SUBTITLE_COLOR_GREEN);
-                       }
-                       else if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_WHITE) {
+                       } else if (pSubtitleInfo->nTextColor == VIDEO_SUBTITLE_COLOR_WHITE) {
                                return strdup(VP_PLAY_STRING_SUBTITLE_COLOR_WHITE);
                        }
 #else
                        return __vp_subtitle_get_color_and_opacity(pSubtitleInfo->pTextColorHex);
 #endif
-               }
-               else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_BG_COLOR)) {
+               } else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_BG_COLOR)) {
 #ifndef SUBTITLE_K_FEATURE
                        if (pSubtitleInfo->nBGColor == VIDEO_SUBTITLE_COLOR_BLACK) {
                                return strdup(VP_PLAY_STRING_SUBTITLE_COLOR_BLACK);
-                       }
-                       else if (pSubtitleInfo->nBGColor == VIDEO_SUBTITLE_COLOR_WHITE) {
+                       } else if (pSubtitleInfo->nBGColor == VIDEO_SUBTITLE_COLOR_WHITE) {
                                return strdup(VP_PLAY_STRING_SUBTITLE_COLOR_WHITE);
-                       }
-                       else if (pSubtitleInfo->nBGColor == VIDEO_SUBTITLE_COLOR_NONE) {
+                       } else if (pSubtitleInfo->nBGColor == VIDEO_SUBTITLE_COLOR_NONE) {
                                return strdup(VP_PLAY_STRING_SUBTITLE_COLOR_NONE);
                        }
 #else
@@ -580,7 +539,7 @@ static Evas_Object *__vp_subtitle_genlist_content_get_cb(void *data, Evas_Object
 }
 
 
-static void __vp_subtitle_genlist_item_selected_cb(void *pUserData,Evas_Object *pObject,void *pEventInfo)
+static void __vp_subtitle_genlist_item_selected_cb(void *pUserData, Evas_Object *pObject, void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -608,15 +567,13 @@ static void __vp_subtitle_genlist_item_selected_cb(void *pUserData,Evas_Object *
                if (pSubtitle->pCloseCb) {
                        pSubtitle->pCloseCb((int)nType, TRUE, (void *)pSubtitle->pUserData);
                }
-       }
-       else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_SELECT_SUBTITLES)) {
+       } else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_SELECT_SUBTITLES)) {
                VideoLogWarning("SELECT SUBTITLE ITEM (VP_PLAY_STRING_SUBTITLE_SELECT_SUBTITLES)");
                nType = VP_SUBTITLE_MODE_SELECT;
                if (pSubtitle->pCloseCb) {
                        pSubtitle->pCloseCb((int)nType, TRUE, (void *)pSubtitle->pUserData);
                }
-       }
-       else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_LANGUAGE)) {
+       } else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_LANGUAGE)) {
                VideoLogWarning("SELECT SUBTITLE ITEM (VP_PLAY_STRING_SUBTITLE_LANGUAGE)");
                nType = VP_SUBTITLE_MODE_LANGUAGE;
                if (pSubtitle->pCloseCb) {
@@ -638,8 +595,7 @@ static void __vp_subtitle_genlist_item_selected_cb(void *pUserData,Evas_Object *
                if (pSubtitle->pCloseCb) {
                        pSubtitle->pCloseCb((int)nType, TRUE, (void *)pSubtitle->pUserData);
                }
-       }
-       else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_SIZE)) {
+       } else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_SIZE)) {
                VideoLogWarning("SELECT SUBTITLE ITEM (VP_PLAY_STRING_SUBTITLE_SIZE)");
                nType = VP_SUBTITLE_MODE_SIZE;
                if (pSubtitle->pCloseCb) {
@@ -653,15 +609,13 @@ static void __vp_subtitle_genlist_item_selected_cb(void *pUserData,Evas_Object *
                if (pSubtitle->pCloseCb) {
                        pSubtitle->pCloseCb((int)nType, TRUE, (void *)pSubtitle->pUserData);
                }
-       }
-       else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_TEXT)) {
+       } else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_TEXT)) {
                VideoLogWarning("SELECT SUBTITLE ITEM (VP_PLAY_STRING_SUBTITLE_TEXT)");
                nType = VP_SUBTITLE_MODE_TEXT;
                if (pSubtitle->pCloseCb) {
                        pSubtitle->pCloseCb((int)nType, TRUE, (void *)pSubtitle->pUserData);
                }
-       }
-       else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_BG_COLOR)) {
+       } else if (!strcmp(szTxt, VP_PLAY_STRING_SUBTITLE_BG_COLOR)) {
                VideoLogWarning("SELECT SUBTITLE ITEM (VP_PLAY_STRING_SUBTITLE_BG_COLOR)");
                nType = VP_SUBTITLE_MODE_BG_COLOR;
                if (pSubtitle->pCloseCb) {
@@ -719,8 +673,7 @@ static void _vp_subtitle_destroy_subtitle_info(SubtitlePopup *pSubtitle)
                return;
        }
 
-       if (pSubtitle->pSubtitleInfo)
-       {
+       if (pSubtitle->pSubtitleInfo) {
                VP_FREE(pSubtitle->pSubtitleInfo->szFontName);
                VP_FREE(pSubtitle->pSubtitleInfo->szLanguage);
                VP_FREE(pSubtitle->pSubtitleInfo->szText);
@@ -860,7 +813,7 @@ static bool _vp_subtitle_add_genlist_item(Evas_Object *pObj, void *pUserData)
        }
 
        pSubtitle->st_Subtitle_Itc_1 = elm_genlist_item_class_new();
-       
+
        if (pSubtitle->st_Subtitle_Itc_1 != NULL) {
                pSubtitle->st_Subtitle_Itc_1->version = ELM_GENLIST_ITEM_CLASS_VERSION;
                pSubtitle->st_Subtitle_Itc_1->item_style = "1line";
@@ -871,7 +824,7 @@ static bool _vp_subtitle_add_genlist_item(Evas_Object *pObj, void *pUserData)
        }
 
        pSubtitle->st_Subtitle_Itc_2 = elm_genlist_item_class_new();
-       
+
        if (pSubtitle->st_Subtitle_Itc_2 != NULL) {
                pSubtitle->st_Subtitle_Itc_2->version = ELM_GENLIST_ITEM_CLASS_VERSION;
                pSubtitle->st_Subtitle_Itc_2->item_style = "2line.top";
@@ -891,7 +844,7 @@ static bool _vp_subtitle_add_genlist_item(Evas_Object *pObj, void *pUserData)
                pSubtitle->st_Subtitle_Itc_1icon->func.state_get = NULL;
                pSubtitle->st_Subtitle_Itc_1icon->func.del = NULL;
        }
-       
+
        if (pSubtitle->st_Subtitle_Itc_groupindex != NULL) {
                pSubtitle->st_Subtitle_Itc_groupindex = elm_genlist_item_class_new();
                pSubtitle->st_Subtitle_Itc_groupindex->version = ELM_GENLIST_ITEM_CLASS_VERSION;
@@ -984,7 +937,7 @@ static void _vp_subtitle_create_title(SubtitlePopup *pSubtitle)
        elm_object_style_set(btn, "naviframe/title_right");
        evas_object_smart_callback_add(btn, "clicked", (Evas_Smart_Cb)_vp_subtitle_done_button_cb, pSubtitle);
        elm_object_part_content_set(pSubtitle->pPopupTitle, "elm.swallow.title.right.icon", btn);
-       elm_object_text_set(btn,VP_PLAY_STRING_SUBTITLE_DONE);
+       elm_object_text_set(btn, VP_PLAY_STRING_SUBTITLE_DONE);
 
        elm_box_pack_end(pSubtitle->pBox, pSubtitle->pPopupTitle);
        evas_object_show(pSubtitle->pPopupTitle);
@@ -1089,11 +1042,11 @@ static Evas_Object *_vp_subtitle_popup_create(Evas_Object *pParent, Eext_Event_C
        Evas_Object *pObj = NULL;
 
        pObj = vp_popup_create(pParent, 0 ,
-                                               NULL,
-                                               NULL, 0.0, NULL,
-                                               pCancelKeyCb,
-                                               pCancelMouseCb,
-                                               (void *)pUserData);
+                              NULL,
+                              NULL, 0.0, NULL,
+                              pCancelKeyCb,
+                              pCancelMouseCb,
+                              (void *)pUserData);
 
        return pObj;
 }
@@ -1305,7 +1258,7 @@ bool vp_subtitle_update(subtitle_popup_handle pSubtitleHandle, SubtitleInfo *pSu
                return FALSE;
        }
 
-       if (pSubtitleInfo== NULL) {
+       if (pSubtitleInfo == NULL) {
                VideoLogError("pSubtitleInfo is NULL");
                return FALSE;
        }
@@ -1348,7 +1301,7 @@ char *_vp_subtitle_get_opacity(char *colorHex)
                return NULL;
        }
 
-       char *szOpacity = g_strndup(colorHex+7, 2);
+       char *szOpacity = g_strndup(colorHex + 7, 2);
 
        float fOpacity = strtol(szOpacity, NULL, 16);
 
@@ -1356,6 +1309,6 @@ char *_vp_subtitle_get_opacity(char *colorHex)
 
        VP_FREE(szOpacity);
 
-       return g_strdup_printf("%d%%", (int)((fOpacity*100)/255.0 + 0.5));
+       return g_strdup_printf("%d%%", (int)((fOpacity * 100) / 255.0 + 0.5));
 }
 
index 301b2b9..c5d88ec 100644 (file)
@@ -51,9 +51,9 @@ typedef struct _ZoomGuideWidget {
 
 
 static void _vp_zoom_guide_destory_handle(ZoomGuideWidget *
-               pZoomGuideWidget);
+                                        pZoomGuideWidget);
 static void _vp_zoom_guide_update_item(ZoomGuideWidget *pZoomGuideWidget,
-                                      bool bUpdate);
+                                       bool bUpdate);
 
 
 /* callback functions */
@@ -67,7 +67,7 @@ static Eina_Bool __vp_zoom_guide_hide_timer_cb(void *pUserData)
        ZoomGuideWidget *pZoomGuideWidget = (ZoomGuideWidget *) pUserData;
 
        elm_object_signal_emit(pZoomGuideWidget->pLayout,
-                              VP_NORMAL_SIGNAL_ZOOM_GUIDE_HIDE, "*");
+                              VP_NORMAL_SIGNAL_ZOOM_GUIDE_HIDE, "*");
 
        evas_object_hide(pZoomGuideWidget->pLayout);
        evas_object_hide(pZoomGuideWidget->pItemLayout);
@@ -78,7 +78,7 @@ static Eina_Bool __vp_zoom_guide_hide_timer_cb(void *pUserData)
 
 
 static void __vp_zoom_guide_resize_cb(void *pUserData, Evas *pEvas,
-                                     Evas_Object *pObj, void *pEvent)
+                                      Evas_Object *pObj, void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("[ERR] No Exist pUserData.");
@@ -89,12 +89,12 @@ static void __vp_zoom_guide_resize_cb(void *pUserData, Evas *pEvas,
        Evas_Coord_Rectangle rtCurRect = { 0, };
 
        evas_object_geometry_get(pObj, &(rtCurRect.x), &(rtCurRect.y),
-                                &(rtCurRect.w), &(rtCurRect.h));
+                                &(rtCurRect.w), &(rtCurRect.h));
 
        if (pZoomGuideWidget->rtOldRect.x != rtCurRect.x ||
-                       pZoomGuideWidget->rtOldRect.y != rtCurRect.y ||
-                       pZoomGuideWidget->rtOldRect.w != rtCurRect.w ||
-                       pZoomGuideWidget->rtOldRect.h != rtCurRect.h) {
+               pZoomGuideWidget->rtOldRect.y != rtCurRect.y ||
+               pZoomGuideWidget->rtOldRect.w != rtCurRect.w ||
+               pZoomGuideWidget->rtOldRect.h != rtCurRect.h) {
 
                pZoomGuideWidget->rtOldRect.x = rtCurRect.x;
                pZoomGuideWidget->rtOldRect.y = rtCurRect.y;
@@ -109,7 +109,7 @@ static void __vp_zoom_guide_resize_cb(void *pUserData, Evas *pEvas,
 
 /* internal functions */
 static void _vp_zoom_guide_update_item(ZoomGuideWidget *pZoomGuideWidget,
-                                      bool bUpdate)
+                                       bool bUpdate)
 {
        if (pZoomGuideWidget == NULL) {
                VideoLogError("pZoomGuideWidget is NULL");
@@ -132,15 +132,15 @@ static void _vp_zoom_guide_update_item(ZoomGuideWidget *pZoomGuideWidget,
        Evas_Coord_Rectangle nDstRect = { 0, };
 
        evas_object_geometry_get(pParent, &(nRect.x), &(nRect.y), &(nRect.w),
-                                &(nRect.h));
+                                &(nRect.h));
 
        nDstRect.w = nRect.w * pZoomGuideWidget->fZoomValue;
        nDstRect.h = nRect.h * pZoomGuideWidget->fZoomValue;
 
        nDstRect.x =
-               nRect.x + (nRect.w * pZoomGuideWidget->fPosX) - (nDstRect.w / 2);
+           nRect.x + (nRect.w * pZoomGuideWidget->fPosX) - (nDstRect.w / 2);
        nDstRect.y =
-               nRect.y + (nRect.h * pZoomGuideWidget->fPosY) - (nDstRect.h / 2);
+           nRect.y + (nRect.h * pZoomGuideWidget->fPosY) - (nDstRect.h / 2);
 
        if (nDstRect.x < nRect.x) {
                nDstRect.x = nRect.x;
@@ -159,29 +159,29 @@ static void _vp_zoom_guide_update_item(ZoomGuideWidget *pZoomGuideWidget,
        }
 
        pZoomGuideWidget->fResultPosX =
-               (double)((double)(nDstRect.x - nRect.x) / (double)(nRect.w));
+           (double)((double)(nDstRect.x - nRect.x) / (double)(nRect.w));
        pZoomGuideWidget->fResultPosY =
-               (double)((double)(nDstRect.y - nRect.y) / (double)(nRect.h));
+           (double)((double)(nDstRect.y - nRect.y) / (double)(nRect.h));
 
        evas_object_move(pItem, nDstRect.x, nDstRect.y);
        evas_object_resize(pItem, nDstRect.w, nDstRect.h);
 
        if (bUpdate) {
                elm_object_signal_emit(pZoomGuideWidget->pLayout,
-                                      VP_NORMAL_SIGNAL_ZOOM_GUIDE_SHOW, "*");
+                                      VP_NORMAL_SIGNAL_ZOOM_GUIDE_SHOW, "*");
                evas_object_show(pZoomGuideWidget->pLayout);
                evas_object_show(pZoomGuideWidget->pItemLayout);
 
                VP_EVAS_TIMER_DEL(pZoomGuideWidget->pHideTimer);
                pZoomGuideWidget->pHideTimer =
-                       ecore_timer_add(1.5, __vp_zoom_guide_hide_timer_cb,
-                                       (void *) pZoomGuideWidget);
+                   ecore_timer_add(1.5, __vp_zoom_guide_hide_timer_cb,
+                                   (void *) pZoomGuideWidget);
        }
 
 }
 
 static void _vp_zoom_guide_destory_handle(ZoomGuideWidget *
-               pZoomGuideWidget)
+        pZoomGuideWidget)
 {
        if (pZoomGuideWidget == NULL) {
                VideoLogError("pZoomGuideWidget is NULL");
@@ -197,7 +197,7 @@ static void _vp_zoom_guide_destory_handle(ZoomGuideWidget *
 }
 
 static Evas_Object *_vp_zoom_guide_create_layout(Evas_Object *pParent,
-               void *pUserData)
+        void *pUserData)
 {
        if (!pParent) {
                VideoLogError("Parent is NULL");
@@ -214,17 +214,17 @@ static Evas_Object *_vp_zoom_guide_create_layout(Evas_Object *pParent,
        }
 
        bRet =
-               elm_layout_file_set(pObj, VP_PLAY_ZOOM_GUIDE_EDJ_PATH,
-                                   VP_PLAY_EDJ_GROUP_ZOOM_GUIDE);
+           elm_layout_file_set(pObj, VP_PLAY_ZOOM_GUIDE_EDJ_PATH,
+                               VP_PLAY_EDJ_GROUP_ZOOM_GUIDE);
        if (bRet != EINA_TRUE) {
                VideoLogError("elm_layout_file_set fail");
                return NULL;
        }
        evas_object_event_callback_add(pObj, EVAS_CALLBACK_RESIZE,
-                                      __vp_zoom_guide_resize_cb, pUserData);
+                                      __vp_zoom_guide_resize_cb, pUserData);
 
        evas_object_event_callback_add(pObj, EVAS_CALLBACK_MOVE,
-                                      __vp_zoom_guide_resize_cb, pUserData);
+                                      __vp_zoom_guide_resize_cb, pUserData);
 
 
        evas_object_show(pObj);
@@ -235,7 +235,7 @@ static Evas_Object *_vp_zoom_guide_create_layout(Evas_Object *pParent,
 
 
 static Evas_Object *_vp_zoom_guide_create_item_layout(Evas_Object *
-               pParent)
+        pParent)
 {
        if (!pParent) {
                VideoLogError("Parent is NULL");
@@ -252,8 +252,8 @@ static Evas_Object *_vp_zoom_guide_create_item_layout(Evas_Object *
        }
 
        bRet =
-               elm_layout_file_set(pObj, VP_PLAY_ZOOM_GUIDE_EDJ_PATH,
-                                   VP_PLAY_EDJ_GROUP_ZOOM_GUIDE_ITEM);
+           elm_layout_file_set(pObj, VP_PLAY_ZOOM_GUIDE_EDJ_PATH,
+                               VP_PLAY_EDJ_GROUP_ZOOM_GUIDE_ITEM);
        if (bRet != EINA_TRUE) {
                VideoLogError("elm_layout_file_set fail");
                return NULL;
@@ -276,14 +276,14 @@ static bool _vp_zoom_guide_init_layout(ZoomGuideWidget *pZoomGuideWidget)
        Evas_Object *pParent = pZoomGuideWidget->pParent;
 
        pZoomGuideWidget->pLayout =
-               _vp_zoom_guide_create_layout(pParent, (void *) pZoomGuideWidget);
+           _vp_zoom_guide_create_layout(pParent, (void *) pZoomGuideWidget);
        if (pZoomGuideWidget->pLayout == NULL) {
                VideoLogError("_vp_zoom_guide_create_layout is fail");
                return FALSE;
        }
 
        pZoomGuideWidget->pItemLayout =
-               _vp_zoom_guide_create_item_layout(pZoomGuideWidget->pLayout);
+           _vp_zoom_guide_create_item_layout(pZoomGuideWidget->pLayout);
        if (pZoomGuideWidget->pItemLayout == NULL) {
                VideoLogError("_vp_zoom_guide_create_item_layout is fail");
                return FALSE;
@@ -381,7 +381,7 @@ Evas_Object *vp_zoom_guide_get_object(zoom_guide_handle pWidgetHandle)
 }
 
 bool vp_zoom_guide_set_zoom_value(zoom_guide_handle pWidgetHandle,
-                                 double fZoomVal)
+                                  double fZoomVal)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -398,7 +398,7 @@ bool vp_zoom_guide_set_zoom_value(zoom_guide_handle pWidgetHandle,
 }
 
 bool vp_zoom_guide_get_zoom_value(zoom_guide_handle pWidgetHandle,
-                                 double *fZoomVal)
+                                  double *fZoomVal)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -413,7 +413,7 @@ bool vp_zoom_guide_get_zoom_value(zoom_guide_handle pWidgetHandle,
 }
 
 bool vp_zoom_guide_set_move_position(zoom_guide_handle pWidgetHandle,
-                                    double fPosX, double fPosY)
+                                     double fPosX, double fPosY)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -448,7 +448,7 @@ bool vp_zoom_guide_set_move_position(zoom_guide_handle pWidgetHandle,
 
 
 bool vp_zoom_guide_get_move_position(zoom_guide_handle pWidgetHandle,
-                                    double *fPosX, double *fPosY)
+                                     double *fPosX, double *fPosY)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -464,7 +464,7 @@ bool vp_zoom_guide_get_move_position(zoom_guide_handle pWidgetHandle,
 }
 
 bool vp_zoom_guide_get_real_position(zoom_guide_handle pWidgetHandle,
-                                    double *fPosX, double *fPosY)
+                                     double *fPosX, double *fPosY)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
index f6611a8..5d1bd5c 100644 (file)
@@ -162,31 +162,30 @@ typedef struct _MultiView {
 } MultiView;
 
 static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
-               bool bCheckDRM);
+                        bool bCheckDRM);
 static void _vp_play_multi_view_on_next_play(MultiView *pMultiView,
-               bool bManual);
+                        bool bManual);
 static void _vp_play_multi_view_on_prev_play(MultiView *pMultiView,
-               bool bManual, bool bVoice);
+                        bool bManual, bool bVoice);
 static void _vp_play_multi_view_set_preview(MultiView *pMultiView);
 static void _vp_play_multi_view_set_played_time(MultiView *pMultiView);
 static bool _vp_play_multi_view_check_during_call(MultiView *pMultiView);
 
 static Evas_Object *_vp_play_multi_view_create_image_sink(void *pParent,
-               void
-               *pUserData);
+                        void *pUserData);
 
 static void _vp_play_multi_view_set_play_state(MultiView *pMultiView);
 static void _vp_play_multi_view_show_layout(MultiView *pMultiView);
 static void _vp_play_multi_view_hide_layout(MultiView *pMultiView);
 static void _vp_play_multi_view_create_layout_hide_timer(MultiView *
-               pMultiView);
+                        pMultiView);
 static void _vp_play_multi_view_destroy_handle(MultiView *pMultiView);
 static void _vp_play_multi_view_speed_for_steps(MultiView *pMultiView,
-               bool bSpeedFF);
+                        bool bSpeedFF);
 
 //Focus UI
 static void _vp_play_multi_view_set_button_focus_sequence(MultiView *
-               pMultiView);
+                        pMultiView);
 
 /* callback functions */
 
@@ -254,17 +253,17 @@ static Eina_Bool __vp_multi_speed_timer_cb(void *pUserData)
        int nStep = (int) pow(2.0, (double)(nSeedVal - 1));
 
        VideoLogWarning("pMultiView->nSpeedValue : %d",
-                       pMultiView->nSpeedValue);
+                       pMultiView->nSpeedValue);
        if (pMultiView->nSpeedValue >= 2) {
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_SIGNAL_MAIN_SPEED_SHOW, "*");
+                                      VP_MULTI_SIGNAL_MAIN_SPEED_SHOW, "*");
        } else {
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
                if (pMultiView->bManualPause == FALSE) {
                        vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
                        if (!vp_mm_player_get_state
-                                       (pMultiView->pPlayerHandle, &nState)) {
+                               (pMultiView->pPlayerHandle, &nState)) {
                                VideoLogWarning("vp_mm_player_get_state is fail");
                        }
 
@@ -286,7 +285,7 @@ static Eina_Bool __vp_multi_speed_timer_cb(void *pUserData)
        char szTxt[5] = { 0, };
        snprintf(szTxt, 5, "%d X", nStep);
        elm_object_part_text_set(pMultiView->pLayout,
-                                VP_PLAY_PART_MULTI_SPEED_TXT, szTxt);
+                                VP_PLAY_PART_MULTI_SPEED_TXT, szTxt);
 
        if (pMultiView->bSeekComplete == FALSE) {
                VideoLogError("bSeekComplete is fail");
@@ -313,16 +312,16 @@ static Eina_Bool __vp_multi_speed_timer_cb(void *pUserData)
        int nCurPosition = 0;
 
        if (!vp_mm_player_get_position
-                       (pMultiView->pPlayerHandle, &nCurPosition)) {
+               (pMultiView->pPlayerHandle, &nCurPosition)) {
                VideoLogError("vp_mm_player_get_position is fail");
                return EINA_TRUE;
        }
 
        if (pMultiView->nDuration <= nCurPosition) {
                VideoLogError("nCurPosition : %d, Duration : %d", nCurPosition,
-                             pMultiView->nDuration);
+                             pMultiView->nDuration);
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
                VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
                _vp_play_multi_view_on_next_play(pMultiView, FALSE);
                return EINA_FALSE;
@@ -330,13 +329,13 @@ static Eina_Bool __vp_multi_speed_timer_cb(void *pUserData)
 
        if (nCurPosition <= 0 && pMultiView->bSpeedFF == FALSE) {
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
 
                if (pMultiView->bManualPause == FALSE
-                               && pMultiView->bSpeedDown == FALSE) {
+                       && pMultiView->bSpeedDown == FALSE) {
                        vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
                        if (!vp_mm_player_get_state
-                                       (pMultiView->pPlayerHandle, &nState)) {
+                               (pMultiView->pPlayerHandle, &nState)) {
                                VideoLogWarning("vp_mm_player_get_state is fail");
                        }
 
@@ -368,7 +367,7 @@ static Eina_Bool __vp_multi_speed_timer_cb(void *pUserData)
        }
 
        if (vp_mm_player_set_position
-                       (pMultiView->pPlayerHandle, nSetPosition)) {
+               (pMultiView->pPlayerHandle, nSetPosition)) {
                pMultiView->bSeekComplete = FALSE;
                pMultiView->nCurPosition = nSetPosition;
        }
@@ -377,8 +376,8 @@ static Eina_Bool __vp_multi_speed_timer_cb(void *pUserData)
 }
 
 static void __vp_multi_error_popup_time_out_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -393,8 +392,8 @@ static void __vp_multi_error_popup_time_out_cb(void *pUserData,
 }
 
 static void __vp_multi_drm_yes_button_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pObj == NULL) {
                VideoLogError("pUserData is NULL");
@@ -410,8 +409,8 @@ static void __vp_multi_drm_yes_button_cb(void *pUserData,
 }
 
 static void __vp_multi_drm_no_button_cb(void *pUserData,
-                                       Evas_Object *pObj,
-                                       void *pEventInfo)
+                                        Evas_Object *pObj,
+                                        void *pEventInfo)
 {
        if (pObj == NULL) {
                VideoLogError("pUserData is NULL");
@@ -435,7 +434,7 @@ static void __vp_multi_view_prepare_cb(void *pUserData)
 
        if (pMultiView->pPreparePipe != NULL) {
                ecore_pipe_write(pMultiView->pPreparePipe, pMultiView,
-                                sizeof(MultiView));
+                                sizeof(MultiView));
        }
 }
 
@@ -454,17 +453,17 @@ static void __vp_multi_view_completed_cb(void *pUserData)
        }
 
        if (pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-                       pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
-                       pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
-                       pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL) {
+               pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
+               pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
+               pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL) {
                vp_media_contents_set_played_position(pMultiView->szMediaURL, 0);
        } else if (pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
        }
        vp_mm_player_unrealize(pMultiView->pPlayerHandle);
 
        if (pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_MESSAGE ||
-                       pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
-                       pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
+               pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
+               pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
                if (pPlayView->pFunc == NULL) {
                        VideoLogError("pPlayView pFunc is NULL");
                        return;
@@ -523,13 +522,13 @@ static void __vp_multi_view_seek_completed_cb(void *pUserData)
        }
 
        if (pMultiView->bManualPause == FALSE &&
-                       pMultiView->pSpeedTimer == NULL) {
+               pMultiView->pSpeedTimer == NULL) {
                vp_mm_player_play(pMultiView->pPlayerHandle);
        }
 
        if (!vp_mm_player_set_subtitle_position
-                       (pMultiView->pPlayerHandle,
-                        pMultiView->fSubtitleSyncValue * 1000)) {
+               (pMultiView->pPlayerHandle,
+                pMultiView->fSubtitleSyncValue * 1000)) {
                VideoLogError("vp_mm_player_set_subtitle_position is fail");
        }
 
@@ -538,7 +537,7 @@ static void __vp_multi_view_seek_completed_cb(void *pUserData)
 }
 
 static void __vp_multi_view_interrupted_cb(vp_mm_player_interrupt_t nCode,
-               void *pUserData)
+                        void *pUserData)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -607,7 +606,7 @@ static void __vp_multi_view_interrupted_cb(vp_mm_player_interrupt_t nCode,
 }
 
 static void __vp_multi_view_error_cb(vp_mm_player_error_t nError,
-                                    void *pUserData)
+                                     void *pUserData)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -704,15 +703,15 @@ static bool _vp_play_multi_view_create_loading_ani(MultiView *pMultiView)
        }
 
        pMultiView->pLoadingAni =
-               vp_play_loading_ani_create(pParent, VIDEO_LOADING_SIZE_LARGE);
+           vp_play_loading_ani_create(pParent, VIDEO_LOADING_SIZE_LARGE);
        if (pMultiView->pLoadingAni == NULL) {
                VideoLogError("pLoadingAni create fail");
                return FALSE;
        }
 
        elm_object_part_content_set(pParent,
-                                   VP_PLAY_SWALLOW_MULTI_LOADING_ANI,
-                                   pMultiView->pLoadingAni);
+                                   VP_PLAY_SWALLOW_MULTI_LOADING_ANI,
+                                   pMultiView->pLoadingAni);
 
        return TRUE;
 }
@@ -770,8 +769,8 @@ static void __vp_multi_view_buffering_cb(int nPercent, void *pUserData)
 }
 
 static void __vp_multi_view_subtitle_updated_cb(unsigned long nDuration,
-               char *text,
-               void *pUserData)
+                        char *text,
+                        void *pUserData)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -792,8 +791,8 @@ static void __vp_multi_view_subtitle_updated_cb(unsigned long nDuration,
        double dTimeInterval = (double) nDuration / (double) 1000;
 
        pMultiView->pSubtitleTimer = ecore_timer_add(dTimeInterval,
-                                    __vp_multi_subtitle_timer_cb,
-                                    (void *) pMultiView);
+                                    __vp_multi_subtitle_timer_cb,
+                                    (void *) pMultiView);
 
        vp_play_subtitle_set_text(pMultiView->pSubtitle, text);
 
@@ -801,7 +800,7 @@ static void __vp_multi_view_subtitle_updated_cb(unsigned long nDuration,
 }
 
 static void __vp_multi_view_pd_message_cb(vp_mm_player_pd_message_t nType,
-               void *pUserData)
+        void *pUserData)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -811,7 +810,7 @@ static void __vp_multi_view_pd_message_cb(vp_mm_player_pd_message_t nType,
 }
 
 static void __vp_multi_view_missed_plugin_cb(vp_mm_player_missed_plugin_t
-               nType, void *pUserData)
+                        nType, void *pUserData)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -829,7 +828,7 @@ static void __vp_multi_view_missed_plugin_cb(vp_mm_player_missed_plugin_t
 }
 
 static void __vp_multi_view_image_buffer_cb(char *pBuffer, int nSize,
-               void *pUserData)
+                        void *pUserData)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -841,7 +840,7 @@ static void __vp_multi_view_image_buffer_cb(char *pBuffer, int nSize,
        MultiView *pMultiView = (MultiView *) pUserData;
        if (pMultiView->pImageBufferObj) {
                elm_object_part_content_unset(pMultiView->pLayout,
-                                             VP_PLAY_SWALLOW_MULTI_IMAGE_BUFFER);
+                                             VP_PLAY_SWALLOW_MULTI_IMAGE_BUFFER);
                VP_EVAS_DEL(pMultiView->pImageBufferObj);
        }
 
@@ -850,27 +849,27 @@ static void __vp_multi_view_image_buffer_cb(char *pBuffer, int nSize,
        pMultiView->pImageBufferObj = elm_image_add(pMultiView->pLayout);
 
        elm_image_file_set(pMultiView->pImageBufferObj,
-                          VP_PLAY_IMAGE_BUFFER_PATH, NULL);
+                          VP_PLAY_IMAGE_BUFFER_PATH, NULL);
 
        elm_image_resizable_set(pMultiView->pImageBufferObj, EINA_TRUE,
-                               EINA_TRUE);
+                               EINA_TRUE);
 
        evas_object_size_hint_weight_set(pMultiView->pImageBufferObj,
-                                        EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pMultiView->pImageBufferObj,
-                                       EVAS_HINT_FILL, EVAS_HINT_FILL);
+                                       EVAS_HINT_FILL, EVAS_HINT_FILL);
 
        evas_object_show(pMultiView->pImageBufferObj);
 
        elm_object_part_content_set(pMultiView->pLayout,
-                                   VP_PLAY_SWALLOW_MULTI_IMAGE_BUFFER,
-                                   pMultiView->pImageBufferObj);
+                                   VP_PLAY_SWALLOW_MULTI_IMAGE_BUFFER,
+                                   pMultiView->pImageBufferObj);
 }
 
 static void __vp_play_multi_view_imagesink_resize_cb(void *pUserData,
-               Evas *pEvas,
-               Evas_Object *pObj,
-               void *pEvent)
+                        Evas *pEvas,
+                        Evas_Object *pObj,
+                        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("[ERR] No Exist pUserData.");
@@ -885,13 +884,13 @@ static void __vp_play_multi_view_imagesink_resize_cb(void *pUserData,
        Evas_Coord_Rectangle nCurRect = { 0, };
 
        evas_object_geometry_get(pObj, &nCurRect.x, &nCurRect.y, &nCurRect.w,
-                                &nCurRect.h);
+                                &nCurRect.h);
 //      evas_object_image_fill_set(pObj, 0, 0, nCurRect.w, nCurRect.h);
 //      evas_object_image_size_set(pObj, nCurRect.w, nCurRect.h);
 
        if (nCurRect.x != nOldRect.x ||
-                       nCurRect.y != nOldRect.y ||
-                       nCurRect.w != nOldRect.w || nCurRect.h != nOldRect.h) {
+               nCurRect.y != nOldRect.y ||
+               nCurRect.w != nOldRect.w || nCurRect.h != nOldRect.h) {
                VideoLogWarning("Change Position");
        }
 
@@ -908,7 +907,7 @@ static void __vp_play_multi_view_imagesink_resize_cb(void *pUserData,
 
                        PlayView *pPlayView = pMultiView->pPlayView;
                        elm_win_screen_size_get(pPlayView->pWin, NULL, NULL, &nWinW,
-                                               &nWinH);
+                                               &nWinH);
 
                        fZoom = (float)((float)(nCurRect.w) / (float)(nWinW));
 
@@ -922,9 +921,9 @@ static void __vp_play_multi_view_imagesink_resize_cb(void *pUserData,
 
 #ifdef ENABLE_MULTI_VEIW
 static void __vp_play_multi_view_layout_mouse_down_cb(void *pUserData,
-               Evas *e,
-               Evas_Object *pObj,
-               void *pEvent)
+                        Evas *e,
+                        Evas_Object *pObj,
+                        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -934,10 +933,10 @@ static void __vp_play_multi_view_layout_mouse_down_cb(void *pUserData,
        MultiView *pMultiView = (MultiView *) pUserData;
 
        Evas_Event_Mouse_Down *pMouseDownEvent =
-               (Evas_Event_Mouse_Down *) pEvent;
+           (Evas_Event_Mouse_Down *) pEvent;
        Evas_Coord_Rectangle nCurRect = { 0, };
        evas_object_geometry_get(pObj, &nCurRect.x, &nCurRect.y, &nCurRect.w,
-                                &nCurRect.h);
+                                &nCurRect.h);
 
 
        if (pMultiView->bIsRealize == FALSE) {
@@ -945,28 +944,27 @@ static void __vp_play_multi_view_layout_mouse_down_cb(void *pUserData,
        }
 
        if (pMouseDownEvent->canvas.x > nCurRect.w - VP_MULTI_RESIZE_TERM &&
-                       pMouseDownEvent->canvas.y > nCurRect.h - VP_MULTI_RESIZE_TERM) {
+               pMouseDownEvent->canvas.y > nCurRect.h - VP_MULTI_RESIZE_TERM) {
 
                evas_object_size_hint_min_set(pMultiView->pWin,
-                                             VP_MULTI_DEFAULT_WIDTH,
-                                             VP_MULTI_DEFAULT_HEIGHT);
+                                             VP_MULTI_DEFAULT_WIDTH,
+                                             VP_MULTI_DEFAULT_HEIGHT);
                int x = 0;
                int y = 0;
                ecore_x_pointer_last_xy_get(&x, &y);
                ecore_x_mouse_up_send(pMultiView->nXwinID, x, y, 1);
                ecore_x_pointer_ungrab();
                ecore_x_netwm_moveresize_request_send(pMultiView->nXwinID, x, y,
-                                                     ECORE_X_NETWM_DIRECTION_SIZE_BR,
-                                                     1);
+                                                     ECORE_X_NETWM_DIRECTION_SIZE_BR,
+                                                     1);
        }
 
 }
 #endif
 
 static Evas_Event_Flags __vp_multi_view_gesture_n_tab_start_cb(void
-               *pUserData,
-               void
-               *pEventInfo)
+                        *pUserData,
+                        void *pEventInfo)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -990,9 +988,8 @@ static Evas_Event_Flags __vp_multi_view_gesture_n_tab_start_cb(void
 }
 
 static Evas_Event_Flags __vp_multi_view_gesture_n_tab_end_cb(void
-               *pUserData,
-               void
-               *pEventInfo)
+                        *pUserData,
+                        void *pEventInfo)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -1024,9 +1021,8 @@ static Evas_Event_Flags __vp_multi_view_gesture_n_tab_end_cb(void
 }
 
 static Evas_Event_Flags __vp_multi_view_gesture_n_tab_abort_cb(void
-               *pUserData,
-               void
-               *pEventInfo)
+                        *pUserData,
+                        void *pEventInfo)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -1047,8 +1043,8 @@ static Evas_Event_Flags __vp_multi_view_gesture_n_tab_abort_cb(void
 }
 
 static Eina_Bool __vp_play_multi_view_mouse_down_cb(void *pUserData,
-               int nType,
-               void *pEvent)
+                        int nType,
+                        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("[ERR] No Exist pUserData.");
@@ -1078,7 +1074,7 @@ static Eina_Bool __vp_play_multi_view_mouse_down_cb(void *pUserData,
 
        if (pMultiView->nMouseButtons == 0) {
                VideoLogWarning("Invalid Mouse button value : %d",
-                               pMultiView->nMouseButtons);
+                               pMultiView->nMouseButtons);
                pMultiView->nMouseButtons = 1;
        }
 
@@ -1087,7 +1083,7 @@ static Eina_Bool __vp_play_multi_view_mouse_down_cb(void *pUserData,
 }
 
 static Eina_Bool __vp_play_multi_view_mouse_up_cb(void *pUserData,
-               int nType, void *pEvent)
+                        int nType, void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("[ERR] No Exist pUserData.");
@@ -1119,8 +1115,8 @@ static Eina_Bool __vp_play_multi_view_mouse_up_cb(void *pUserData,
 }
 
 static Eina_Bool __vp_play_multi_view_mouse_move_cb(void *pUserData,
-               int nType,
-               void *pEvent)
+                        int nType,
+                        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("[ERR] No Exist pUserData.");
@@ -1146,10 +1142,10 @@ static Eina_Bool __vp_play_multi_view_mouse_move_cb(void *pUserData,
        }
 
        double l =
-               sqrt(pow
-                    ((float)(pMultiView->nMousePosX - pMouseEvent->root.x),
-                     2) + pow((float)(pMultiView->nMousePosY -
-                                      pMouseEvent->root.y), 2));
+           sqrt(pow
+                ((float)(pMultiView->nMousePosX - pMouseEvent->root.x),
+                 2) + pow((float)(pMultiView->nMousePosY -
+                                  pMouseEvent->root.y), 2));
 
        if (l >= 30.0f && pMouseEvent->multi.device == 0) {
                int nX = 0;
@@ -1163,12 +1159,12 @@ static Eina_Bool __vp_play_multi_view_mouse_move_cb(void *pUserData,
                }
 
                ecore_x_mouse_up_send(pMultiView->nXwinID, nX, nY,
-                                     pMultiView->nMouseButtons);
+                                     pMultiView->nMouseButtons);
                ecore_x_pointer_ungrab();
 
                ecore_x_netwm_moveresize_request_send(pMultiView->nXwinID, nX, nY,
-                                                     ECORE_X_NETWM_DIRECTION_MOVE,
-                                                     pMultiView->nMouseButtons);
+                                                     ECORE_X_NETWM_DIRECTION_MOVE,
+                                                     pMultiView->nMouseButtons);
 
                pMultiView->bMouseDown = FALSE;
                pMultiView->nMousePosX = 0;
@@ -1180,7 +1176,7 @@ static Eina_Bool __vp_play_multi_view_mouse_move_cb(void *pUserData,
 }
 
 static Eina_Bool __vp_play_multi_view_configure_cb(void *pUserData,
-               int type, void *pEvent)
+                        int type, void *pEvent)
 {
        Ecore_Evas *ee;
        Ecore_X_Event_Window_Configure *e;
@@ -1205,7 +1201,7 @@ static Eina_Bool __vp_play_multi_view_configure_cb(void *pUserData,
 
        e = pEvent;
        ee = ecore_evas_ecore_evas_get(evas_object_evas_get
-                                      (pMultiView->pWin));
+                                      (pMultiView->pWin));
 
        if (!ee) {
                VideoLogError("[ERR] Ecore_Evas has NULL");
@@ -1239,7 +1235,7 @@ static Eina_Bool __vp_play_multi_view_configure_cb(void *pUserData,
                bool bIsResize = FALSE;
 
                if (nCurRot == VIDEO_PLAY_ROTATE_NONE ||
-                               nCurRot == VIDEO_PLAY_ROTATE_180) {
+                       nCurRot == VIDEO_PLAY_ROTATE_180) {
                        if (e->x == 0 && e->y == 0 && e->w == ee_w && e->h == ee_h) {
                                bIsResize = TRUE;
                        }
@@ -1275,12 +1271,12 @@ static Eina_Bool __vp_play_multi_view_configure_cb(void *pUserData,
                        VP_EVAS_DISABLE_SET(pMultiView->pMinSizeBtn, EINA_TRUE);
 
                        pPlayView->pFunc->vp_play_func_change_mode(pPlayView,
-                                       VIDEO_PLAY_MODE_NORMAL_VIEW,
-                                       pMultiView->
-                                       szMediaURL,
-                                       nCurPos,
-                                       pMultiView->
-                                       bManualPause);
+                               VIDEO_PLAY_MODE_NORMAL_VIEW,
+                               pMultiView->
+                               szMediaURL,
+                               nCurPos,
+                               pMultiView->
+                               bManualPause);
                }
        }
 
@@ -1303,8 +1299,8 @@ static Eina_Bool __vp_play_multi_view_control_idler_cb(void *pUserData)
 }
 
 static void __vp_play_multi_view_btn_clicked_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+                        Evas_Object *pObj,
+                        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -1317,7 +1313,7 @@ static void __vp_play_multi_view_btn_clicked_cb(void *pUserData,
        vp_play_config_get_call_state(&bCallOn);
 
        if (pMultiView->pExitBtn != pObj && pMultiView->pFullSizeBtn != pObj
-                       && pMultiView->pMinSizeBtn != pObj && bCallOn) {
+               && pMultiView->pMinSizeBtn != pObj && bCallOn) {
                VideoLogWarning("Call is On");
                vp_play_util_status_noti_show
                (VP_PLAY_STRING_UNABLE_TO_PLAY_VIDEO_DURING_CALL);
@@ -1357,7 +1353,7 @@ static void __vp_play_multi_view_btn_clicked_cb(void *pUserData,
                VideoLogWarning("Full Size button cliicked");
 
                if (pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-                               pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+                       pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
 
                        if (!vp_play_util_local_file_check(pMultiView->szMediaURL)) {
                                /* popup show */
@@ -1421,15 +1417,15 @@ static void __vp_play_multi_view_btn_clicked_cb(void *pUserData,
                        _vp_play_multi_view_check_during_call(pMultiView);
 
                        if (pMultiView->bSeekComplete == FALSE
-                                       || pMultiView->pSpeedTimer) {
+                               || pMultiView->pSpeedTimer) {
                                pMultiView->bManualPause = FALSE;
                                VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
                        }
                        if (pMultiView->bIsRealize) {
                                if (!vp_mm_player_play(pMultiView->pPlayerHandle)) {
                                        VideoLogWarning("Resume Failed, %d, seek[%d]",
-                                                       pMultiView->nPlayerState,
-                                                       pMultiView->bSeekComplete);
+                                                       pMultiView->nPlayerState,
+                                                       pMultiView->bSeekComplete);
                                        if (!vp_play_util_check_streaming(pMultiView->szMediaURL) && pMultiView->nPlayerState != VP_MM_PLAYER_STATE_PLAYING && pMultiView->bSeekComplete == TRUE) {     /* vp_mm_player_play will be failed if it try in seeking */
                                                vp_play_util_status_noti_show
                                                (VP_PLAY_STRING_ERROR_UNABLE_PLAY);
@@ -1441,11 +1437,11 @@ static void __vp_play_multi_view_btn_clicked_cb(void *pUserData,
                }
 
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
                VP_EVAS_IDLER_DEL(pMultiView->pControlIdler);
                pMultiView->pControlIdler =
-                       ecore_idler_add(__vp_play_multi_view_control_idler_cb,
-                                       (void *) pMultiView);
+                   ecore_idler_add(__vp_play_multi_view_control_idler_cb,
+                                   (void *) pMultiView);
        } else if (pMultiView->pPrevBtn == pObj) {
                VideoLogWarning("Prev button cliicked");
                if (pMultiView->bIsRealize == FALSE) {
@@ -1478,8 +1474,8 @@ static void __vp_play_multi_view_btn_clicked_cb(void *pUserData,
 }
 
 static void __vp_play_multi_view_btn_press_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+                        Evas_Object *pObj,
+                        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -1496,66 +1492,66 @@ static void __vp_play_multi_view_btn_press_cb(void *pUserData,
                VP_EVAS_TIMER_DEL(pMultiView->pHideTimer);
                VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
                if (pMultiView->bHLSMode == FALSE) {
                        pMultiView->bSpeedFF = TRUE;
                        pMultiView->nSpeedValue = 1;
                        pMultiView->bSpeedDown = TRUE;
                        pMultiView->pSpeedTimer =
-                               ecore_timer_add(VP_MULTI_LONG_PRESS_TIMER_INTERVAL,
-                                               __vp_multi_speed_timer_cb,
-                                               (void *) pMultiView);
+                           ecore_timer_add(VP_MULTI_LONG_PRESS_TIMER_INTERVAL,
+                                           __vp_multi_speed_timer_cb,
+                                           (void *) pMultiView);
                }
        } else if (pObj == pMultiView->pPrevBtn) {
                VP_EVAS_TIMER_DEL(pMultiView->pHideTimer);
                VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
                if (pMultiView->bHLSMode == FALSE) {
                        pMultiView->bSpeedFF = FALSE;
                        pMultiView->nSpeedValue = 1;
                        pMultiView->bSpeedDown = TRUE;
                        pMultiView->pSpeedTimer =
-                               ecore_timer_add(VP_MULTI_LONG_PRESS_TIMER_INTERVAL,
-                                               __vp_multi_speed_timer_cb,
-                                               (void *) pMultiView);
+                           ecore_timer_add(VP_MULTI_LONG_PRESS_TIMER_INTERVAL,
+                                           __vp_multi_speed_timer_cb,
+                                           (void *) pMultiView);
                }
        } else if (pObj == pMultiView->pResizeBtn) {
                evas_object_size_hint_min_set(pMultiView->pWin,
-                                             VP_MULTI_DEFAULT_WIDTH,
-                                             VP_MULTI_DEFAULT_HEIGHT);
+                                             VP_MULTI_DEFAULT_WIDTH,
+                                             VP_MULTI_DEFAULT_HEIGHT);
                int x = 0;
                int y = 0;
                ecore_x_pointer_last_xy_get(&x, &y);
                ecore_x_mouse_up_send(pMultiView->nXwinID, x, y, 1);
                ecore_x_pointer_ungrab();
                ecore_x_netwm_moveresize_request_send(pMultiView->nXwinID, x, y,
-                                                     ECORE_X_NETWM_DIRECTION_SIZE_BR,
-                                                     1);
+                                                     ECORE_X_NETWM_DIRECTION_SIZE_BR,
+                                                     1);
        } else if (pObj == pMultiView->pExitBtn) {
                VP_EVAS_TIMER_DEL(pMultiView->pHideTimer);
                VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_VIEW_TITLE_CLOSE_BTN_PRESSED,
-                                      "*");
+                                      VP_MULTI_VIEW_TITLE_CLOSE_BTN_PRESSED,
+                                      "*");
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
        } else if (pObj == pMultiView->pFullSizeBtn) {
                VP_EVAS_TIMER_DEL(pMultiView->pHideTimer);
                VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_VIEW_TITLE_FULLSIZE_BTN_PRESSED,
-                                      "*");
+                                      VP_MULTI_VIEW_TITLE_FULLSIZE_BTN_PRESSED,
+                                      "*");
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
        } else if (pObj == pMultiView->pMinSizeBtn) {
                VP_EVAS_TIMER_DEL(pMultiView->pHideTimer);
                VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_VIEW_TITLE_MINIMIZE_BTN_PRESSED,
-                                      "*");
+                                      VP_MULTI_VIEW_TITLE_MINIMIZE_BTN_PRESSED,
+                                      "*");
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
        }
 
        pMultiView->bMouseDown = FALSE;
@@ -1564,8 +1560,8 @@ static void __vp_play_multi_view_btn_press_cb(void *pUserData,
 
 
 static void __vp_play_multi_view_btn_unpress_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+                        Evas_Object *pObj,
+                        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -1592,23 +1588,23 @@ static void __vp_play_multi_view_btn_unpress_cb(void *pUserData,
                _vp_play_multi_view_create_layout_hide_timer(pMultiView);
        } else if (pObj == pMultiView->pExitBtn) {
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_VIEW_TITLE_CLOSE_BTN_RELEASED,
-                                      "*");
+                                      VP_MULTI_VIEW_TITLE_CLOSE_BTN_RELEASED,
+                                      "*");
        } else if (pObj == pMultiView->pFullSizeBtn) {
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_VIEW_TITLE_FULLSIZE_BTN_RELEASED,
-                                      "*");
+                                      VP_MULTI_VIEW_TITLE_FULLSIZE_BTN_RELEASED,
+                                      "*");
        } else if (pObj == pMultiView->pMinSizeBtn) {
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_VIEW_TITLE_MINIMIZE_BTN_RELEASED,
-                                      "*");
+                                      VP_MULTI_VIEW_TITLE_MINIMIZE_BTN_RELEASED,
+                                      "*");
        }
 
 }
 
 static void __vp_play_multi_view_media_key_event_cb(vp_media_key_event_t
-               nKey, bool bRelease,
-               void *pUserData)
+                        nKey, bool bRelease,
+                        void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -1624,10 +1620,10 @@ static void __vp_play_multi_view_media_key_event_cb(vp_media_key_event_t
                if (bRelease) {
                        VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
                        elm_object_signal_emit(pMultiView->pLayout,
-                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
                        vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
                        if (!vp_mm_player_get_state
-                                       (pMultiView->pPlayerHandle, &nState)) {
+                               (pMultiView->pPlayerHandle, &nState)) {
                                VideoLogWarning("vp_mm_player_get_state is fail");
                        }
 
@@ -1649,14 +1645,14 @@ static void __vp_play_multi_view_media_key_event_cb(vp_media_key_event_t
        case VP_MEDIA_KEY_PREVIOUS:
                if (bRelease) {
                        elm_object_signal_emit(pMultiView->pLayout,
-                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
                        _vp_play_multi_view_on_prev_play(pMultiView, TRUE, FALSE);
                }
                break;
        case VP_MEDIA_KEY_NEXT:
                if (bRelease) {
                        elm_object_signal_emit(pMultiView->pLayout,
-                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
                        _vp_play_multi_view_on_next_play(pMultiView, TRUE);
                }
                break;
@@ -1672,7 +1668,7 @@ static void __vp_play_multi_view_media_key_event_cb(vp_media_key_event_t
                        VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
 
                        elm_object_signal_emit(pMultiView->pLayout,
-                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
 
                        if (pMultiView->bManualPause == FALSE) {
                                if (!vp_mm_player_play(pMultiView->pPlayerHandle)) {
@@ -1687,15 +1683,15 @@ static void __vp_play_multi_view_media_key_event_cb(vp_media_key_event_t
                        VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
 
                        elm_object_signal_emit(pMultiView->pLayout,
-                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
 
                        pMultiView->bSpeedFF = FALSE;
                        pMultiView->nSpeedValue = 1;
                        pMultiView->bSpeedDown = TRUE;
                        pMultiView->pSpeedTimer =
-                               ecore_timer_add(VP_MULTI_LONG_PRESS_TIMER_INTERVAL,
-                                               __vp_multi_speed_timer_cb,
-                                               (void *) pMultiView);
+                           ecore_timer_add(VP_MULTI_LONG_PRESS_TIMER_INTERVAL,
+                                           __vp_multi_speed_timer_cb,
+                                           (void *) pMultiView);
                }
                break;
        case VP_MEDIA_KEY_FASTFORWARD:
@@ -1710,7 +1706,7 @@ static void __vp_play_multi_view_media_key_event_cb(vp_media_key_event_t
                        VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
 
                        elm_object_signal_emit(pMultiView->pLayout,
-                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
 
                        if (pMultiView->bManualPause == FALSE) {
                                if (!vp_mm_player_play(pMultiView->pPlayerHandle)) {
@@ -1725,25 +1721,25 @@ static void __vp_play_multi_view_media_key_event_cb(vp_media_key_event_t
                        VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
 
                        elm_object_signal_emit(pMultiView->pLayout,
-                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
 
                        pMultiView->bSpeedFF = TRUE;
                        pMultiView->nSpeedValue = 1;
                        pMultiView->bSpeedDown = TRUE;
                        pMultiView->pSpeedTimer =
-                               ecore_timer_add(VP_MULTI_LONG_PRESS_TIMER_INTERVAL,
-                                               __vp_multi_speed_timer_cb,
-                                               (void *) pMultiView);
+                           ecore_timer_add(VP_MULTI_LONG_PRESS_TIMER_INTERVAL,
+                                           __vp_multi_speed_timer_cb,
+                                           (void *) pMultiView);
                }
                break;
        case VP_MEDIA_KEY_STOP:
                if (bRelease) {
                        VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
                        elm_object_signal_emit(pMultiView->pLayout,
-                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
                        vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
                        if (!vp_mm_player_get_state
-                                       (pMultiView->pPlayerHandle, &nState)) {
+                               (pMultiView->pPlayerHandle, &nState)) {
                                VideoLogWarning("vp_mm_player_get_state is fail");
                        }
 
@@ -1766,8 +1762,8 @@ static void __vp_play_multi_view_media_key_event_cb(vp_media_key_event_t
 }
 
 static void __vp_multi_view_exit_popup_yes_btn_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -1794,8 +1790,8 @@ static void __vp_multi_view_exit_popup_yes_btn_cb(void *pUserData,
 }
 
 static void __vp_multi_view_exit_popup_no_btn_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+                        Evas_Object *pObj,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -1819,11 +1815,11 @@ static void _vp_play_multi_view_check_exit_popup(MultiView *pMultiView)
 
        int w = 0, h = 0;
        pMultiView->pExitPopupWin =
-               elm_win_add(pMultiView->pWin, "VIDEO_MULTI_VIEW_EXIT_POPUP",
-                           ELM_WIN_POPUP_MENU);
+           elm_win_add(pMultiView->pWin, "VIDEO_MULTI_VIEW_EXIT_POPUP",
+                       ELM_WIN_POPUP_MENU);
        Ecore_Evas *ee =
-               ecore_evas_ecore_evas_get(evas_object_evas_get
-                                         (pMultiView->pExitPopupWin));
+           ecore_evas_ecore_evas_get(evas_object_evas_get
+                                     (pMultiView->pExitPopupWin));
        ecore_evas_name_class_set(ee, "APP_POPUP", "APP_POPUP");
        elm_win_alpha_set(pMultiView->pExitPopupWin, EINA_TRUE);
 
@@ -1833,18 +1829,18 @@ static void _vp_play_multi_view_check_exit_popup(MultiView *pMultiView)
 
        if (elm_win_wm_rotation_supported_get(pMultiView->pExitPopupWin)) {
                const int rots[4] = { APP_DEVICE_ORIENTATION_0,
-                                     APP_DEVICE_ORIENTATION_90,
-                                     APP_DEVICE_ORIENTATION_180,
-                                     APP_DEVICE_ORIENTATION_270
-                                   };
+                                     APP_DEVICE_ORIENTATION_90,
+                                     APP_DEVICE_ORIENTATION_180,
+                                     APP_DEVICE_ORIENTATION_270
+                                   };
                elm_win_wm_rotation_available_rotations_set(pMultiView->
-                               pExitPopupWin, rots,
-                               4);
+                       pExitPopupWin, rots,
+                       4);
        }
 
        /* pass '-1' value to this API then it will unset preferred rotation angle */
        elm_win_wm_rotation_preferred_rotation_set(pMultiView->pExitPopupWin,
-                       -1);
+               -1);
 
        evas_object_show(pMultiView->pExitPopupWin);
 
@@ -1854,24 +1850,23 @@ static void _vp_play_multi_view_check_exit_popup(MultiView *pMultiView)
        elm_object_style_set(cancel_btn, "popup_button/default");
        elm_object_text_set(cancel_btn, VP_PLAY_STRING_COM_CANCEL);
        elm_object_part_content_set(pMultiView->pPopup, "button1",
-                                   cancel_btn);
+                                   cancel_btn);
        evas_object_smart_callback_add(cancel_btn, "clicked",
-                                      __vp_multi_view_exit_popup_no_btn_cb,
-                                      pMultiView);
+                                      __vp_multi_view_exit_popup_no_btn_cb,
+                                      pMultiView);
        Evas_Object *ok_btn = elm_button_add(pMultiView->pPopup);
        elm_object_style_set(ok_btn, "popup_button/default");
        elm_object_text_set(ok_btn, VP_PLAY_STRING_COM_OK);
        elm_object_part_content_set(pMultiView->pPopup, "button2", ok_btn);
        evas_object_smart_callback_add(ok_btn, "clicked",
-                                      __vp_multi_view_exit_popup_yes_btn_cb,
-                                      pMultiView);
+                                      __vp_multi_view_exit_popup_yes_btn_cb,
+                                      pMultiView);
 
        evas_object_show(pMultiView->pPopup);
 }
 
 static Eina_Bool __vp_play_multi_view_back_key_event_cb(void *pUserData,
-               Elm_Object_Item *
-               pItem)
+                        Elm_Object_Item *pItem)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -1914,7 +1909,7 @@ static Eina_Bool __vp_play_multi_view_back_key_event_cb(void *pUserData,
 #if 1
 #endif
 static void _vp_play_multi_view_on_nocontents_mode(MultiView *pMultiView,
-               bool bShow)
+                        bool bShow)
 {
        if (pMultiView == NULL) {
                VideoLogError("pMultiView is NULL");
@@ -1929,16 +1924,16 @@ static void _vp_play_multi_view_on_nocontents_mode(MultiView *pMultiView,
                _vp_play_multi_view_hide_layout(pMultiView);
 
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_VIEW_SIGNAL_SHOW_NOCONTENTS, "*");
+                                      VP_MULTI_VIEW_SIGNAL_SHOW_NOCONTENTS, "*");
                edje_object_part_text_set(_EDJ(pMultiView->pLayout),
-                                         VP_PLAY_PART_MULTI_NOCONTENTS_TXT,
-                                         VP_PLAY_STRING_NO_VIDEOS);
+                                         VP_PLAY_PART_MULTI_NOCONTENTS_TXT,
+                                         VP_PLAY_STRING_NO_VIDEOS);
                pMultiView->bNoContentMode = TRUE;
        } else {
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_VIEW_SIGNAL_HIDE_NOCONTENTS, "*");
+                                      VP_MULTI_VIEW_SIGNAL_HIDE_NOCONTENTS, "*");
                edje_object_part_text_set(_EDJ(pMultiView->pLayout),
-                                         VP_PLAY_PART_MULTI_NOCONTENTS_TXT, "");
+                                         VP_PLAY_PART_MULTI_NOCONTENTS_TXT, "");
                pMultiView->bNoContentMode = FALSE;
        }
 }
@@ -1961,7 +1956,7 @@ static bool _vp_play_multi_view_check_during_call(MultiView *pMultiView)
 }
 
 static bool _vp_play_multi_view_check_drm(MultiView *pMultiView,
-               bool *bIsAvailablePlay)
+                        bool *bIsAvailablePlay)
 {
        if (pMultiView == NULL) {
                VideoLogError("pMultiView is NULL");
@@ -2008,11 +2003,11 @@ static bool _vp_play_multi_view_check_drm(MultiView *pMultiView,
                char *szTitle = NULL;
 
                szTitle =
-                       vp_play_util_get_title_from_path((char *) pMultiView->
-                                       szMediaURL);
+                   vp_play_util_get_title_from_path((char *) pMultiView->
+                                                    szMediaURL);
                szMessage =
-                       g_strdup_printf(VP_PLAY_STRING_DRM_CURRENTLY_LOCKED_UNLOCK_Q,
-                                       szTitle);
+                   g_strdup_printf(VP_PLAY_STRING_DRM_CURRENTLY_LOCKED_UNLOCK_Q,
+                                   szTitle);
 
                vp_play_util_status_noti_show(szMessage);
                _vp_play_multi_view_on_next_play(pMultiView, FALSE);
@@ -2027,7 +2022,7 @@ static bool _vp_play_multi_view_check_drm(MultiView *pMultiView,
        vp_drm_constraint_info stConstraintInfo = { 0, };
 
        if (!vp_drm_get_constarint_info
-                       (pMultiView->szMediaURL, &stConstraintInfo)) {
+               (pMultiView->szMediaURL, &stConstraintInfo)) {
                VideoLogError("vp_drm_get_constarint_info is fail");
                return FALSE;
        }
@@ -2035,21 +2030,21 @@ static bool _vp_play_multi_view_check_drm(MultiView *pMultiView,
        char *szMsg = NULL;
        char *szTitle = NULL;
        szTitle =
-               vp_play_util_get_title_from_path((char *)pMultiView->szMediaURL);
+           vp_play_util_get_title_from_path((char *)pMultiView->szMediaURL);
        bool bNotiPopup = FALSE;
 #ifdef ENABLE_DRM_FEATURE
        while (stConstraintInfo.constraints) {
                if (stConstraintInfo.constraints & VP_DRM_CONSTRAINT_COUNT) {
                        if (stConstraintInfo.remaining_count == 2) {
                                szMsg =
-                                       g_strdup_printf
-                                       (VP_PLAY_STRING_DRM_PS_2_MORE_TIME_START_NOW_Q,
-                                        szMsg);
+                                   g_strdup_printf
+                                   (VP_PLAY_STRING_DRM_PS_2_MORE_TIME_START_NOW_Q,
+                                    szMsg);
                        } else if (stConstraintInfo.remaining_count == 1) {
                                szMsg =
-                                       g_strdup_printf
-                                       (VP_PLAY_STRING_DRM_PS_1_MORE_TIME_START_NOW_Q,
-                                        szMsg);
+                                   g_strdup_printf
+                                   (VP_PLAY_STRING_DRM_PS_1_MORE_TIME_START_NOW_Q,
+                                    szMsg);
                        } else if (stConstraintInfo.remaining_count == 0) {
                                bNotiPopup = TRUE;
                        }
@@ -2068,12 +2063,12 @@ static bool _vp_play_multi_view_check_drm(MultiView *pMultiView,
                                bNotiPopup = TRUE;
                        } else {
                                int nDays =
-                                       stConstraintInfo.remaining_interval_sec /
-                                       VP_ACCUMULATED_DATE + 1;
+                                   stConstraintInfo.remaining_interval_sec /
+                                   VP_ACCUMULATED_DATE + 1;
                                szMsg =
-                                       g_strdup_printf
-                                       (VP_PLAY_STRING_DRM_PS_FOR_PD_DAYS_START_NOW_Q, szMsg,
-                                        nDays);
+                                   g_strdup_printf
+                                   (VP_PLAY_STRING_DRM_PS_FOR_PD_DAYS_START_NOW_Q, szMsg,
+                                    nDays);
                        }
                        break;
                }
@@ -2081,14 +2076,14 @@ static bool _vp_play_multi_view_check_drm(MultiView *pMultiView,
                if (stConstraintInfo.constraints & VP_DRM_CONSTRAINT_TIMED_COUNT) {
                        if (stConstraintInfo.remaining_timed_count == 2) {
                                szMsg =
-                                       g_strdup_printf
-                                       (VP_PLAY_STRING_DRM_PS_2_MORE_TIME_START_NOW_Q,
-                                        szMsg);
+                                   g_strdup_printf
+                                   (VP_PLAY_STRING_DRM_PS_2_MORE_TIME_START_NOW_Q,
+                                    szMsg);
                        } else if (stConstraintInfo.remaining_timed_count == 1) {
                                szMsg =
-                                       g_strdup_printf
-                                       (VP_PLAY_STRING_DRM_PS_1_MORE_TIME_START_NOW_Q,
-                                        szMsg);
+                                   g_strdup_printf
+                                   (VP_PLAY_STRING_DRM_PS_1_MORE_TIME_START_NOW_Q,
+                                    szMsg);
                        } else if (stConstraintInfo.remaining_timed_count == 0) {
                                bNotiPopup = TRUE;
                        }
@@ -2096,7 +2091,7 @@ static bool _vp_play_multi_view_check_drm(MultiView *pMultiView,
                }
 
                if (stConstraintInfo.
-                               constraints & VP_DRM_CONSTRAINT_ACCUMLATED_TIME) {
+                       constraints & VP_DRM_CONSTRAINT_ACCUMLATED_TIME) {
                        if (stConstraintInfo.remaining_acc_sec == 0) {
                                bNotiPopup = TRUE;
                        }
@@ -2112,15 +2107,15 @@ static bool _vp_play_multi_view_check_drm(MultiView *pMultiView,
 
                char *szMessage = NULL;
                szMessage =
-                       g_strdup_printf(VP_PLAY_STRING_DRM_CURRENTLY_LOCKED_UNLOCK_Q,
-                                       szTitle);
+                   g_strdup_printf(VP_PLAY_STRING_DRM_CURRENTLY_LOCKED_UNLOCK_Q,
+                                   szTitle);
 
                pMultiView->pPopup =
-                       vp_popup_create(pPlayView->pWin,
-                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                       VP_PLAY_STRING_COM_ERROR, szMessage, 3.0,
-                                       __vp_multi_error_popup_time_out_cb, NULL,
-                                       NULL, pMultiView);
+                   vp_popup_create(pPlayView->pWin,
+                                   POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                   VP_PLAY_STRING_COM_ERROR, szMessage, 3.0,
+                                   __vp_multi_error_popup_time_out_cb, NULL,
+                                   NULL, pMultiView);
 
                evas_object_show(pMultiView->pPopup);
 
@@ -2140,10 +2135,10 @@ static bool _vp_play_multi_view_check_drm(MultiView *pMultiView,
                pMultiView->pPopup = NULL;
 
                pMultiView->pPopup =
-                       vp_popup_create(pPlayView->pWin,
-                                       POPUP_STYLE_DEFAULT_WITH_CANCEL_BTN,
-                                       VP_PLAY_STRING_COM_ERROR, szMsg, 0.0, NULL,
-                                       NULL, NULL, pMultiView);
+                   vp_popup_create(pPlayView->pWin,
+                                   POPUP_STYLE_DEFAULT_WITH_CANCEL_BTN,
+                                   VP_PLAY_STRING_COM_ERROR, szMsg, 0.0, NULL,
+                                   NULL, NULL, pMultiView);
                evas_object_show(pMultiView->pPopup);
 
                Evas_Object *pButton1 = NULL;
@@ -2152,25 +2147,25 @@ static bool _vp_play_multi_view_check_drm(MultiView *pMultiView,
                pButton1 = elm_button_add(pMultiView->pPopup);
                elm_object_style_set(pButton1, "popup_button/default");
                elm_object_domain_translatable_text_set(pButton1,
-                                                       VP_SYS_STR_PREFIX,
-                                                       VP_PLAY_STRING_COM_YES_IDS);
+                                                       VP_SYS_STR_PREFIX,
+                                                       VP_PLAY_STRING_COM_YES_IDS);
                elm_object_part_content_set(pMultiView->pPopup, "button1",
-                                           pButton1);
+                                           pButton1);
                evas_object_smart_callback_add(pButton1, "clicked",
-                                              __vp_multi_drm_yes_button_cb,
-                                              (void *) pMultiView);
+                                              __vp_multi_drm_yes_button_cb,
+                                              (void *) pMultiView);
 
                pButton2 = elm_button_add(pMultiView->pPopup);
                elm_object_style_set(pButton2, "popup_button/default");
                elm_object_domain_translatable_text_set(pButton2,
-                                                       VP_SYS_STR_PREFIX,
-                                                       VP_PLAY_STRING_COM_NO_IDS);
+                                                       VP_SYS_STR_PREFIX,
+                                                       VP_PLAY_STRING_COM_NO_IDS);
                elm_object_part_content_set(pMultiView->pPopup, "button2",
-                                           pButton2);
+                                           pButton2);
 
                evas_object_smart_callback_add(pButton2, "clicked",
-                                              __vp_multi_drm_no_button_cb,
-                                              (void *) pMultiView);
+                                              __vp_multi_drm_no_button_cb,
+                                              (void *) pMultiView);
 
 
                VP_FREE(szMsg);
@@ -2200,7 +2195,7 @@ static void _vp_play_multi_view_free_subtitle_list(GList *pSubtitleList)
 #endif
 
 static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
-               bool bCheckDRM)
+                        bool bCheckDRM)
 {
 
        if (!pMultiView) {
@@ -2222,11 +2217,11 @@ static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
 
        VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
        elm_object_signal_emit(pMultiView->pLayout,
-                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                              VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
 
        if (pMultiView->pImageBufferObj) {
                elm_object_part_content_unset(pMultiView->pLayout,
-                                             VP_PLAY_SWALLOW_MULTI_IMAGE_BUFFER);
+                                             VP_PLAY_SWALLOW_MULTI_IMAGE_BUFFER);
                VP_EVAS_DEL(pMultiView->pImageBufferObj);
        }
 
@@ -2251,8 +2246,8 @@ static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
 
        VP_EVAS_DEL(pMultiView->pVideoSink);
        pMultiView->pVideoSink =
-               _vp_play_multi_view_create_image_sink(pMultiView->pLayout,
-                               (void *) pMultiView);
+           _vp_play_multi_view_create_image_sink(pMultiView->pLayout,
+                   (void *) pMultiView);
        if (pMultiView->pVideoSink == NULL) {
                VideoLogError
                ("_vp_play_multi_view_create_image_sink handle is null");
@@ -2260,7 +2255,7 @@ static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
        }
 
        if (pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-                       pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+               pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
 
                if (pMultiView->szMediaURL == NULL) {
                        _vp_play_multi_view_on_nocontents_mode(pMultiView, TRUE);
@@ -2284,10 +2279,10 @@ static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
 
        if (bCheckDRM) {
                if (pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-                               pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+                       pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
                        bool bIsAvailablePlay = TRUE;
                        if (_vp_play_multi_view_check_drm
-                                       (pMultiView, &bIsAvailablePlay)) {
+                               (pMultiView, &bIsAvailablePlay)) {
                                if (bIsAvailablePlay == FALSE) {
                                        VideoLogWarning("Wait Drm popup result");
                                        return TRUE;
@@ -2298,19 +2293,19 @@ static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
 
        if (pMultiView->nStartPosition == 0) {
                if (pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_STORE ||
-                               pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
-                               pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
+                       pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
+                       pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
                        int nStartPos = 0;
                        if (vp_media_contents_get_played_position
-                                       (pMultiView->szMediaURL, &nStartPos)) {
+                               (pMultiView->szMediaURL, &nStartPos)) {
                                pMultiView->nStartPosition = nStartPos;
                        }
                }
        }
 
        if (pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_STORE ||
-                       pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
-                       pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
+               pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
+               pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
                vp_media_contents_set_played_time(pMultiView->szMediaURL);
        }
 
@@ -2323,76 +2318,76 @@ static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
                return FALSE;
        }
        if (!vp_mm_player_set_user_param
-                       (pMultiView->pPlayerHandle, (void *) pMultiView)) {
+               (pMultiView->pPlayerHandle, (void *) pMultiView)) {
                VideoLogError("vp_mm_player_set_user_param fail");
                return FALSE;
        }
 
        if (!vp_mm_player_set_callback
-                       (pMultiView->pPlayerHandle, VP_MM_PLAYER_REALIZE_ASYNC_CB,
-                        (void *) __vp_multi_view_prepare_cb)) {
+               (pMultiView->pPlayerHandle, VP_MM_PLAYER_REALIZE_ASYNC_CB,
+                (void *) __vp_multi_view_prepare_cb)) {
                VideoLogError("vp_mm_player_set_callback fail");
                return FALSE;
        }
 
        if (!vp_mm_player_set_callback
-                       (pMultiView->pPlayerHandle, VP_MM_PLAYER_SEEK_COMPLETE_CB,
-                        (void *) __vp_multi_view_seek_completed_cb)) {
+               (pMultiView->pPlayerHandle, VP_MM_PLAYER_SEEK_COMPLETE_CB,
+                (void *) __vp_multi_view_seek_completed_cb)) {
                VideoLogError("vp_mm_player_set_callback fail");
                return FALSE;
        }
 
        if (!vp_mm_player_set_callback
-                       (pMultiView->pPlayerHandle, VP_MM_PLAYER_END_OF_STREAM_CB,
-                        (void *) __vp_multi_view_completed_cb)) {
+               (pMultiView->pPlayerHandle, VP_MM_PLAYER_END_OF_STREAM_CB,
+                (void *) __vp_multi_view_completed_cb)) {
                VideoLogError("vp_mm_player_set_callback fail");
                return FALSE;
        }
 
        if (!vp_mm_player_set_callback
-                       (pMultiView->pPlayerHandle, VP_MM_PLAYER_INTERRUPT_CB,
-                        (void *) __vp_multi_view_interrupted_cb)) {
+               (pMultiView->pPlayerHandle, VP_MM_PLAYER_INTERRUPT_CB,
+                (void *) __vp_multi_view_interrupted_cb)) {
                VideoLogError("vp_mm_player_set_callback fail");
                return FALSE;
        }
 
        if (!vp_mm_player_set_callback
-                       (pMultiView->pPlayerHandle, VP_MM_PLAYER_ERROR_CB,
-                        (void *) __vp_multi_view_error_cb)) {
+               (pMultiView->pPlayerHandle, VP_MM_PLAYER_ERROR_CB,
+                (void *) __vp_multi_view_error_cb)) {
                VideoLogError("vp_mm_player_set_callback fail");
                return FALSE;
        }
 
        if (!vp_mm_player_set_callback
-                       (pMultiView->pPlayerHandle, VP_MM_PLAYER_BUFFERING_CB,
-                        (void *) __vp_multi_view_buffering_cb)) {
+               (pMultiView->pPlayerHandle, VP_MM_PLAYER_BUFFERING_CB,
+                (void *) __vp_multi_view_buffering_cb)) {
                VideoLogError("vp_mm_player_set_callback fail");
                return FALSE;
        }
 
        if (!vp_mm_player_set_callback
-                       (pMultiView->pPlayerHandle, VP_MM_PLAYER_SUBTITLE_UPDATE_CB,
-                        (void *) __vp_multi_view_subtitle_updated_cb)) {
+               (pMultiView->pPlayerHandle, VP_MM_PLAYER_SUBTITLE_UPDATE_CB,
+                (void *) __vp_multi_view_subtitle_updated_cb)) {
                VideoLogError("vp_mm_player_set_callback fail");
                return FALSE;
        }
 
        if (!vp_mm_player_set_callback
-                       (pMultiView->pPlayerHandle, VP_MM_PLAYER_PD_MESSAGE_CB,
-                        (void *) __vp_multi_view_pd_message_cb)) {
+               (pMultiView->pPlayerHandle, VP_MM_PLAYER_PD_MESSAGE_CB,
+                (void *) __vp_multi_view_pd_message_cb)) {
                VideoLogError("vp_mm_player_set_callback fail");
                return FALSE;
        }
 
        if (!vp_mm_player_set_callback
-                       (pMultiView->pPlayerHandle, VP_MM_PLAYER_MISSED_PLUGIN_CB,
-                        (void *) __vp_multi_view_missed_plugin_cb)) {
+               (pMultiView->pPlayerHandle, VP_MM_PLAYER_MISSED_PLUGIN_CB,
+                (void *) __vp_multi_view_missed_plugin_cb)) {
                VideoLogError("vp_mm_player_set_callback fail");
                return FALSE;
        }
        if (!vp_mm_player_set_callback
-                       (pMultiView->pPlayerHandle, VP_MM_PLAYER_IMAGE_BUFFER_CB,
-                        (void *) __vp_multi_view_image_buffer_cb)) {
+               (pMultiView->pPlayerHandle, VP_MM_PLAYER_IMAGE_BUFFER_CB,
+                (void *) __vp_multi_view_image_buffer_cb)) {
                VideoLogError("vp_mm_player_set_callback fail");
                return FALSE;
        }
@@ -2404,40 +2399,40 @@ static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
        }
 
        if (!vp_mm_player_set_video_sink(pMultiView->pPlayerHandle,
-                                        VP_MM_PLAYER_VIDEO_TYPE_EVAS,
-                                        (void *) pMultiView->pVideoSink)) {
+                                        VP_MM_PLAYER_VIDEO_TYPE_EVAS,
+                                        (void *) pMultiView->pVideoSink)) {
                VideoLogError("vp_mm_player_set_video_sink fail");
                _vp_play_multi_view_destroy_handle(pMultiView);
                return FALSE;
        }
 
        if (!vp_mm_player_set_hub_download_mode
-                       (pMultiView->pPlayerHandle, pPlayView->bStoreDownload)) {
+               (pMultiView->pPlayerHandle, pPlayView->bStoreDownload)) {
                VideoLogError("vp_mm_player_set_hub_download_mode fail");
        }
 
        char *szSubtitle = NULL;
 
        if (pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-                       pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+               pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
                char *szTitle =
-                       vp_play_util_get_title_from_path((char *) pMultiView->
-                                       szMediaURL);
+                   vp_play_util_get_title_from_path((char *) pMultiView->
+                                                    szMediaURL);
                edje_object_part_text_set(_EDJ(pMultiView->pLayout),
-                                         VP_PLAY_PART_MULTI_TITLE, szTitle);
+                                         VP_PLAY_PART_MULTI_TITLE, szTitle);
                VP_FREE(szTitle);
 
                if (pMultiView->szSubtitleURL) {
                        VP_STRDUP(szSubtitle, pMultiView->szSubtitleURL);
                } else {
                        vp_play_util_get_subtitle_path(pMultiView->szMediaURL,
-                                                      &szSubtitle);
+                                                      &szSubtitle);
                }
 
                if (szSubtitle) {
                        pMultiView->bIsExistSubtitle = TRUE;
                        vp_mm_player_set_subtitle_url(pMultiView->pPlayerHandle,
-                                                     szSubtitle);
+                                                     szSubtitle);
                }
 
                VP_FREE(pMultiView->szSubtitleURL);
@@ -2445,22 +2440,22 @@ static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
        } else {
                if (pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_WEB) {
                        edje_object_part_text_set(_EDJ(pMultiView->pLayout),
-                                                 VP_PLAY_PART_MULTI_TITLE,
-                                                 VP_PLAY_STRING_STREAMING_PLAYER);
+                                                 VP_PLAY_PART_MULTI_TITLE,
+                                                 VP_PLAY_STRING_STREAMING_PLAYER);
                        if (pPlayView->szCookie) {
                                if (!vp_mm_player_set_cookie
-                                               (pMultiView->pPlayerHandle, pPlayView->szCookie)) {
+                                       (pMultiView->pPlayerHandle, pPlayView->szCookie)) {
                                        VideoLogError("vp_mm_player_set_cookie fail");
                                }
                        }
                        if (pPlayView->szProxy) {
                                if (!vp_mm_player_set_proxy
-                                               (pMultiView->pPlayerHandle, pPlayView->szProxy)) {
+                                       (pMultiView->pPlayerHandle, pPlayView->szProxy)) {
                                        VideoLogError("vp_mm_player_set_proxy fail");
                                }
                        }
                } else if (pMultiView->nLaunchingType ==
-                               VIDEO_PLAY_TYPE_MULTI_PATH) {
+                          VIDEO_PLAY_TYPE_MULTI_PATH) {
                        char *szMultiPathURL = NULL;
                        char *szMultiSubTitle = NULL;
                        bool bIsSameAP = TRUE;
@@ -2469,35 +2464,35 @@ static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
                        char *szTitle = NULL;
 
                        vp_multi_path_get_current_item(pMultiView->szMediaURL,
-                                                      &szMultiPathURL, &szTitle,
-                                                      &szMultiSubTitle,
-                                                      &nMultiPathPosition,
-                                                      &nMultiPathDuration,
-                                                      &bIsSameAP,
-                                                      pPlayView->pMultiPathList);
+                                                      &szMultiPathURL, &szTitle,
+                                                      &szMultiSubTitle,
+                                                      &nMultiPathPosition,
+                                                      &nMultiPathDuration,
+                                                      &bIsSameAP,
+                                                      pPlayView->pMultiPathList);
                        pMultiView->nStartPosition = nMultiPathPosition;
                        pMultiView->nDuration = nMultiPathDuration;
 
                        if (szTitle == NULL) {
                                szTitle =
-                                       vp_play_util_get_title_from_path((char *) pMultiView->
-                                                       szMediaURL);
+                                   vp_play_util_get_title_from_path((char *) pMultiView->
+                                                                    szMediaURL);
                        }
 
                        if (szTitle) {
                                edje_object_part_text_set(_EDJ(pMultiView->pLayout),
-                                                         VP_PLAY_PART_MULTI_TITLE,
-                                                         szTitle);
+                                                         VP_PLAY_PART_MULTI_TITLE,
+                                                         szTitle);
                        } else {
                                edje_object_part_text_set(_EDJ(pMultiView->pLayout),
-                                                         VP_PLAY_PART_MULTI_TITLE,
-                                                         VP_PLAY_STRING_NO_TITLE);
+                                                         VP_PLAY_PART_MULTI_TITLE,
+                                                         VP_PLAY_STRING_NO_TITLE);
                        }
 
                        if (szMultiSubTitle) {
                                pMultiView->bIsExistSubtitle = TRUE;
                                vp_mm_player_set_subtitle_url(pMultiView->pPlayerHandle,
-                                                             szMultiSubTitle);
+                                                             szMultiSubTitle);
                        } else {
                                vp_play_util_status_noti_show
                                (VP_PLAY_STRING_ERROR_SUBTITLE_FAIL);
@@ -2511,11 +2506,11 @@ static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
 
        if (pMultiView->nAudioTrackIndex > 0) {
                vp_mm_player_set_audio_track(pMultiView->pPlayerHandle,
-                                            pMultiView->nAudioTrackIndex);
+                                            pMultiView->nAudioTrackIndex);
        }
 
        if (!vp_mm_player_realize_async
-                       (pMultiView->pPlayerHandle, pMultiView->szMediaURL)) {
+               (pMultiView->pPlayerHandle, pMultiView->szMediaURL)) {
                VideoLogError("vp_mm_player_realize_async fail");
                vp_play_util_status_noti_show(VP_PLAY_STRING_ERROR_UNABLE_PLAY);
                _vp_play_multi_view_on_next_play(pMultiView, FALSE);
@@ -2543,7 +2538,7 @@ static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
 
        if (nSoundFilter != VP_MM_PLAYER_FILTER_NONE) {
                if (!vp_mm_player_set_sound_filter
-                               (pMultiView->pPlayerHandle, nSoundFilter)) {
+                       (pMultiView->pPlayerHandle, nSoundFilter)) {
                        VideoLogWarning("vp_mm_player_set_sound_filter is fail");
                }
        }
@@ -2553,7 +2548,7 @@ static bool _vp_play_multi_view_play_start(MultiView *pMultiView,
 }
 
 static void _vp_play_multi_view_on_next_play(MultiView *pMultiView,
-               bool bManual)
+        bool bManual)
 {
        if (pMultiView == NULL) {
                VideoLogError("pMultiView is NULL");
@@ -2563,8 +2558,8 @@ static void _vp_play_multi_view_on_next_play(MultiView *pMultiView,
        bool bIsExit = FALSE;
 
        if (pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_MESSAGE ||
-                       pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
-                       pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
+               pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
+               pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
                return;
        }
 
@@ -2600,9 +2595,9 @@ static void _vp_play_multi_view_on_next_play(MultiView *pMultiView,
                                int nPosition = 0;
                                int nDuration = 0;
                                vp_multi_path_get_next_item(pMultiView->szMediaURL,
-                                                           &szNextURL, &szSubtitle,
-                                                           &nPosition, &nDuration, TRUE,
-                                                           pPlayView->pMultiPathList);
+                                                           &szNextURL, &szSubtitle,
+                                                           &nPosition, &nDuration, TRUE,
+                                                           pPlayView->pMultiPathList);
                                VP_FREE(szSubtitle);
                                if (szNextURL) {
                                        VP_FREE(pMultiView->szMediaURL);
@@ -2619,15 +2614,15 @@ static void _vp_play_multi_view_on_next_play(MultiView *pMultiView,
                        if (pMultiView->nRepeatMode == VIDEO_PLAY_REPEAT_OFF) {
                                bIsExit = TRUE;
                        } else if (pMultiView->nRepeatMode ==
-                                       VIDEO_PLAY_REPEAT_ALL_STOP) {
+                                  VIDEO_PLAY_REPEAT_ALL_STOP) {
                                char *szNextURL = NULL;
                                char *szSubtitle = NULL;
                                int nPosition = 0;
                                int nDuration = 0;
                                vp_multi_path_get_next_item(pMultiView->szMediaURL,
-                                                           &szNextURL, &szSubtitle,
-                                                           &nPosition, &nDuration, FALSE,
-                                                           pPlayView->pMultiPathList);
+                                                           &szNextURL, &szSubtitle,
+                                                           &nPosition, &nDuration, FALSE,
+                                                           pPlayView->pMultiPathList);
                                VP_FREE(szSubtitle);
                                if (szNextURL == NULL) {
                                        bIsExit = TRUE;
@@ -2646,9 +2641,9 @@ static void _vp_play_multi_view_on_next_play(MultiView *pMultiView,
                                int nPosition = 0;
                                int nDuration = 0;
                                vp_multi_path_get_next_item(pMultiView->szMediaURL,
-                                                           &szNextURL, &szSubtitle,
-                                                           &nPosition, &nDuration, TRUE,
-                                                           pPlayView->pMultiPathList);
+                                                           &szNextURL, &szSubtitle,
+                                                           &nPosition, &nDuration, TRUE,
+                                                           pPlayView->pMultiPathList);
                                VP_FREE(szSubtitle);
                                if (szNextURL == NULL) {
                                        bIsExit = TRUE;
@@ -2668,9 +2663,9 @@ static void _vp_play_multi_view_on_next_play(MultiView *pMultiView,
 
                        char *szNextURL = NULL;
                        vp_media_contents_get_next_file_path(pMultiView->szMediaURL,
-                                                            &szNextURL, TRUE,
-                                                            pMultiView->
-                                                            pMediaItemList);
+                                                            &szNextURL, TRUE,
+                                                            pMultiView->
+                                                            pMediaItemList);
                        if (szNextURL) {
                                VP_FREE(pMultiView->szMediaURL);
                                VP_STRDUP(pMultiView->szMediaURL, szNextURL);
@@ -2687,9 +2682,9 @@ static void _vp_play_multi_view_on_next_play(MultiView *pMultiView,
                } else if (pMultiView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL_STOP) {
                        char *szNextURL = NULL;
                        vp_media_contents_get_next_file_path(pMultiView->szMediaURL,
-                                                            &szNextURL, FALSE,
-                                                            pMultiView->
-                                                            pMediaItemList);
+                                                            &szNextURL, FALSE,
+                                                            pMultiView->
+                                                            pMediaItemList);
                        if (szNextURL == NULL) {
                                bIsExit = TRUE;
                        } else {
@@ -2703,9 +2698,9 @@ static void _vp_play_multi_view_on_next_play(MultiView *pMultiView,
                } else if (pMultiView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
                        char *szNextURL = NULL;
                        vp_media_contents_get_next_file_path(pMultiView->szMediaURL,
-                                                            &szNextURL, TRUE,
-                                                            pMultiView->
-                                                            pMediaItemList);
+                                                            &szNextURL, TRUE,
+                                                            pMultiView->
+                                                            pMediaItemList);
                        if (szNextURL == NULL) {
                                bIsExit = TRUE;
                        } else {
@@ -2744,7 +2739,7 @@ static void _vp_play_multi_view_on_next_play(MultiView *pMultiView,
 }
 
 static void _vp_play_multi_view_on_prev_play(MultiView *pMultiView,
-               bool bManual, bool bVoice)
+                        bool bManual, bool bVoice)
 {
        if (pMultiView == NULL) {
                VideoLogError("pMultiView is NULL");
@@ -2772,8 +2767,8 @@ static void _vp_play_multi_view_on_prev_play(MultiView *pMultiView,
        }
 
        if (pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_MESSAGE ||
-                       pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
-                       pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
+               pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
+               pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
                return;
        }
 
@@ -2797,9 +2792,9 @@ static void _vp_play_multi_view_on_prev_play(MultiView *pMultiView,
                        int nPosition = 0;
                        int nDuration = 0;
                        vp_multi_path_get_next_item(pMultiView->szMediaURL,
-                                                   &szPrevURL, &szSubtitle,
-                                                   &nPosition, &nDuration, TRUE,
-                                                   pPlayView->pMultiPathList);
+                                                   &szPrevURL, &szSubtitle,
+                                                   &nPosition, &nDuration, TRUE,
+                                                   pPlayView->pMultiPathList);
                        VP_FREE(szSubtitle);
                        if (szPrevURL) {
                                VP_FREE(pMultiView->szMediaURL);
@@ -2813,8 +2808,8 @@ static void _vp_play_multi_view_on_prev_play(MultiView *pMultiView,
 
        } else {
                vp_media_contents_get_prev_file_path(pMultiView->szMediaURL,
-                                                    &szPrevURL, TRUE,
-                                                    pMultiView->pMediaItemList);
+                                                    &szPrevURL, TRUE,
+                                                    pMultiView->pMediaItemList);
                if (szPrevURL) {
                        VP_FREE(pMultiView->szMediaURL);
                        VP_STRDUP(pMultiView->szMediaURL, szPrevURL);
@@ -2830,10 +2825,10 @@ static void _vp_play_multi_view_on_prev_play(MultiView *pMultiView,
 static void _vp_play_multi_view_set_preview(MultiView *pMultiView)
 {
        if (pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
-                       pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
+               pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
                bool bIsCloud = FALSE;
                vp_media_contents_get_cloud_attribute(pMultiView->szMediaURL,
-                                                     &bIsCloud);
+                                                     &bIsCloud);
                if (!bIsCloud) {
                        PlayView *pPlayView = pMultiView->pPlayView;
                        if (pPlayView == NULL) {
@@ -2843,13 +2838,13 @@ static void _vp_play_multi_view_set_preview(MultiView *pMultiView)
                        if (pPlayView->bViewChange == FALSE) {
                                if (vp_file_exists(pMultiView->szMediaURL)) {
                                        VideoSecureLogInfo("pMultiView-path = %s",
-                                                          pMultiView->szMediaURL);
+                                                          pMultiView->szMediaURL);
                                        vp_play_config_set_preview_url_videos(pMultiView->
-                                                                            szMediaURL);
+                                                                             szMediaURL);
                                }
                        }
                        vp_play_preference_set_preview_audio_track(pMultiView->
-                                       nAudioTrackIndex);
+                               nAudioTrackIndex);
                }
        }
 }
@@ -2863,23 +2858,23 @@ static void _vp_play_multi_view_set_played_time(MultiView *pMultiView)
        PlayView *pPlayView = pMultiView->pPlayView;
        int nPosition = 0;
        if (pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-                       pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
-                       pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
-                       pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL &&
-                       pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+               pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
+               pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
+               pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL &&
+               pMultiView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
 
                if (!vp_mm_player_get_position
-                               (pMultiView->pPlayerHandle, &nPosition)) {
+                       (pMultiView->pPlayerHandle, &nPosition)) {
                        VideoLogError("vp_mm_player_get_position is fail");
                } else {
                        if (nPosition == pMultiView->nDuration) {
                                vp_media_contents_set_played_position(pMultiView->
-                                                                     szMediaURL, 0);
+                                                                     szMediaURL, 0);
 
                        } else {
                                vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
                                if (!vp_mm_player_get_state
-                                               (pMultiView->pPlayerHandle, &nState)) {
+                                       (pMultiView->pPlayerHandle, &nState)) {
                                        VideoLogWarning("vp_mm_player_get_state is fail");
                                }
 
@@ -2891,14 +2886,14 @@ static void _vp_play_multi_view_set_played_time(MultiView *pMultiView)
                                        nPosition = 0;
                                }
                                vp_media_contents_set_played_position(pMultiView->
-                                                                     szMediaURL,
-                                                                     nPosition);
+                                                                     szMediaURL,
+                                                                     nPosition);
                        }
                }
        } else if (pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
                int nPosition = 0;
                if (!vp_mm_player_get_position
-                               (pMultiView->pPlayerHandle, &nPosition)) {
+                       (pMultiView->pPlayerHandle, &nPosition)) {
                        VideoLogError("vp_mm_player_get_position is fail");
                } else {
                        if (pPlayView == NULL) {
@@ -2910,15 +2905,15 @@ static void _vp_play_multi_view_set_played_time(MultiView *pMultiView)
                                return;
                        }
                        vp_multi_path_set_item_position(pMultiView->szMediaURL,
-                                                       nPosition,
-                                                       pPlayView->pMultiPathList);
+                                                       nPosition,
+                                                       pPlayView->pMultiPathList);
                }
        }
 }
 
 
 static Evas_Object *_vp_play_multi_view_create_layout(Evas_Object *
-               pParent)
+        pParent)
 {
        if (!pParent) {
                VideoLogError("Parent is NULL");
@@ -2935,13 +2930,13 @@ static Evas_Object *_vp_play_multi_view_create_layout(Evas_Object *
        }
 
        bRet =
-               elm_layout_file_set(pObj, VP_PLAY_MULTI_MAIN_EDJ,
-                                   VP_PLAY_EDJ_GROUP_MULTI);
+           elm_layout_file_set(pObj, VP_PLAY_MULTI_MAIN_EDJ,
+                               VP_PLAY_EDJ_GROUP_MULTI);
        if (bRet != EINA_TRUE) {
                VideoLogError("elm_layout_file_set fail");
        }
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
 
        evas_object_show(pObj);
 
@@ -2950,7 +2945,7 @@ static Evas_Object *_vp_play_multi_view_create_layout(Evas_Object *
 }
 
 static Evas_Object *_vp_play_multi_view_create_image_sink(void *pParent,
-               void *pUserData)
+                        void *pUserData)
 {
 
        if (!pUserData) {
@@ -2971,9 +2966,9 @@ static Evas_Object *_vp_play_multi_view_create_image_sink(void *pParent,
        }
 
        evas_object_image_size_set(pObj, VP_MULTI_DEFAULT_WIDTH,
-                                  VP_MULTI_DEFAULT_HEIGHT);
+                                  VP_MULTI_DEFAULT_HEIGHT);
        evas_object_resize(pObj, VP_MULTI_DEFAULT_WIDTH,
-                          VP_MULTI_DEFAULT_HEIGHT);
+                          VP_MULTI_DEFAULT_HEIGHT);
 
        void *pImageBuf = evas_object_image_data_get(pObj, EINA_TRUE);
        if (NULL == pImageBuf) {
@@ -2988,18 +2983,18 @@ static Evas_Object *_vp_play_multi_view_create_image_sink(void *pParent,
        evas_object_image_data_set(pObj, pImageBuf);
 
        evas_object_event_callback_add(pObj, EVAS_CALLBACK_RESIZE,
-                                      __vp_play_multi_view_imagesink_resize_cb,
-                                      (void *) pMultiView);
+                                      __vp_play_multi_view_imagesink_resize_cb,
+                                      (void *) pMultiView);
 
        elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_MULTI_SINK,
-                                   pObj);
+                                   pObj);
 
        return pObj;
 
 }
 
 static void _vp_play_multi_view_create_layout_hide_timer(MultiView *
-               pMultiView)
+                        pMultiView)
 {
        if (pMultiView == NULL) {
                VideoLogError("pMultiView is NULL");
@@ -3009,9 +3004,9 @@ static void _vp_play_multi_view_create_layout_hide_timer(MultiView *
        VP_EVAS_TIMER_DEL(pMultiView->pHideTimer);
 
        pMultiView->pHideTimer =
-               ecore_timer_add(VP_MULTI_HIDE_LAYOUT_TIMER_INTERVAL,
-                               __vp_multi_hide_layout_timer_cb,
-                               (void *) pMultiView);
+           ecore_timer_add(VP_MULTI_HIDE_LAYOUT_TIMER_INTERVAL,
+                           __vp_multi_hide_layout_timer_cb,
+                           (void *) pMultiView);
 
 }
 
@@ -3057,29 +3052,29 @@ static void _vp_play_multi_view_show_layout(MultiView *pMultiView)
        evas_object_show(pMultiView->pNextBtn);
 
        elm_object_part_content_unset(pMultiView->pLayout,
-                                     VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE);
+                                     VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE);
 
        if (bPlaying) {
                evas_object_hide(pMultiView->pPlayBtn);
                evas_object_show(pMultiView->pPauseBtn);
                elm_object_part_content_set(pMultiView->pLayout,
-                                           VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE,
-                                           pMultiView->pPauseBtn);
+                                           VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE,
+                                           pMultiView->pPauseBtn);
        } else {
                evas_object_hide(pMultiView->pPauseBtn);
                evas_object_show(pMultiView->pPlayBtn);
                elm_object_part_content_set(pMultiView->pLayout,
-                                           VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE,
-                                           pMultiView->pPlayBtn);
+                                           VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE,
+                                           pMultiView->pPlayBtn);
        }
 
        elm_object_signal_emit(pMultiView->pLayout,
-                              VP_MULTI_VIEW_SIGNAL_SHOW_CONTROL, "*");
+                              VP_MULTI_VIEW_SIGNAL_SHOW_CONTROL, "*");
 
        pMultiView->bShowLayout = TRUE;
 
        vp_play_multi_view_set_main_layout_focus_out((void *) pPlayView->
-                       pMultiView);
+               pMultiView);
        _vp_play_multi_view_set_button_focus_sequence(pMultiView);
        _vp_play_multi_view_create_layout_hide_timer(pMultiView);
 
@@ -3111,10 +3106,10 @@ static void _vp_play_multi_view_hide_layout(MultiView *pMultiView)
        evas_object_hide(pMultiView->pNextBtn);
 
        elm_object_signal_emit(pMultiView->pLayout,
-                              VP_MULTI_VIEW_SIGNAL_HIDE_CONTROL, "*");
+                              VP_MULTI_VIEW_SIGNAL_HIDE_CONTROL, "*");
 
        vp_play_multi_view_set_main_layout_focus_out((void *) pPlayView->
-                       pMultiView);
+               pMultiView);
        pMultiView->bShowLayout = FALSE;
 
 }
@@ -3135,7 +3130,7 @@ static void _vp_play_multi_view_set_play_state(MultiView *pMultiView)
        pMultiView->nPlayerState = nState;
 
        elm_object_part_content_unset(pMultiView->pLayout,
-                                     VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE);
+                                     VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE);
        switch (nState) {
        case VP_MM_PLAYER_STATE_NONE:
        case VP_MM_PLAYER_STATE_IDLE:
@@ -3145,8 +3140,8 @@ static void _vp_play_multi_view_set_play_state(MultiView *pMultiView)
                evas_object_hide(pMultiView->pPauseBtn);
                evas_object_show(pMultiView->pPlayBtn);
                elm_object_part_content_set(pMultiView->pLayout,
-                                           VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE,
-                                           pMultiView->pPlayBtn);
+                                           VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE,
+                                           pMultiView->pPlayBtn);
                vp_play_util_set_unlock_power_key();
                break;
        case VP_MM_PLAYER_STATE_PLAYING:
@@ -3154,8 +3149,8 @@ static void _vp_play_multi_view_set_play_state(MultiView *pMultiView)
                evas_object_hide(pMultiView->pPlayBtn);
                evas_object_show(pMultiView->pPauseBtn);
                elm_object_part_content_set(pMultiView->pLayout,
-                                           VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE,
-                                           pMultiView->pPauseBtn);
+                                           VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE,
+                                           pMultiView->pPauseBtn);
                vp_play_util_set_lock_power_key();
                break;
        case VP_MM_PLAYER_STATE_STOP:
@@ -3180,60 +3175,60 @@ static bool _vp_play_multi_view_init_buttons(MultiView *pMultiView)
        Evas_Object *pParent = pMultiView->pLayout;
 
        pMultiView->pExitBtn =
-               vp_button_create(pParent, "playview/custom/flat_94_60/default",
-                                NULL,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_clicked_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_press_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_unpress_cb,
-                                (void *) pMultiView);
+           vp_button_create(pParent, "playview/custom/flat_94_60/default",
+                            NULL,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_clicked_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_press_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_unpress_cb,
+                            (void *) pMultiView);
        if (!pMultiView->pExitBtn) {
                VideoLogError("vp_play_util_create_buttonis fail");
                return FALSE;
        }
 
        pMultiView->pFullSizeBtn =
-               vp_button_create(pParent, "playview/custom/flat_94_60/default",
-                                NULL,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_clicked_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_press_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_unpress_cb,
-                                (void *) pMultiView);
+           vp_button_create(pParent, "playview/custom/flat_94_60/default",
+                            NULL,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_clicked_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_press_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_unpress_cb,
+                            (void *) pMultiView);
        if (!pMultiView->pFullSizeBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
        }
 
        pMultiView->pMinSizeBtn =
-               vp_button_create(pParent, "playview/custom/flat_94_60/default",
-                                NULL,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_clicked_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_press_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_unpress_cb,
-                                (void *) pMultiView);
+           vp_button_create(pParent, "playview/custom/flat_94_60/default",
+                            NULL,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_clicked_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_press_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_unpress_cb,
+                            (void *) pMultiView);
        if (!pMultiView->pMinSizeBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
        }
 
        pMultiView->pResizeBtn =
-               vp_button_create(pParent, "playview/custom/flat_36_36/default",
-                                NULL,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_clicked_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_press_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_unpress_cb,
-                                (void *) pMultiView);
+           vp_button_create(pParent, "playview/custom/flat_36_36/default",
+                            NULL,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_clicked_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_press_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_unpress_cb,
+                            (void *) pMultiView);
        if (!pMultiView->pResizeBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
@@ -3241,73 +3236,73 @@ static bool _vp_play_multi_view_init_buttons(MultiView *pMultiView)
 
 
        pMultiView->pPlayBtn =
-               vp_button_create(pParent, "playview/custom/round_center/default",
-                                VP_PLAY_STRING_COM_PLAY,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_clicked_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_press_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_unpress_cb,
-                                (void *) pMultiView);
+           vp_button_create(pParent, "playview/custom/round_center/default",
+                            VP_PLAY_STRING_COM_PLAY,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_clicked_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_press_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_unpress_cb,
+                            (void *) pMultiView);
        if (!pMultiView->pPlayBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
        }
 
        pMultiView->pPauseBtn =
-               vp_button_create(pParent, "playview/custom/round_center/default",
-                                VP_PLAY_STRING_COM_PAUSE,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_clicked_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_press_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_unpress_cb,
-                                (void *) pMultiView);
+           vp_button_create(pParent, "playview/custom/round_center/default",
+                            VP_PLAY_STRING_COM_PAUSE,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_clicked_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_press_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_unpress_cb,
+                            (void *) pMultiView);
        if (!pMultiView->pPauseBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
        }
 
        pMultiView->pPlayFocusBtn = vp_button_create(pParent, "focus", NULL,
-                                   (Evas_Smart_Cb)
-                                   __vp_play_multi_view_btn_clicked_cb,
-                                   (Evas_Smart_Cb)
-                                   __vp_play_multi_view_btn_press_cb,
-                                   (Evas_Smart_Cb)
-                                   __vp_play_multi_view_btn_unpress_cb,
-                                   (void *) pMultiView);
+                                   (Evas_Smart_Cb)
+                                   __vp_play_multi_view_btn_clicked_cb,
+                                   (Evas_Smart_Cb)
+                                   __vp_play_multi_view_btn_press_cb,
+                                   (Evas_Smart_Cb)
+                                   __vp_play_multi_view_btn_unpress_cb,
+                                   (void *) pMultiView);
        if (!pMultiView->pPlayFocusBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
        }
 
        pMultiView->pPrevBtn =
-               vp_button_create(pParent, "playview/custom/round_left/default",
-                                VP_PLAY_STRING_COM_PREVIOUS,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_clicked_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_press_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_unpress_cb,
-                                (void *) pMultiView);
+           vp_button_create(pParent, "playview/custom/round_left/default",
+                            VP_PLAY_STRING_COM_PREVIOUS,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_clicked_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_press_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_unpress_cb,
+                            (void *) pMultiView);
        if (!pMultiView->pPrevBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
        }
 
        pMultiView->pNextBtn =
-               vp_button_create(pParent, "playview/custom/round_right/default",
-                                VP_PLAY_STRING_COM_NEXT,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_clicked_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_press_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_multi_view_btn_unpress_cb,
-                                (void *) pMultiView);
+           vp_button_create(pParent, "playview/custom/round_right/default",
+                            VP_PLAY_STRING_COM_NEXT,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_clicked_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_press_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_multi_view_btn_unpress_cb,
+                            (void *) pMultiView);
        if (!pMultiView->pNextBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
@@ -3315,78 +3310,78 @@ static bool _vp_play_multi_view_init_buttons(MultiView *pMultiView)
 
        Evas_Object *pIcon = NULL;
        pIcon =
-               vp_button_create_icon(pMultiView->pResizeBtn,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_MULTI_VIEW_RESIZE);
+           vp_button_create_icon(pMultiView->pResizeBtn,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_MULTI_VIEW_RESIZE);
        elm_object_part_content_set(pMultiView->pResizeBtn,
-                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pMultiView->pResizeBtn,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_MULTI_VIEW_RESIZE_PRESS);
+           vp_button_create_icon(pMultiView->pResizeBtn,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_MULTI_VIEW_RESIZE_PRESS);
        elm_object_part_content_set(pMultiView->pResizeBtn,
-                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pMultiView->pResizeBtn,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_MULTI_VIEW_RESIZE);
+           vp_button_create_icon(pMultiView->pResizeBtn,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_MULTI_VIEW_RESIZE);
        elm_object_part_content_set(pMultiView->pResizeBtn,
-                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
 
 
        pIcon =
-               vp_button_create_icon(pMultiView->pPlayBtn,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_MULTI_VIEW_PLAY);
+           vp_button_create_icon(pMultiView->pPlayBtn,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_MULTI_VIEW_PLAY);
        elm_object_part_content_set(pMultiView->pPlayBtn,
-                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pMultiView->pPauseBtn,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_MULTI_VIEW_PAUSE);
+           vp_button_create_icon(pMultiView->pPauseBtn,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_MULTI_VIEW_PAUSE);
        elm_object_part_content_set(pMultiView->pPauseBtn,
-                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pMultiView->pPrevBtn,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_MULTI_VIEW_REW);
+           vp_button_create_icon(pMultiView->pPrevBtn,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_MULTI_VIEW_REW);
        elm_object_part_content_set(pMultiView->pPrevBtn,
-                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        pIcon =
-               vp_button_create_icon(pMultiView->pNextBtn,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_MULTI_VIEW_FF);
+           vp_button_create_icon(pMultiView->pNextBtn,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_MULTI_VIEW_FF);
        elm_object_part_content_set(pMultiView->pNextBtn,
-                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_MULTI_CLOSE,
-                                   pMultiView->pExitBtn);
+                                   pMultiView->pExitBtn);
        elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_MULTI_FULL_SIZE,
-                                   pMultiView->pFullSizeBtn);
+                                   pMultiView->pFullSizeBtn);
        elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_MULTI_MINIMIZE,
-                                   pMultiView->pMinSizeBtn);
+                                   pMultiView->pMinSizeBtn);
        elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_MULTI_RESIZE,
-                                   pMultiView->pResizeBtn);
+                                   pMultiView->pResizeBtn);
 
        elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_MULTI_PLAY_PAUSE,
-                                   pMultiView->pPauseBtn);
+                                   pMultiView->pPauseBtn);
        elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_MULTI_PLAY_FOCUS,
-                                   pMultiView->pPlayFocusBtn);
+                                   pMultiView->pPlayFocusBtn);
        elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_MULTI_REW,
-                                   pMultiView->pPrevBtn);
+                                   pMultiView->pPrevBtn);
        elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_MULTI_FF,
-                                   pMultiView->pNextBtn);
+                                   pMultiView->pNextBtn);
 
        return TRUE;
 }
 
 static bool _vp_play_multi_view_create_gesture_layout(MultiView *
-               pMultiView)
+                        pMultiView)
 {
        if (!pMultiView) {
                VideoLogError("pMultiView is NULL");
@@ -3400,39 +3395,39 @@ static bool _vp_play_multi_view_create_gesture_layout(MultiView *
 
        pMultiView->pMainEventRect = elm_layout_add(pParent);
        bRet =
-               elm_layout_file_set(pMultiView->pMainEventRect,
-                                   VP_PLAY_GESTURE_EDJ,
-                                   VP_PLAY_EDJ_GROUP_GESTURE);
+           elm_layout_file_set(pMultiView->pMainEventRect,
+                               VP_PLAY_GESTURE_EDJ,
+                               VP_PLAY_EDJ_GROUP_GESTURE);
        if (bRet != EINA_TRUE) {
                VideoLogError("elm_layout_file_set fail : %s [%s]",
-                             VP_PLAY_GESTURE_EDJ, VP_PLAY_EDJ_GROUP_GESTURE);
+                             VP_PLAY_GESTURE_EDJ, VP_PLAY_EDJ_GROUP_GESTURE);
                return FALSE;
        }
        elm_object_part_content_set(pParent, "pv.multi.event",
-                                   pMultiView->pMainEventRect);
+                                   pMultiView->pMainEventRect);
 
        pMultiView->pGestureRect =
-               elm_gesture_layer_add(pMultiView->pMainEventRect);
+           elm_gesture_layer_add(pMultiView->pMainEventRect);
        if (pMultiView->pGestureRect == NULL) {
                VideoLogError("elm_gesture_layer_add is NULL");
                return FALSE;
        }
 
        elm_gesture_layer_cb_set(pMultiView->pGestureRect, ELM_GESTURE_N_TAPS,
-                                ELM_GESTURE_STATE_START,
-                                __vp_multi_view_gesture_n_tab_start_cb,
-                                (void *) pMultiView);
+                                ELM_GESTURE_STATE_START,
+                                __vp_multi_view_gesture_n_tab_start_cb,
+                                (void *) pMultiView);
        elm_gesture_layer_cb_set(pMultiView->pGestureRect, ELM_GESTURE_N_TAPS,
-                                ELM_GESTURE_STATE_END,
-                                __vp_multi_view_gesture_n_tab_end_cb,
-                                (void *) pMultiView);
+                                ELM_GESTURE_STATE_END,
+                                __vp_multi_view_gesture_n_tab_end_cb,
+                                (void *) pMultiView);
        elm_gesture_layer_cb_set(pMultiView->pGestureRect, ELM_GESTURE_N_TAPS,
-                                ELM_GESTURE_STATE_ABORT,
-                                __vp_multi_view_gesture_n_tab_abort_cb,
-                                (void *) pMultiView);
+                                ELM_GESTURE_STATE_ABORT,
+                                __vp_multi_view_gesture_n_tab_abort_cb,
+                                (void *) pMultiView);
 
        elm_gesture_layer_attach(pMultiView->pGestureRect,
-                                pMultiView->pMainEventRect);
+                                pMultiView->pMainEventRect);
 
        evas_object_show(pMultiView->pMainEventRect);
 
@@ -3451,7 +3446,7 @@ static bool _vp_play_multi_view_create_subtitle(MultiView *pMultiView)
        pParent = pMultiView->pLayout;
 
        pMultiView->pSubtitle =
-               vp_play_subtitle_create(pParent, VP_SUBTITLE_TYPE_MULTI);
+           vp_play_subtitle_create(pParent, VP_SUBTITLE_TYPE_MULTI);
        if (pMultiView->pSubtitle == NULL) {
                VideoLogError("pSubtitle create fail");
                return FALSE;
@@ -3472,10 +3467,10 @@ static bool _vp_play_multi_view_create_subtitle(MultiView *pMultiView)
                float fZoom = 1.0;
                PlayView *pPlayView = pMultiView->pPlayView;
                elm_win_screen_size_get(pPlayView->pWin, NULL, NULL, &nWinW,
-                                       &nWinH);
+                                       &nWinH);
 
                fZoom =
-                       (float)((float)(VP_MULTI_DEFAULT_WIDTH) / (float)(nWinW));
+                   (float)((float)(VP_MULTI_DEFAULT_WIDTH) / (float)(nWinW));
 
                vp_play_subtitle_realize(pMultiView->pSubtitle);
 
@@ -3552,7 +3547,7 @@ static bool _vp_play_multi_view_create_subtitle(MultiView *pMultiView)
                vp_play_subtitle_set_alignment(pMultiView->pSubtitle, nAlignment);
                vp_play_subtitle_set_color(pMultiView->pSubtitle, szColorHex);
                vp_play_subtitle_set_bg_color(pMultiView->pSubtitle,
-                                             szColorBGHex);
+                                             szColorBGHex);
 
 #endif
                vp_play_subtitle_set_size(pMultiView->pSubtitle, nSize);
@@ -3564,7 +3559,7 @@ static bool _vp_play_multi_view_create_subtitle(MultiView *pMultiView)
        }
 
        elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_MULTI_SUBTITLE,
-                                   pObj);
+                                   pObj);
 
        return TRUE;
 }
@@ -3577,7 +3572,7 @@ static bool _vp_play_multi_view_init_layout(MultiView *pMultiView)
        }
 
        pMultiView->pLayout =
-               _vp_play_multi_view_create_layout(pMultiView->pNaviFrame);
+           _vp_play_multi_view_create_layout(pMultiView->pNaviFrame);
        if (pMultiView->pLayout == NULL) {
                VideoLogError("_vp_play_multi_view_create_layout handle is null");
                return FALSE;
@@ -3606,11 +3601,11 @@ static bool _vp_play_multi_view_init_layout(MultiView *pMultiView)
        Elm_Object_Item *pNaviIt = NULL;
 
        pNaviIt =
-               elm_naviframe_item_push(pMultiView->pNaviFrame, NULL, NULL, NULL,
-                                       pMultiView->pLayout, "playview/multiwin");
+           elm_naviframe_item_push(pMultiView->pNaviFrame, NULL, NULL, NULL,
+                                   pMultiView->pLayout, "playview/multiwin");
        elm_naviframe_item_pop_cb_set(pNaviIt,
-                                     __vp_play_multi_view_back_key_event_cb,
-                                     (void *) pMultiView);
+                                     __vp_play_multi_view_back_key_event_cb,
+                                     (void *) pMultiView);
 
        pMultiView->pNaviItem = pNaviIt;
 
@@ -3619,8 +3614,8 @@ static bool _vp_play_multi_view_init_layout(MultiView *pMultiView)
 }
 
 static void _vp_play_multi_view_evas_focus_in_cb(void *pUserData,
-               Evas *pEvas,
-               void *pEventInfo)
+        Evas *pEvas,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -3629,14 +3624,14 @@ static void _vp_play_multi_view_evas_focus_in_cb(void *pUserData,
 
        Evas_Object *pLayout = pUserData;
        elm_object_signal_emit(pLayout, VP_MULTI_VIEW_TITLE_FOCUS_IN_CONTROL,
-                              "*");
+                              "*");
 
        return;
 }
 
 static void _vp_play_multi_view_evas_focus_out_cb(void *pUserData,
-               Evas *pEvas,
-               void *pEventInfo)
+                        Evas *pEvas,
+                        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -3645,7 +3640,7 @@ static void _vp_play_multi_view_evas_focus_out_cb(void *pUserData,
 
        Evas_Object *pLayout = pUserData;
        elm_object_signal_emit(pLayout, VP_MULTI_VIEW_TITLE_FOCUS_OUT_CONTROL,
-                              "*");
+                              "*");
 
        return;
 }
@@ -3718,15 +3713,15 @@ static void _vp_play_multi_view_destroy_handle(MultiView *pMultiView)
        if (pMultiView->pWin) {
                Evas *e = evas_object_evas_get(pMultiView->pWin);
                evas_event_callback_del(e, EVAS_CALLBACK_CANVAS_FOCUS_IN,
-                                       _vp_play_multi_view_evas_focus_in_cb);
+                                       _vp_play_multi_view_evas_focus_in_cb);
                evas_event_callback_del(e, EVAS_CALLBACK_CANVAS_FOCUS_OUT,
-                                       _vp_play_multi_view_evas_focus_out_cb);
+                                       _vp_play_multi_view_evas_focus_out_cb);
        }
 }
 
 static void _vp_play_multi_view_prepare_pipe_cb(void *data,
-               void *pipeData,
-               unsigned int nbyte)
+                        void *pipeData,
+                        unsigned int nbyte)
 {
        if (NULL == data) {
                VideoLogError("data is NULL");
@@ -3740,7 +3735,7 @@ static void _vp_play_multi_view_prepare_pipe_cb(void *data,
        }
 
        if (pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_WEB
-                       && nDuration == 0) {
+               && nDuration == 0) {
                pMultiView->bHLSMode = TRUE;
                pMultiView->nStartPosition = 0;
        } else {
@@ -3751,7 +3746,7 @@ static void _vp_play_multi_view_prepare_pipe_cb(void *data,
 
        if (pMultiView->nStartPosition > 0) {
                if (vp_mm_player_set_position
-                               (pMultiView->pPlayerHandle, pMultiView->nStartPosition)) {
+                       (pMultiView->pPlayerHandle, pMultiView->nStartPosition)) {
                        pMultiView->bSeekComplete = FALSE;
                }
        } else {
@@ -3777,22 +3772,21 @@ static void _vp_play_multi_view_prepare_pipe_cb(void *data,
                        vp_mm_player_play(pMultiView->pPlayerHandle);
                }
                if (!vp_mm_player_set_subtitle_position
-                               (pMultiView->pPlayerHandle,
-                                pMultiView->fSubtitleSyncValue * 1000)) {
+                       (pMultiView->pPlayerHandle,
+                        pMultiView->fSubtitleSyncValue * 1000)) {
                        VideoLogError("vp_mm_player_set_subtitle_position is fail");
                }
        }
 
        vp_mm_player_set_rate(pMultiView->pPlayerHandle,
-                             (float) pMultiView->fPlaySpeed);
+                             (float) pMultiView->fPlaySpeed);
 
        _vp_play_multi_view_set_play_state(pMultiView);
 }
 
 /* external functions */
 multi_view_handle vp_play_multi_view_create(PlayView *pPlayView,
-               video_play_launching_type_t
-               nLaunchingType)
+                        video_play_launching_type_t nLaunchingType)
 {
        if (pPlayView == NULL) {
                VideoLogError("pPlayView is NULL");
@@ -3831,35 +3825,35 @@ multi_view_handle vp_play_multi_view_create(PlayView *pPlayView,
        pMultiView->bNoContentMode = FALSE;
 
        pMultiView->pMouseDownHandle =
-               ecore_event_handler_add(ECORE_EVENT_MOUSE_BUTTON_DOWN,
-                                       __vp_play_multi_view_mouse_down_cb,
-                                       (void *) pMultiView);
+           ecore_event_handler_add(ECORE_EVENT_MOUSE_BUTTON_DOWN,
+                                   __vp_play_multi_view_mouse_down_cb,
+                                   (void *) pMultiView);
        pMultiView->pMouseUpHandle =
-               ecore_event_handler_add(ECORE_EVENT_MOUSE_BUTTON_UP,
-                                       __vp_play_multi_view_mouse_up_cb,
-                                       (void *) pMultiView);
+           ecore_event_handler_add(ECORE_EVENT_MOUSE_BUTTON_UP,
+                                   __vp_play_multi_view_mouse_up_cb,
+                                   (void *) pMultiView);
        pMultiView->pMouseMoveHandle =
-               ecore_event_handler_add(ECORE_EVENT_MOUSE_MOVE,
-                                       __vp_play_multi_view_mouse_move_cb,
-                                       (void *) pMultiView);
+           ecore_event_handler_add(ECORE_EVENT_MOUSE_MOVE,
+                                   __vp_play_multi_view_mouse_move_cb,
+                                   (void *) pMultiView);
        pMultiView->pConfigureNotify =
-               ecore_event_handler_add(ECORE_X_EVENT_WINDOW_CONFIGURE,
-                                       __vp_play_multi_view_configure_cb,
-                                       (void *) pMultiView);
+           ecore_event_handler_add(ECORE_X_EVENT_WINDOW_CONFIGURE,
+                                   __vp_play_multi_view_configure_cb,
+                                   (void *) pMultiView);
 
        // create prepare_cb pipe
        VP_EVAS_PIPE_DEL(pMultiView->pPreparePipe);
        pMultiView->pPreparePipe =
-               ecore_pipe_add((Ecore_Pipe_Cb)
-                              _vp_play_multi_view_prepare_pipe_cb,
-                              (void *) pMultiView);
+           ecore_pipe_add((Ecore_Pipe_Cb)
+                          _vp_play_multi_view_prepare_pipe_cb,
+                          (void *) pMultiView);
 
        if (pPlayView) {
                pMultiView->pMediaKey =
-                       vp_media_key_create(pPlayView->pWin,
-                                           __vp_play_multi_view_media_key_event_cb);
+                   vp_media_key_create(pPlayView->pWin,
+                                       __vp_play_multi_view_media_key_event_cb);
                vp_media_key_set_user_data(pMultiView->pMediaKey,
-                                          (void *) pMultiView);
+                                          (void *) pMultiView);
        }
 
        elm_win_indicator_mode_set(pMultiView->pWin, ELM_WIN_INDICATOR_HIDE);
@@ -3867,15 +3861,15 @@ multi_view_handle vp_play_multi_view_create(PlayView *pPlayView,
        elm_win_floating_mode_set(pMultiView->pWin, EINA_TRUE);
 
        evas_object_resize(pMultiView->pWin, VP_MULTI_DEFAULT_WIDTH,
-                          VP_MULTI_DEFAULT_HEIGHT);
+                          VP_MULTI_DEFAULT_HEIGHT);
 
        Evas *e = evas_object_evas_get(pMultiView->pWin);
        evas_event_callback_add(e, EVAS_CALLBACK_CANVAS_FOCUS_IN,
-                               _vp_play_multi_view_evas_focus_in_cb,
-                               pMultiView->pLayout);
+                               _vp_play_multi_view_evas_focus_in_cb,
+                               pMultiView->pLayout);
        evas_event_callback_add(e, EVAS_CALLBACK_CANVAS_FOCUS_OUT,
-                               _vp_play_multi_view_evas_focus_out_cb,
-                               pMultiView->pLayout);
+                               _vp_play_multi_view_evas_focus_out_cb,
+                               pMultiView->pLayout);
 
        _vp_play_multi_view_hide_layout(pMultiView);
 
@@ -3946,7 +3940,7 @@ bool vp_play_multi_view_realize(multi_view_handle pViewHandle)
 
        if (pMultiView->nLaunchingType == VIDEO_PLAY_TYPE_GALLERY) {
                char *szFolder =
-                       vp_play_util_get_folder_from_path(pMultiView->szMediaURL);
+                   vp_play_util_get_folder_from_path(pMultiView->szMediaURL);
                vp_media_contents_get_video_items_to_folder
                (VIDEO_SORT_BY_DATE_MOST_RECENT, szFolder,
                 &(pMultiView->pMediaItemList));
@@ -3961,15 +3955,15 @@ bool vp_play_multi_view_realize(multi_view_handle pViewHandle)
                }
                if (pPlayView->nListType == VIDEO_PLAY_LIST_TYPE_FOLDER) {
                        char *szFolder =
-                               vp_play_util_get_folder_from_path(pMultiView->szMediaURL);
+                           vp_play_util_get_folder_from_path(pMultiView->szMediaURL);
                        vp_media_contents_get_video_items_to_folder(nType, szFolder,
-                                       &(pMultiView->
-                                         pMediaItemList));
+                               &(pMultiView->
+                                 pMediaItemList));
                        VP_FREE(szFolder);
                } else {
                        vp_media_contents_get_video_items(nType,
-                                                         &(pMultiView->
-                                                           pMediaItemList));
+                                                         &(pMultiView->
+                                                           pMediaItemList));
                }
        }
        if (!_vp_play_multi_view_play_start(pMultiView, TRUE)) {
@@ -4022,7 +4016,7 @@ bool vp_play_multi_view_unrealize(multi_view_handle pViewHandle)
 }
 
 bool vp_play_multi_view_is_realize(multi_view_handle pViewHandle,
-                                  bool *bIsRealize)
+                                   bool *bIsRealize)
 {
        if (!pViewHandle) {
                VideoLogError("[ERR] No Exist pUserData.");
@@ -4133,7 +4127,7 @@ bool vp_play_multi_view_prev_play(multi_view_handle pViewHandle)
 }
 
 bool vp_play_multi_view_set_url(multi_view_handle pViewHandle,
-                               const char *szMediaURL)
+                                const char *szMediaURL)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4155,7 +4149,7 @@ bool vp_play_multi_view_set_url(multi_view_handle pViewHandle,
 }
 
 bool vp_play_multi_view_set_start_position(multi_view_handle pViewHandle,
-               int nStartPosition)
+        int nStartPosition)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4175,7 +4169,7 @@ bool vp_play_multi_view_set_start_position(multi_view_handle pViewHandle,
 }
 
 bool vp_play_multi_view_get_last_position(multi_view_handle pViewHandle,
-               int *nCurPosition)
+        int *nCurPosition)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4204,7 +4198,7 @@ bool vp_play_multi_view_get_last_position(multi_view_handle pViewHandle,
 }
 
 bool vp_play_multi_view_set_subtitle(multi_view_handle pViewHandle,
-                                    char *szSubtitle)
+                                     char *szSubtitle)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4222,7 +4216,7 @@ bool vp_play_multi_view_set_subtitle(multi_view_handle pViewHandle,
 }
 
 bool vp_play_multi_view_get_subtitle(multi_view_handle pViewHandle,
-                                    char **szSubtitle)
+                                     char **szSubtitle)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4232,7 +4226,7 @@ bool vp_play_multi_view_get_subtitle(multi_view_handle pViewHandle,
        MultiView *pMultiView = (MultiView *) pViewHandle;
 
        if (!vp_mm_player_get_subtitle_url
-                       (pMultiView->pPlayerHandle, szSubtitle)) {
+               (pMultiView->pPlayerHandle, szSubtitle)) {
                VideoLogError("vp_mm_player_get_subtitle_url is fail");
                return FALSE;
        }
@@ -4241,7 +4235,7 @@ bool vp_play_multi_view_get_subtitle(multi_view_handle pViewHandle,
 }
 
 bool vp_play_multi_view_get_audio_track(multi_view_handle pViewHandle,
-                                       int *nAudioTrack)
+                                        int *nAudioTrack)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4256,7 +4250,7 @@ bool vp_play_multi_view_get_audio_track(multi_view_handle pViewHandle,
 }
 
 bool vp_play_multi_view_set_audio_track(multi_view_handle pViewHandle,
-                                       int nAudioTrack)
+                                        int nAudioTrack)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4271,7 +4265,7 @@ bool vp_play_multi_view_set_audio_track(multi_view_handle pViewHandle,
 }
 
 bool vp_play_multi_view_set_manual_pause(multi_view_handle pViewHandle,
-               bool bManualPause)
+        bool bManualPause)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4287,7 +4281,7 @@ bool vp_play_multi_view_set_manual_pause(multi_view_handle pViewHandle,
 }
 
 bool vp_play_multi_view_get_manual_pause(multi_view_handle pViewHandle,
-               bool *bManualPause)
+        bool *bManualPause)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4302,7 +4296,7 @@ bool vp_play_multi_view_get_manual_pause(multi_view_handle pViewHandle,
 }
 
 bool vp_play_multi_view_set_rotate(multi_view_handle pViewHandle,
-                                  video_play_rotate_t nRotate)
+                                   video_play_rotate_t nRotate)
 {
        if (!pViewHandle) {
                VideoLogError("[ERR] No Exist pUserData.");
@@ -4337,8 +4331,8 @@ bool vp_play_multi_view_set_rotate(multi_view_handle pViewHandle,
 }
 
 bool vp_play_multi_view_get_sound_filter(multi_view_handle pViewHandle,
-               video_sound_alive_t *
-               nSoundAlive)
+        video_sound_alive_t *
+        nSoundAlive)
 {
        if (!pViewHandle) {
                VideoLogError("[ERR] No Exist pUserData.");
@@ -4353,7 +4347,7 @@ bool vp_play_multi_view_get_sound_filter(multi_view_handle pViewHandle,
 }
 
 bool vp_play_multi_view_set_sound_filter(multi_view_handle pViewHandle,
-               video_sound_alive_t nSoundAlive)
+        video_sound_alive_t nSoundAlive)
 {
        if (!pViewHandle) {
                VideoLogError("[ERR] No Exist pUserData.");
@@ -4368,8 +4362,8 @@ bool vp_play_multi_view_set_sound_filter(multi_view_handle pViewHandle,
 }
 
 bool vp_play_multi_view_set_launching_mode(multi_view_handle pViewHandle,
-               video_play_launching_type_t
-               nLaunchingType)
+        video_play_launching_type_t
+        nLaunchingType)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4467,8 +4461,9 @@ void vp_play_multi_view_web_type_disconnect(multi_view_handle pViewHandle)
        vp_mm_player_destroy(pMultiView->pPlayerHandle);
        pMultiView->pPlayerHandle = NULL;
 
-       if (nPosition > 0)
+       if (nPosition > 0) {
                pMultiView->nStartPosition = nPosition;
+       }
 }
 
 void vp_play_multi_view_web_type_reconnect(multi_view_handle pViewHandle)
@@ -4496,16 +4491,17 @@ void vp_play_multi_view_web_type_reconnect(multi_view_handle pViewHandle)
        }
 
        PlayView *pPlayView = pMultiView->pPlayView;
-       if (pPlayView->nStartPosition > 0)
+       if (pPlayView->nStartPosition > 0) {
                pMultiView->nStartPosition = pPlayView->nStartPosition;
+       }
 
        VideoLogInfo("pMultiView->nStartPosition : [%d]",
-                    pMultiView->nStartPosition);
+                    pMultiView->nStartPosition);
        _vp_play_multi_view_play_start(pMultiView, FALSE);
 }
 
 void vp_play_multi_view_set_cancelkey_press(multi_view_handle pViewHandle,
-               bool bCancelKeyPress)
+        bool bCancelKeyPress)
 {
        if (!pViewHandle) {
                VideoLogError("pViewHandle is NULL");
@@ -4518,7 +4514,7 @@ void vp_play_multi_view_set_cancelkey_press(multi_view_handle pViewHandle,
 }
 
 void vp_play_multi_view_get_cancelkey_press(multi_view_handle pViewHandle,
-               bool *bCancelKeyPress)
+        bool *bCancelKeyPress)
 {
        if (!pViewHandle) {
                VideoLogError("pViewHandle is NULL");
@@ -4546,7 +4542,7 @@ void vp_play_multi_view_destroy_exit_popup(multi_view_handle pViewHandle)
 }
 
 bool vp_play_multi_view_get_main_layout_show_state(multi_view_handle *
-               pViewHandle)
+        pViewHandle)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4561,7 +4557,7 @@ bool vp_play_multi_view_get_main_layout_show_state(multi_view_handle *
 
 //Focus UI
 static void _vp_play_multi_view_set_button_focus_sequence(MultiView *
-               pMultiView)
+        pMultiView)
 {
        if (pMultiView == NULL) {
                VideoLogError("pMultiView is NULL");
@@ -4571,71 +4567,71 @@ static void _vp_play_multi_view_set_button_focus_sequence(MultiView *
        elm_object_focus_set(pMultiView->pMinSizeBtn, EINA_TRUE);
 
        vp_play_util_focus_next_object_set(pMultiView->pMinSizeBtn,
-                                          pMultiView->pFullSizeBtn,
-                                          ELM_FOCUS_RIGHT);
+                                          pMultiView->pFullSizeBtn,
+                                          ELM_FOCUS_RIGHT);
        vp_play_util_focus_next_object_set(pMultiView->pMinSizeBtn,
-                                          pMultiView->pExitBtn,
-                                          ELM_FOCUS_LEFT);
+                                          pMultiView->pExitBtn,
+                                          ELM_FOCUS_LEFT);
        vp_play_util_focus_next_object_set(pMultiView->pMinSizeBtn,
-                                          pMultiView->pPlayFocusBtn,
-                                          ELM_FOCUS_DOWN);
+                                          pMultiView->pPlayFocusBtn,
+                                          ELM_FOCUS_DOWN);
 
        vp_play_util_focus_next_object_set(pMultiView->pFullSizeBtn,
-                                          pMultiView->pExitBtn,
-                                          ELM_FOCUS_RIGHT);
+                                          pMultiView->pExitBtn,
+                                          ELM_FOCUS_RIGHT);
        vp_play_util_focus_next_object_set(pMultiView->pFullSizeBtn,
-                                          pMultiView->pMinSizeBtn,
-                                          ELM_FOCUS_LEFT);
+                                          pMultiView->pMinSizeBtn,
+                                          ELM_FOCUS_LEFT);
        vp_play_util_focus_next_object_set(pMultiView->pFullSizeBtn,
-                                          pMultiView->pPlayFocusBtn,
-                                          ELM_FOCUS_DOWN);
+                                          pMultiView->pPlayFocusBtn,
+                                          ELM_FOCUS_DOWN);
 
        vp_play_util_focus_next_object_set(pMultiView->pExitBtn,
-                                          pMultiView->pMinSizeBtn,
-                                          ELM_FOCUS_RIGHT);
+                                          pMultiView->pMinSizeBtn,
+                                          ELM_FOCUS_RIGHT);
        vp_play_util_focus_next_object_set(pMultiView->pExitBtn,
-                                          pMultiView->pFullSizeBtn,
-                                          ELM_FOCUS_LEFT);
+                                          pMultiView->pFullSizeBtn,
+                                          ELM_FOCUS_LEFT);
        vp_play_util_focus_next_object_set(pMultiView->pExitBtn,
-                                          pMultiView->pPlayFocusBtn,
-                                          ELM_FOCUS_DOWN);
+                                          pMultiView->pPlayFocusBtn,
+                                          ELM_FOCUS_DOWN);
 
 
        vp_play_util_focus_next_object_set(pMultiView->pPlayFocusBtn,
-                                          pMultiView->pNextBtn,
-                                          ELM_FOCUS_RIGHT);
+                                          pMultiView->pNextBtn,
+                                          ELM_FOCUS_RIGHT);
        vp_play_util_focus_next_object_set(pMultiView->pPlayFocusBtn,
-                                          pMultiView->pPrevBtn,
-                                          ELM_FOCUS_LEFT);
+                                          pMultiView->pPrevBtn,
+                                          ELM_FOCUS_LEFT);
        vp_play_util_focus_next_object_set(pMultiView->pPlayFocusBtn,
-                                          pMultiView->pMinSizeBtn,
-                                          ELM_FOCUS_UP);
+                                          pMultiView->pMinSizeBtn,
+                                          ELM_FOCUS_UP);
 
        vp_play_util_focus_next_object_set(pMultiView->pNextBtn,
-                                          pMultiView->pPrevBtn,
-                                          ELM_FOCUS_RIGHT);
+                                          pMultiView->pPrevBtn,
+                                          ELM_FOCUS_RIGHT);
        vp_play_util_focus_next_object_set(pMultiView->pNextBtn,
-                                          pMultiView->pPlayFocusBtn,
-                                          ELM_FOCUS_LEFT);
+                                          pMultiView->pPlayFocusBtn,
+                                          ELM_FOCUS_LEFT);
        vp_play_util_focus_next_object_set(pMultiView->pNextBtn,
-                                          pMultiView->pMinSizeBtn,
-                                          ELM_FOCUS_UP);
+                                          pMultiView->pMinSizeBtn,
+                                          ELM_FOCUS_UP);
 
        vp_play_util_focus_next_object_set(pMultiView->pPrevBtn,
-                                          pMultiView->pPlayFocusBtn,
-                                          ELM_FOCUS_RIGHT);
+                                          pMultiView->pPlayFocusBtn,
+                                          ELM_FOCUS_RIGHT);
        vp_play_util_focus_next_object_set(pMultiView->pPrevBtn,
-                                          pMultiView->pNextBtn,
-                                          ELM_FOCUS_LEFT);
+                                          pMultiView->pNextBtn,
+                                          ELM_FOCUS_LEFT);
        vp_play_util_focus_next_object_set(pMultiView->pPrevBtn,
-                                          pMultiView->pMinSizeBtn,
-                                          ELM_FOCUS_UP);
+                                          pMultiView->pMinSizeBtn,
+                                          ELM_FOCUS_UP);
 
 }
 
 //Focus UI
 void vp_play_multi_view_set_main_layout_focus_out(multi_view_handle *
-               pViewHandle)
+        pViewHandle)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4657,7 +4653,7 @@ void vp_play_multi_view_set_main_layout_focus_out(multi_view_handle *
 }
 
 void vp_play_multi_view_set_main_layout_focus_in(multi_view_handle *
-               pViewHandle)
+        pViewHandle)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4686,7 +4682,7 @@ void vp_play_multi_view_set_main_layout_focus_in(multi_view_handle *
 }
 
 bool vp_play_multi_view_get_main_layout_focus_state(multi_view_handle *
-               pViewHandle)
+        pViewHandle)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4711,7 +4707,7 @@ void vp_play_multi_view_show_main_layout(multi_view_handle *pViewHandle)
 }
 
 static void _vp_play_multi_view_speed_for_steps(MultiView *pMultiView,
-               bool bSpeedFF)
+        bool bSpeedFF)
 {
        if (pMultiView == NULL) {
                VideoLogError("pMultiView is NULL");
@@ -4729,7 +4725,7 @@ static void _vp_play_multi_view_speed_for_steps(MultiView *pMultiView,
        int nCurPosition = 0;
 
        if (!vp_mm_player_get_position
-                       (pMultiView->pPlayerHandle, &nCurPosition)) {
+               (pMultiView->pPlayerHandle, &nCurPosition)) {
                VideoLogError("vp_mm_player_get_position is fail");
                return;
        }
@@ -4755,10 +4751,10 @@ static void _vp_play_multi_view_speed_for_steps(MultiView *pMultiView,
        }
 #if 1
        if (vp_mm_player_set_position
-                       (pMultiView->pPlayerHandle, nSetPosition)) {
+               (pMultiView->pPlayerHandle, nSetPosition)) {
 #else
        if (vp_mm_player_set_position_by_key_frame
-                       (pMultiView->pPlayerHandle, nSetPosition)) {
+               (pMultiView->pPlayerHandle, nSetPosition)) {
 #endif
                pMultiView->bSeekComplete = FALSE;
                pMultiView->nCurPosition = nSetPosition;
@@ -4769,9 +4765,9 @@ static void _vp_play_multi_view_speed_for_steps(MultiView *pMultiView,
 
 void
 vp_play_multi_view_ff_rew_keyboard_longpress_event_cb(multi_view_handle
-               pViewHandle,
-               bool bRelease,
-               bool bFFseek)
+        pViewHandle,
+        bool bRelease,
+        bool bFFseek)
 {
        if (!pViewHandle) {
                VideoLogError("pViewHandle is NULL");
@@ -4788,7 +4784,7 @@ vp_play_multi_view_ff_rew_keyboard_longpress_event_cb(multi_view_handle
                        (VP_MEDIA_KEY_FASTFORWARD, bRelease, pMultiView);
                else
                        __vp_play_multi_view_media_key_event_cb(VP_MEDIA_KEY_REWIND,
-                                                               bRelease, pMultiView);
+                                                               bRelease, pMultiView);
        } else if (pMultiView->pSpeedTimer && bRelease == TRUE) {
 
                if (pMultiView->nSpeedValue < 2) {
@@ -4797,10 +4793,10 @@ vp_play_multi_view_ff_rew_keyboard_longpress_event_cb(multi_view_handle
                } else {
                        int nPosition = 0;
                        if (vp_mm_player_get_position
-                                       (pMultiView->pPlayerHandle, &nPosition)) {
+                               (pMultiView->pPlayerHandle, &nPosition)) {
                                if (vp_mm_player_set_position
-                                               (pMultiView->pPlayerHandle,
-                                                pMultiView->nCurPosition)) {
+                                       (pMultiView->pPlayerHandle,
+                                        pMultiView->nCurPosition)) {
                                        pMultiView->bSeekComplete = FALSE;
                                }
                        }
@@ -4809,7 +4805,7 @@ vp_play_multi_view_ff_rew_keyboard_longpress_event_cb(multi_view_handle
                VP_EVAS_TIMER_DEL(pMultiView->pSpeedTimer);
 
                elm_object_signal_emit(pMultiView->pLayout,
-                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
+                                      VP_MULTI_SIGNAL_MAIN_SPEED_HIDE, "*");
 
                if (pMultiView->bManualPause == FALSE) {
                        if (!vp_mm_player_play(pMultiView->pPlayerHandle)) {
@@ -4824,7 +4820,7 @@ vp_play_multi_view_ff_rew_keyboard_longpress_event_cb(multi_view_handle
 }
 
 bool vp_play_multi_view_change_to_normal_view(multi_view_handle
-               pViewHandle)
+        pViewHandle)
 {
        if (pViewHandle == NULL) {
                VideoLogError("pViewHandle is NULL");
@@ -4834,7 +4830,7 @@ bool vp_play_multi_view_change_to_normal_view(multi_view_handle
        MultiView *pMultiView = (MultiView *) pViewHandle;
 
        __vp_play_multi_view_btn_clicked_cb(pViewHandle,
-                                           pMultiView->pFullSizeBtn, NULL);
+                                           pMultiView->pFullSizeBtn, NULL);
 
        return TRUE;
 }
index 5184fb7..bd6d78f 100755 (executable)
 
 typedef struct _ProgressMouseInfo {
        int                     nDownPosX;
-}ProgressMouseInfo;
+} ProgressMouseInfo;
 
-typedef enum
-{
+typedef enum {
        BUTTON_TYPE_NORMAL = 0,
        BUTTON_TYPE_PRESSED,
        BUTTON_TYPE_DIM,
-}ButtonType;
+} ButtonType;
 
 #ifdef K_FEATURE_MICROSEEK
-typedef enum
-{
+typedef enum {
        SEEK_LEVEL_NORMAL = 1,
        SEEK_LEVEL_HALF = 2,
        SEEK_LEVEL_QUARTER = 4,
-}SeekLevel;
+} SeekLevel;
 #endif
 
-typedef struct _NormalView
-{
+typedef struct _NormalView {
        PlayView                        *pPlayView;
        Ecore_X_Window                  nXwinID;
 
@@ -419,7 +416,7 @@ typedef struct _NormalView
        int             nSubtitleLanguageCount;
        bool            *pSelectedSubtitleLanguage;
 #endif
-}NormalView;
+} NormalView;
 
 
 static void _vp_play_normal_view_destroy_handle(NormalView *pNormalView);
@@ -495,7 +492,7 @@ static void __vp_play_normal_view_seek_pipe_cb(void *pUserData, void *pBuf, int
 static void __vp_normal_error_popup_time_out_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo);
 static void __vp_normal_error_popup_key_event_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo);
 static void __vp_normal_error_popup_mouse_event_cb(void *pUserData, Evas *pEvas, Evas_Object *pObj, void *pEventInfo);
-static void __vp_normal_completed_cb (void *pUserData);
+static void __vp_normal_completed_cb(void *pUserData);
 
 
 //Focus UI
@@ -536,18 +533,18 @@ static void __vp_normal_subtitle_set_caption_window(NormalView *pNormalView)
        }
        vp_play_subtitle_get_alignment(pNormalView->pSubtitle, &nAlignment);
        vp_play_util_set_object_size(_EDJ(vp_play_subtitle_get_object(pNormalView->pSubtitle)),
-                                                               ww, hh, VP_NORMAL_SET_CAPTION_WINDOW_SIZE_ID);
+                                    ww, hh, VP_NORMAL_SET_CAPTION_WINDOW_SIZE_ID);
        width = bLandscape ? VP_SUBTITLE_LANDSCAPE_SIZE : VP_SUBTITLE_PORTRAIT_SIZE;
        if (nAlignment == VP_SUBTITLE_ALIGNMENT_LEFT) {
                offset_x = 0;
        } else if (nAlignment == VP_SUBTITLE_ALIGNMENT_CENTER) {
-               offset_x = (width-ww)/2;
+               offset_x = (width - ww) / 2;
        } else if (nAlignment == VP_SUBTITLE_ALIGNMENT_RIGHT) {
-               offset_x = width-ww;
+               offset_x = width - ww;
        }
        VideoLogInfo("nAlignment:%d,offset_x:%d", nAlignment, offset_x);
        vp_play_util_set_object_offset(_EDJ(vp_play_subtitle_get_object(pNormalView->pSubtitle)),
-                                       offset_x, 0, VP_NORMAL_SET_CAPTION_WINDOW_OFFSET_ID);
+                                      offset_x, 0, VP_NORMAL_SET_CAPTION_WINDOW_OFFSET_ID);
 
        vp_play_subtitle_set_caption_win_color(pNormalView->pSubtitle, TRUE);
 }
@@ -694,7 +691,7 @@ static void __vp_normal_prepare_error_popup_time_out_cb(void *pUserData, Evas_Ob
        pNormalView->bIsPopupShow = FALSE;
 
        if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE ||
-               pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
+               pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
                PlayView *pPlayView = pNormalView->pPlayView;
                if (!pPlayView) {
                        VideoLogError("pPlayView is NULL");
@@ -733,7 +730,7 @@ static void __vp_normal_error_popup_key_event_cb(void *pUserData, Evas_Object *p
 
        pNormalView->bIsPopupShow = FALSE;
        if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE ||
-               pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
+               pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
                PlayView *pPlayView = pNormalView->pPlayView;
                if (!pPlayView) {
                        VideoLogError("pPlayView is NULL");
@@ -752,8 +749,7 @@ static void __vp_normal_error_popup_key_event_cb(void *pUserData, Evas_Object *p
                vp_play_util_set_unlock_power_key();
 
                pPlayView->pFunc->vp_play_func_exit(pPlayView);
-       }
-       else {
+       } else {
                _vp_play_normal_view_on_next_play(pNormalView, FALSE);
        }
 
@@ -778,7 +774,7 @@ static void __vp_normal_error_popup_mouse_event_cb(void *pUserData, Evas *pEvas,
                VP_EVAS_DEL(pNormalView->pPopup);
                pNormalView->bIsPopupShow = FALSE;
                if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE ||
-                       pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
+                       pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
                        PlayView *pPlayView = pNormalView->pPlayView;
                        if (!pPlayView) {
                                VideoLogError("pPlayView is NULL");
@@ -797,8 +793,7 @@ static void __vp_normal_error_popup_mouse_event_cb(void *pUserData, Evas *pEvas,
                        vp_play_util_set_unlock_power_key();
 
                        pPlayView->pFunc->vp_play_func_exit(pPlayView);
-               }
-               else {
+               } else {
                        _vp_play_normal_view_on_next_play(pNormalView, FALSE);
                }
        }
@@ -856,8 +851,7 @@ static void __vp_normal_sound_alive_popup_close_cb(int nType, bool bPause, void
                }
                _vp_play_normal_view_set_play_state(pNormalView);
                _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       else {
+       } else {
                if (pNormalView->bManualPause == FALSE) {
                        if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
                                VideoLogWarning("Pause Fail");
@@ -873,14 +867,11 @@ static void __vp_normal_sound_alive_popup_close_cb(int nType, bool bPause, void
 
        if (nSAType == VIDEO_SA_NORMAL) {
                nSoundFilter = VP_MM_PLAYER_FILTER_NONE;
-       }
-       else if (nSAType == VIDEO_SA_VOICE) {
+       } else if (nSAType == VIDEO_SA_VOICE) {
                nSoundFilter = VP_MM_PLAYER_FILTER_VOICE;
-       }
-       else if (nSAType == VIDEO_SA_MOVIE) {
+       } else if (nSAType == VIDEO_SA_MOVIE) {
                nSoundFilter = VP_MM_PLAYER_FILTER_MOVIE;
-       }
-       else if (nSAType == VIDEO_SA_7_1_CH) {
+       } else if (nSAType == VIDEO_SA_7_1_CH) {
                nSoundFilter = VP_MM_PLAYER_FILTER_VITUAL_71;
 
                video_sound_device_type_t nSoundDevType = VP_SOUND_DEVICE_NONE;
@@ -899,17 +890,17 @@ static void __vp_normal_sound_alive_popup_close_cb(int nType, bool bPause, void
                        pNormalView->bIsPopupShow = TRUE;
                        char *szMsg = g_strdup_printf(VP_PLAY_STRING_71CH_ONLY_EARPHONE, "7.1");
                        pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_WITH_CANCEL_BTN,
-                                                               NULL,
-                                                               szMsg,
-                                                               0.0, NULL,
-                                                               __vp_normal_popup_key_event_cb,
-                                                               __vp_normal_popup_mouse_event_cb,
-                                                               pNormalView);
+                                                             NULL,
+                                                             szMsg,
+                                                             0.0, NULL,
+                                                             __vp_normal_popup_key_event_cb,
+                                                             __vp_normal_popup_mouse_event_cb,
+                                                             pNormalView);
                        VP_FREE(szMsg);
 
                        Evas_Object *pBtn = NULL;
                        pBtn = elm_button_add(pNormalView->pPopup);
-                       elm_object_style_set (pBtn, "popup_button/default");
+                       elm_object_style_set(pBtn, "popup_button/default");
                        elm_object_domain_translatable_text_set(pBtn, VP_SYS_STR_PREFIX, VP_PLAY_STRING_COM_OK_IDS);
                        elm_object_part_content_set(pNormalView->pPopup, "button1", pBtn);
                        evas_object_smart_callback_add(pBtn, "clicked", __vp_normal_popup_key_event_cb, (void*)pNormalView);
@@ -955,8 +946,7 @@ static void __vp_normal_sound_path_popup_close_cb(int nType, bool bPause, void *
 
                _vp_play_normal_view_set_play_state(pNormalView);
                _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       else {
+       } else {
                if (pNormalView->bManualPause == FALSE) {
                        if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
                                VideoLogWarning("play Fail");
@@ -1052,8 +1042,7 @@ static void __vp_normal_setting_popup_close_cb(int nType, bool bPause, void *pUs
                }
        }
 
-       switch (nType)
-       {
+       switch (nType) {
        case VP_SETTING_MODE_PLAY_SPEED:
                _vp_play_normal_view_on_play_speed_popup(pNormalView);
                break;
@@ -1079,7 +1068,7 @@ static void __vp_normal_capture_popup_close_cb(int nType, bool bPause, void *pUs
        NormalView *pNormalView = (NormalView *)pUserData;
 
        if (nType != -1) {
-               pNormalView->bCaptureMode= (bool)nType;
+               pNormalView->bCaptureMode = (bool)nType;
        }
        vp_play_preference_set_capture_on_key(pNormalView->bCaptureMode);
 
@@ -1143,8 +1132,7 @@ static void __vp_normal_play_speed_popup_done_cb(double fValue, bool bSetValue,
                        pNormalView->pPlayView->fPlaySpeed = fValue;
                }
 
-               if ((fValue - 0.05) > 1.000 || (fValue + 0.05) < 1.000)
-               {
+               if ((fValue - 0.05) > 1.000 || (fValue + 0.05) < 1.000) {
                        elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_PLAYING_SPEED_SHOW, "*");
                        elm_object_signal_callback_add(pNormalView->pMainLayout, "elm,action,click", "", _vp_play_normal_view_on_play_speed_popup_cb, pNormalView);
                        _vp_play_normal_view_create_layout_hide_timer(pNormalView);
@@ -1186,25 +1174,22 @@ static void __vp_normal_subtitle_popup_close_cb(int nType, bool bPause, void *pU
                pNormalView->bIsSubtitleShow = FALSE;
        }
 
-       switch (nSubtitleMode)
-       {
+       switch (nSubtitleMode) {
        case VP_SUBTITLE_MODE_NONE:
        case VP_SUBTITLE_MODE_CLOSE:
                break;
-       case VP_SUBTITLE_MODE_ACTIVATION:
-       {
+       case VP_SUBTITLE_MODE_ACTIVATION: {
                bool bShow = FALSE;
                vp_play_preference_get_subtitle_show_key(&bShow);
                if (bShow) {
                        vp_play_subtitle_realize(pNormalView->pSubtitle);
                        vp_mm_player_set_deactivate_subtitle(pNormalView->pPlayerHandle, FALSE);
-               }
-               else {
+               } else {
                        vp_play_subtitle_unrealize(pNormalView->pSubtitle);
                        vp_mm_player_set_deactivate_subtitle(pNormalView->pPlayerHandle, TRUE);
                }
        }
-               break;
+       break;
        case VP_SUBTITLE_MODE_SYNC:
                _vp_play_normal_view_on_subtitle_sync_popup(pNormalView);
                break;
@@ -1312,10 +1297,10 @@ static void __vp_normal_subtitle_size_popup_done_cb(int nType, bool bPause, void
                vp_play_subtitle_set_size_zoom(pNormalView->pSubtitle, 1.0);
                vp_play_preference_set_subtitle_size_key(nType);
                _vp_play_normal_view_set_subtitle_font_config(pNormalView);
-       #ifdef SUBTITLE_K_FEATURE
+#ifdef SUBTITLE_K_FEATURE
                /*Set caption window: size, rel1, color*/
                __vp_normal_subtitle_set_caption_window(pNormalView);
-       #endif
+#endif
        }
 
        if (bPause) {
@@ -1327,16 +1312,16 @@ static void __vp_normal_subtitle_size_popup_done_cb(int nType, bool bPause, void
        }
        _vp_play_normal_view_on_subtitle_popup(pNormalView);
 
-/*
-       if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
+       /*
+               if (pNormalView->bManualPause == FALSE) {
+                       if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
+                               VideoLogWarning("Pause Fail");
+                       }
+                       _vp_play_normal_view_set_play_state(pNormalView);
+                       _vp_play_normal_view_on_capture_mode(pNormalView);
+                       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
                }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }
-*/
+       */
 }
 
 
@@ -1353,26 +1338,26 @@ static void __vp_normal_subtitle_font_popup_done_cb(char *szFontName, void *pUse
                vp_play_subtitle_set_font(pNormalView->pSubtitle, szFontName);
                vp_play_preference_set_subtitle_font_name_key(szFontName);
                _vp_play_normal_view_set_subtitle_font_config(pNormalView);
-       #ifdef SUBTITLE_K_FEATURE
+#ifdef SUBTITLE_K_FEATURE
                /*Set caption window: size, rel1, color*/
                __vp_normal_subtitle_set_caption_window(pNormalView);
-       #endif
+#endif
        }
 
        vp_subtitle_font_destroy(pNormalView->pSubtitleFontPopup);
        pNormalView->pSubtitleFontPopup = NULL;
        pNormalView->bIsPopupShow = FALSE;
 
-/*
-       if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
+       /*
+               if (pNormalView->bManualPause == FALSE) {
+                       if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
+                               VideoLogWarning("Pause Fail");
+                       }
+                       _vp_play_normal_view_set_play_state(pNormalView);
+                       _vp_play_normal_view_on_capture_mode(pNormalView);
+                       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
                }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }
-*/
+       */
        _vp_play_normal_view_on_subtitle_popup(pNormalView);
 }
 
@@ -1449,14 +1434,14 @@ static void __vp_normal_subtitle_select_popup_done_cb(char *szFilePath, void *pU
                        goto SELECT_DONE;
                }
        }
-/*
-       int nPosition = 0;
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-               VideoLogError("vp_mm_player_get_position is fail");
-               pNormalView->nStartPosition = nPosition;
-       }
-*/
-       pNormalView->bIsExistSubtitle = vp_mm_player_set_subtitle_url(pNormalView->pPlayerHandle,szFilePath);
+       /*
+               int nPosition = 0;
+               if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
+                       VideoLogError("vp_mm_player_get_position is fail");
+                       pNormalView->nStartPosition = nPosition;
+               }
+       */
+       pNormalView->bIsExistSubtitle = vp_mm_player_set_subtitle_url(pNormalView->pPlayerHandle, szFilePath);
 
 SELECT_DONE:
        VP_FREE(szSubtitle);
@@ -1485,14 +1470,11 @@ static void __vp_normal_subtitle_font_color_popup_done_cb(int nType, bool bPause
                video_subtitle_color_t nColor = VP_SUBTITLE_COLOR_BLACK;
                if (nType == VIDEO_SUBTITLE_COLOR_BLACK) {
                        nColor = VP_SUBTITLE_COLOR_BLACK;
-               }
-               else if (nType == VIDEO_SUBTITLE_COLOR_BLUE) {
+               } else if (nType == VIDEO_SUBTITLE_COLOR_BLUE) {
                        nColor = VP_SUBTITLE_COLOR_BLUE;
-               }
-               else if (nType == VIDEO_SUBTITLE_COLOR_GREEN) {
+               } else if (nType == VIDEO_SUBTITLE_COLOR_GREEN) {
                        nColor = VP_SUBTITLE_COLOR_GREEN;
-               }
-               else if (nType == VIDEO_SUBTITLE_COLOR_WHITE) {
+               } else if (nType == VIDEO_SUBTITLE_COLOR_WHITE) {
                        nColor = VP_SUBTITLE_COLOR_WHITE;
                }
                //need to improve....
@@ -1540,11 +1522,9 @@ static void __vp_normal_subtitle_bg_color_popup_done_cb(int nType, bool bPause,
                video_subtitle_color_t nColor = VP_SUBTITLE_COLOR_BLACK;
                if (nType == VIDEO_SUBTITLE_COLOR_BLACK) {
                        nColor = VP_SUBTITLE_COLOR_BLACK;
-               }
-               else if (nType == VIDEO_SUBTITLE_COLOR_WHITE) {
+               } else if (nType == VIDEO_SUBTITLE_COLOR_WHITE) {
                        nColor = VP_SUBTITLE_COLOR_WHITE;
-               }
-               else if (nType == VIDEO_SUBTITLE_COLOR_NONE) {
+               } else if (nType == VIDEO_SUBTITLE_COLOR_NONE) {
                        nColor = VP_SUBTITLE_COLOR_NONE;
                }
                vp_play_subtitle_set_bg_color(pNormalView->pSubtitle, nColor);
@@ -1697,13 +1677,12 @@ static void __vp_normal_subtitle_track_popup_close_cb(int nType, bool bPause, vo
                }*/
 
                pNormalView->nDefaultSubtitleTrackIndex = nType;
-       #ifndef _SUBTITLE_MULTI_LANGUAGE
+#ifndef _SUBTITLE_MULTI_LANGUAGE
                vp_mm_player_set_subtitle_track(pNormalView->pPlayerHandle, pNormalView->nDefaultSubtitleTrackIndex);
-       #endif
+#endif
                _vp_play_normal_view_on_subtitle_popup(pNormalView);
 
-       }
-       else {
+       } else {
                _vp_play_normal_view_on_subtitle_popup(pNormalView);
        }
 
@@ -1739,8 +1718,7 @@ static void __vp_normal_detail_popup_close_cb(int nType, bool bPause, void *pUse
                }
                _vp_play_normal_view_set_play_state(pNormalView);
                _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       else {
+       } else {
                _vp_play_normal_view_create_layout_hide_timer(pNormalView);
        }
 
@@ -1762,8 +1740,7 @@ static void __vp_normal_audio_track_popup_close_cb(int nType, bool bPause, void
                }
                _vp_play_normal_view_set_play_state(pNormalView);
                _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       else {
+       } else {
                if (pNormalView->bManualPause == FALSE) {
                        if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
                                VideoLogWarning("Pause Fail");
@@ -1784,8 +1761,7 @@ static void __vp_normal_audio_track_popup_close_cb(int nType, bool bPause, void
                }
                _vp_play_normal_view_set_play_state(pNormalView);
                _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       else {
+       } else {
                _vp_play_normal_view_create_layout_hide_timer(pNormalView);
        }
        if (nType != -1) {
@@ -1825,7 +1801,7 @@ static Evas_Event_Flags __vp_normal_gesture_n_tab_end_cb(void *pUserData , void
 
        Elm_Gesture_Taps_Info *p = (Elm_Gesture_Taps_Info *) pEventInfo;
        NormalView *pNormalView = (NormalView *)pUserData;
-       VideoLogInfo("gesture tab = %d" ,p->n);
+       VideoLogInfo("gesture tab = %d" , p->n);
 
        if (p->n == 1) {
                if (pNormalView->pVolumeHandle) {
@@ -1844,8 +1820,7 @@ static Evas_Event_Flags __vp_normal_gesture_n_tab_end_cb(void *pUserData , void
 
                if (pNormalView->bShowLayout) {
                        _vp_play_normal_view_hide_layout(pNormalView, FALSE);
-               }
-               else {
+               } else {
                        _vp_play_normal_view_show_layout(pNormalView);
                }
        }
@@ -1930,8 +1905,7 @@ static void __vp_normal_volume_job_cb(void *pUserData)
                                pNormalView->nMomentDefaultVal = nMaxVal;
                        }
                }
-       }
-       else {
+       } else {
                if (!vp_play_volume_popup_set_value(pNormalView->pVolumePopupHandle, pNormalView->nMomentDefaultVal - pNormalView->nMomentWeight)) {
                        VideoLogWarning("vp_play_volume_popup_set_value is fail");
                }
@@ -2007,8 +1981,7 @@ static void __vp_normal_brightness_job_cb(void *pUserData)
                                pNormalView->nMomentDefaultVal = nMaxVal;
                        }
                }
-       }
-       else {
+       } else {
                int nMinVal = 0;
                if (!vp_play_brightness_set_value(pNormalView->pBrightnessHandle, pNormalView->nMomentDefaultVal - pNormalView->nMomentWeight)) {
                        VideoLogWarning("vp_play_brightness_set_value is fail");
@@ -2046,17 +2019,16 @@ static Eina_Bool __vp_normal_momentum_press_timer_cb(void *pUserData)
        pNormalView->pMomentTimer = NULL;
        bool bVolumeMode = FALSE;
 
-       if (pNormalView->nGestureStartPosX < (pNormalView->nWindowWidth/2)) {
+       if (pNormalView->nGestureStartPosX < (pNormalView->nWindowWidth / 2)) {
                bVolumeMode = TRUE;
        }
 
        if (bVolumeMode) {
                VP_EVAS_JOB_DEL(pNormalView->pVolumeJob);
-               pNormalView->pVolumeJob = ecore_job_add(__vp_normal_volume_job_cb,(void *)pNormalView);
-       }
-       else {
+               pNormalView->pVolumeJob = ecore_job_add(__vp_normal_volume_job_cb, (void *)pNormalView);
+       } else {
                VP_EVAS_JOB_DEL(pNormalView->pBrightnessJob);
-               pNormalView->pBrightnessJob = ecore_job_add(__vp_normal_brightness_job_cb,(void *)pNormalView);
+               pNormalView->pBrightnessJob = ecore_job_add(__vp_normal_brightness_job_cb, (void *)pNormalView);
        }
 
        return EINA_FALSE;
@@ -2099,8 +2071,7 @@ static Evas_Event_Flags __vp_normal_gesture_momentum_start_cb(void *pUserData, v
        if (bLandscape) {
                pNormalView->nWindowWidth = nHeight;
                pNormalView->nWindowHeight = nWidth;
-       }
-       else {
+       } else {
 
                pNormalView->nWindowWidth = nWidth;
                pNormalView->nWindowHeight = nHeight;
@@ -2115,7 +2086,7 @@ static Evas_Event_Flags __vp_normal_gesture_momentum_start_cb(void *pUserData, v
                pNormalView->nGestureStartPosX = p->x1;
                pNormalView->nMomentWeight = 0;
 
-               if (p->x1 < (pNormalView->nWindowWidth/2)) {
+               if (p->x1 < (pNormalView->nWindowWidth / 2)) {
                        bVolumeMode = TRUE;
                }
 
@@ -2142,8 +2113,7 @@ static Evas_Event_Flags __vp_normal_gesture_momentum_start_cb(void *pUserData, v
                        if (!vp_play_volume_popup_get_max_value(&nMaxVal)) {
                                VideoLogError("vp_play_volume_popup_get_max_value is fail");
                        }
-               }
-               else {
+               } else {
 
                        if (!vp_play_brightness_get_value(&pNormalView->nMomentDefaultVal)) {
                                VideoLogError("vp_play_brightness_get_value is fail");
@@ -2160,15 +2130,14 @@ static Evas_Event_Flags __vp_normal_gesture_momentum_start_cb(void *pUserData, v
                pNormalView->pMomentTimer = NULL;
 
                pNormalView->pMomentTimer = ecore_timer_add(VP_NORMAL_MOMENTUM_PRESS_TIMER_INTERVAL,
-                               __vp_normal_momentum_press_timer_cb, (void *)pNormalView);
+                                           __vp_normal_momentum_press_timer_cb, (void *)pNormalView);
 
                if (nMaxVal <= 0) {
                        nMaxVal = 1;
                }
-               pNormalView->nMomentStep = (pNormalView->nWindowHeight/2) / (nMaxVal-nMinVal);
+               pNormalView->nMomentStep = (pNormalView->nWindowHeight / 2) / (nMaxVal - nMinVal);
 #endif
-       }
-       else    {
+       } else  {
                pNormalView->nGestureStartPosX = p->x2;
                pNormalView->nGestureStartPosY = p->y2;
        }
@@ -2211,7 +2180,7 @@ static Evas_Event_Flags __vp_normal_gesture_momentum_move_cb(void *pUserData, vo
        if (pNormalView->bZoomEnable == FALSE) {
 #ifdef ENABLE_VOLUME_BRIGHTNESS_POPUP
                if (pNormalView->pMomentTimer ||
-                       pNormalView->bLockScreen) {
+                       pNormalView->bLockScreen) {
                        return EVAS_EVENT_FLAG_NONE;
                }
 
@@ -2225,7 +2194,7 @@ static Evas_Event_Flags __vp_normal_gesture_momentum_move_cb(void *pUserData, vo
                        pNormalView->nMomentStep = 1;
                }
 
-               if (p->x1 < (pNormalView->nWindowWidth/2)) {
+               if (p->x1 < (pNormalView->nWindowWidth / 2)) {
                        bVolumeMode = TRUE;
                }
 
@@ -2257,14 +2226,13 @@ static Evas_Event_Flags __vp_normal_gesture_momentum_move_cb(void *pUserData, vo
 
                if (bVolumeMode) {
                        VP_EVAS_JOB_DEL(pNormalView->pVolumeJob);
-                       pNormalView->pVolumeJob = ecore_job_add(__vp_normal_volume_job_cb,(void *)pNormalView);
+                       pNormalView->pVolumeJob = ecore_job_add(__vp_normal_volume_job_cb, (void *)pNormalView);
                } else {
                        VP_EVAS_JOB_DEL(pNormalView->pBrightnessJob);
-                       pNormalView->pBrightnessJob = ecore_job_add(__vp_normal_brightness_job_cb,(void *)pNormalView);
+                       pNormalView->pBrightnessJob = ecore_job_add(__vp_normal_brightness_job_cb, (void *)pNormalView);
                }
 #endif
-       }
-       else {
+       } else {
                int nDiffX = 0;
                int nDiffY = 0;
                int nWidth = 0;
@@ -2285,8 +2253,7 @@ static Evas_Event_Flags __vp_normal_gesture_momentum_move_cb(void *pUserData, vo
                if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
                        rtDst.w = nHeight;
                        rtDst.h = nWidth;
-               }
-               else {
+               } else {
                        rtDst.w = nWidth;
                        rtDst.h = nHeight;
                }
@@ -2294,8 +2261,8 @@ static Evas_Event_Flags __vp_normal_gesture_momentum_move_cb(void *pUserData, vo
 
                vp_play_util_calculator_position(rtSrc, rtDst, &rtResult, pNormalView->nDisplayMode);
 
-               fX -= (double)nDiffX/rtResult.w;
-               fY -= (double)nDiffY/rtResult.h;
+               fX -= (double)nDiffX / rtResult.w;
+               fY -= (double)nDiffY / rtResult.h;
 
                pNormalView->nGestureStartPosX = p->x2;
                pNormalView->nGestureStartPosY = p->y2;
@@ -2417,7 +2384,7 @@ static Evas_Event_Flags __vp_normal_gesture_zoom_move_cb(void *pUserData, void *
                return EVAS_EVENT_FLAG_NONE;
        }
 
-       double fVal = pZoomInfo->zoom/ pNormalView->fActiveZoom;
+       double fVal = pZoomInfo->zoom / pNormalView->fActiveZoom;
 
        pNormalView->fActiveZoom = pZoomInfo->zoom;
 
@@ -2434,7 +2401,7 @@ static Evas_Event_Flags __vp_normal_gesture_zoom_move_cb(void *pUserData, void *
        if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
                bLandscape = TRUE;
        }
-       if (bLandscape && fabs(pNormalView->fPrevZoomValue - pNormalView->fZoomValue)< 0.05) {
+       if (bLandscape && fabs(pNormalView->fPrevZoomValue - pNormalView->fZoomValue) < 0.05) {
 //             VideoLogWarning("same ZoomValue. skip it");
                return EVAS_EVENT_FLAG_ON_HOLD;
        }
@@ -2451,7 +2418,7 @@ static Evas_Event_Flags __vp_normal_gesture_zoom_move_cb(void *pUserData, void *
 
        // event filtering
        if ((pNormalView->fZoomValue > 1.0 && pNormalView->fZoomValue < 3.0) &&
-            (pNormalView->nPrevZoomPosX == (int)(fX * nSrcW)) && (pNormalView->nPrevZoomPosY == (int)(fY * nSrcH))) {
+               (pNormalView->nPrevZoomPosX == (int)(fX * nSrcW)) && (pNormalView->nPrevZoomPosY == (int)(fY * nSrcH))) {
 //             VideoLogWarning("skip same position");
                return EVAS_EVENT_FLAG_ON_HOLD;
        }
@@ -2487,7 +2454,7 @@ static Evas_Event_Flags __vp_normal_gesture_zoom_end_cb(void *pUserData, void *p
                return EVAS_EVENT_FLAG_NONE;
        }
 
-       double fVal = pZoomInfo->zoom/ pNormalView->fActiveZoom;
+       double fVal = pZoomInfo->zoom / pNormalView->fActiveZoom;
 
        pNormalView->fActiveZoom = pZoomInfo->zoom;
 
@@ -2564,8 +2531,7 @@ static Evas_Event_Flags __vp_normal_gesture_double_click_end_cb(void *pUserData,
 #ifdef ENABLE_GESTURE_ZOOM_FEATURE
                _vp_play_normal_view_on_zoom_mode(pNormalView);
 #endif
-       }
-       else if (pEvent->n == 1) {
+       } else if (pEvent->n == 1) {
 
                if (pNormalView->bLockScreen) {
                        _vp_play_normal_view_show_layout(pNormalView);
@@ -2577,8 +2543,7 @@ static Evas_Event_Flags __vp_normal_gesture_double_click_end_cb(void *pUserData,
                        if (nState == VP_MM_PLAYER_STATE_PLAYING) {
                                vp_mm_player_pause(pNormalView->pPlayerHandle);
                                pNormalView->bManualPause = TRUE;
-                       }
-                       else {
+                       } else {
                                bool bSpeedMode = FALSE;
 
                                if (pNormalView->pSpeedTimer) {
@@ -2598,7 +2563,7 @@ static Evas_Event_Flags __vp_normal_gesture_double_click_end_cb(void *pUserData,
                                                if (vp_mm_player_set_position(pNormalView->pPlayerHandle, pNormalView->nCurPosition)) {
                                                        pNormalView->bSeekComplete = FALSE;
                                                        pNormalView->nWaitPos = -1;
-                                               }else {
+                                               } else {
                                                        pNormalView->nWaitPos = nPosition;
                                                }
                                        }
@@ -2689,8 +2654,7 @@ static Eina_Bool __vp_normal_flickjump_seek(void *pUserData, bool rewind)
                } else {
                        nSetPosition = nCurPosition - 5000;
                }
-       }
-       else {
+       } else {
                if (nCurPosition + 5000 > pNormalView->nDuration) {
                        nSetPosition = pNormalView->nDuration;
                } else {
@@ -2742,10 +2706,11 @@ static void __vp_normal_flickjump_layout_position(void *pUserData)
                        nScreenWidth = 720;
                        nScreenHeight = 1280;
                }
-               if (pNormalView->bFlickRewind == FALSE)
-                       evas_object_move(pNormalView->pFlickJumpSeek, nScreenWidth - (nFlickSeekLeftMargin+nFlickSeekImageWidth/2), (nScreenHeight-nFlickSeekImageHeight/2)/2);
-               else
-                       evas_object_move(pNormalView->pFlickJumpSeek, nFlickSeekLeftMargin+nFlickSeekImageWidth/2, (nScreenHeight-nFlickSeekImageHeight/2)/2);
+               if (pNormalView->bFlickRewind == FALSE) {
+                       evas_object_move(pNormalView->pFlickJumpSeek, nScreenWidth - (nFlickSeekLeftMargin + nFlickSeekImageWidth / 2), (nScreenHeight - nFlickSeekImageHeight / 2) / 2);
+               } else {
+                       evas_object_move(pNormalView->pFlickJumpSeek, nFlickSeekLeftMargin + nFlickSeekImageWidth / 2, (nScreenHeight - nFlickSeekImageHeight / 2) / 2);
+               }
        }
 }
 
@@ -2757,17 +2722,17 @@ static void __vp_normal_gesture_flick_animation_done_cb(void *data, Evas_Object
        }
        NormalView *pNormalView = (NormalView *)data;
 
-       if (emission)
-       {
-               if (!g_strcmp0(emission, "rew_animation_done") || !g_strcmp0(emission, "ff_animation_done"))
-               {
+       if (emission) {
+               if (!g_strcmp0(emission, "rew_animation_done") || !g_strcmp0(emission, "ff_animation_done")) {
                        if (pNormalView->bFlickWaiting == TRUE) {
                                if (pNormalView->bFlickRewind == TRUE) {
-                                       if (pNormalView->pFlickJumpSeek)
+                                       if (pNormalView->pFlickJumpSeek) {
                                                elm_object_signal_emit(pNormalView->pFlickJumpSeek, VP_NORMAL_SIGNAL_FLICKJUMP_FF, "*");
+                                       }
                                } else {
-                                       if (pNormalView->pFlickJumpSeek)
+                                       if (pNormalView->pFlickJumpSeek) {
                                                elm_object_signal_emit(pNormalView->pFlickJumpSeek, VP_NORMAL_SIGNAL_FLICKJUMP_REW, "*");
+                                       }
                                }
                        } else {
                                VP_EVAS_DEL(pNormalView->pFlickJumpSeek);
@@ -2804,12 +2769,12 @@ static Evas_Event_Flags __vp_normal_gesture_flick_end_cb(void *pUserData, void *
        }
 
        if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB &&
-                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW &&
-                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MESSAGE &&
-                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL &&
-                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-                       VideoLogWarning("pNormalView->nLaunchingType : [%d]. not support gesture flick in this mode", pNormalView->nLaunchingType);
-                       return EVAS_EVENT_FLAG_NONE;
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW &&
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MESSAGE &&
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL &&
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
+               VideoLogWarning("pNormalView->nLaunchingType : [%d]. not support gesture flick in this mode", pNormalView->nLaunchingType);
+               return EVAS_EVENT_FLAG_NONE;
        }
 
        pNormalView->pFlickJumpSeek = elm_layout_add(pNormalView->pMainLayout);
@@ -3034,8 +2999,7 @@ static void __vp_normal_progress_mouse_up_cb(void *pUserData, Evas * e, Evas_Obj
                if (pNormalView->bSeekComplete == FALSE) {
                        pNormalView->nWaitPos = nCurPos;
                        VideoLogWarning("== REAL SEEK SET == [%d]", pNormalView->nWaitPos);
-               }
-               else {
+               } else {
                        VideoLogWarning("== REAL SEEK == [%d]", nCurPos);
 
                        pNormalView->bBufferingComplete = TRUE;
@@ -3058,8 +3022,7 @@ static void __vp_normal_progress_mouse_up_cb(void *pUserData, Evas * e, Evas_Obj
        if (pNormalView->bSeekComplete == FALSE) {
                pNormalView->nWaitPos = nCurPos;
                VideoLogWarning("== REAL SEEK SET == [%d]", pNormalView->nWaitPos);
-       }
-       else {
+       } else {
                VideoLogWarning("== REAL SEEK == [%d]", nCurPos);
                if (vp_mm_player_set_position(pNormalView->pPlayerHandle, nCurPos)) {
                        pNormalView->nWaitPos = -1;
@@ -3143,14 +3106,14 @@ static void __vp_normal_progress_mouse_move_cb(void *pUserData, Evas * e, Evas_O
        SeekLevel Level = SEEK_LEVEL_NORMAL;
        dDistance = (pMouseMoveEvent->cur.canvas.x - pNormalView->nPrevCanvasX);
 
-       if (pMouseMoveEvent->cur.canvas.y > (nScreenHeight-nControllerHeight)) {
+       if (pMouseMoveEvent->cur.canvas.y > (nScreenHeight - nControllerHeight)) {
                Level = SEEK_LEVEL_NORMAL;
-       } else if (pMouseMoveEvent->cur.canvas.y > (nScreenHeight-nControllerHeight-nSeek_Height)) {
+       } else if (pMouseMoveEvent->cur.canvas.y > (nScreenHeight - nControllerHeight - nSeek_Height)) {
                Level = SEEK_LEVEL_HALF;
-               dDistance = dDistance/2;
+               dDistance = dDistance / 2;
        } else {
                Level = SEEK_LEVEL_QUARTER;
-               dDistance = dDistance/4;
+               dDistance = dDistance / 4;
        }
 
        pNormalView->nPrevCanvasX = (double)pMouseMoveEvent->cur.canvas.x;
@@ -3187,18 +3150,18 @@ static void __vp_normal_progress_mouse_move_cb(void *pUserData, Evas * e, Evas_O
                        edje_object_size_min_restricted_calc(_EDJ(pNormalView->pMicroSeekTextLayout), &nTextWidth, &nTextHeight, nTextWidth, nTextHeight);
                        evas_object_resize(pNormalView->pMicroSeekTextLayout, nTextWidth, nTextHeight);
 
-                       int nTextPositionX = (int)pNormalView->nPrevPositionX - nTextWidth/2;
+                       int nTextPositionX = (int)pNormalView->nPrevPositionX - nTextWidth / 2;
 
-                       if (nTextPositionX <0)
+                       if (nTextPositionX < 0) {
                                nTextPositionX = 0;
-                       else if (nTextPositionX + nTextWidth > nScreenWidth) {
+                       else if (nTextPositionX + nTextWidth > nScreenWidth) {
                                nTextPositionX = nScreenWidth - nTextWidth;
                        }
 
                        if (Level == SEEK_LEVEL_HALF) {
-                               evas_object_move(pNormalView->pMicroSeekTextLayout, nTextPositionX, nScreenHeight-nControllerHeight-nSeek_Height);
+                               evas_object_move(pNormalView->pMicroSeekTextLayout, nTextPositionX, nScreenHeight - nControllerHeight - nSeek_Height);
                        } else if (Level == SEEK_LEVEL_QUARTER) {
-                               evas_object_move(pNormalView->pMicroSeekTextLayout, nTextPositionX, nScreenHeight-nControllerHeight-nSeek_Height*2);
+                               evas_object_move(pNormalView->pMicroSeekTextLayout, nTextPositionX, nScreenHeight - nControllerHeight - nSeek_Height * 2);
                        }
                        elm_object_signal_emit(pNormalView->pMicroSeekTextLayout, VP_NORMAL_SIGNAL_MICROSEEK_TEXT_SHOW, "*");
                        evas_object_show(pNormalView->pMicroSeekTextLayout);
@@ -3211,28 +3174,28 @@ static void __vp_normal_progress_mouse_move_cb(void *pUserData, Evas * e, Evas_O
                                edje_object_size_min_restricted_calc(_EDJ(pNormalView->pMicroSeekImageLayout), &nImageWidth, &nImageHeight, nImageWidth, nImageHeight);
                                evas_object_resize(pNormalView->pMicroSeekImageLayout, nImageWidth, nImageHeight);
 
-                               int nImagePositionX = (int)pNormalView->nPrevPositionX - nImageWidth/2;
+                               int nImagePositionX = (int)pNormalView->nPrevPositionX - nImageWidth / 2;
 
                                int nImageLeftPadding = 0;
                                int nImageRightPadding = 0;
                                if (bLandscape) {
-                                       nImageLeftPadding = 28+112;
-                                       nImageRightPadding = 28+162;
+                                       nImageLeftPadding = 28 + 112;
+                                       nImageRightPadding = 28 + 162;
                                } else {
                                        nImageLeftPadding = 6;
                                        nImageRightPadding = 26;
                                }
 
-                               if (nImagePositionX < nImageLeftPadding)
+                               if (nImagePositionX < nImageLeftPadding) {
                                        nImagePositionX = nImageLeftPadding;
-                               else if (nImagePositionX > nScreenWidth-nImageRightPadding) {
-                                       nImagePositionX = nScreenWidth-nImageRightPadding;
+                               } else if (nImagePositionX > nScreenWidth - nImageRightPadding) {
+                                       nImagePositionX = nScreenWidth - nImageRightPadding;
                                }
 
                                if (Level == SEEK_LEVEL_HALF) {
-                                       evas_object_move(pNormalView->pMicroSeekImageLayout, nImagePositionX, nScreenHeight-nControllerHeight-nSeek_Height + nTextHeight + 6);
+                                       evas_object_move(pNormalView->pMicroSeekImageLayout, nImagePositionX, nScreenHeight - nControllerHeight - nSeek_Height + nTextHeight + 6);
                                } else if (Level == SEEK_LEVEL_QUARTER) {
-                                       evas_object_move(pNormalView->pMicroSeekImageLayout, nImagePositionX, nScreenHeight-nControllerHeight-nSeek_Height*2 + nTextHeight + 6);
+                                       evas_object_move(pNormalView->pMicroSeekImageLayout, nImagePositionX, nScreenHeight - nControllerHeight - nSeek_Height * 2 + nTextHeight + 6);
                                }
                                elm_object_signal_emit(pNormalView->pMicroSeekImageLayout, VP_NORMAL_SIGNAL_MICROSEEK_IMAGE_SHOW, "*");
                                evas_object_show(pNormalView->pMicroSeekImageLayout);
@@ -3251,14 +3214,13 @@ static void __vp_normal_progress_mouse_move_cb(void *pUserData, Evas * e, Evas_O
        vp_play_progressbar_set_position(pNormalView->pProgressbar, nCurPos);
 
        if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-                       return;
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
+               return;
        }
 
        if (pNormalView->bSeekComplete == FALSE) {
                pNormalView->nWaitPos = nCurPos;
-       }
-       else {
+       } else {
                VideoLogWarning("== I FRMAE SEEK == [%d]", nCurPos);
                if (vp_mm_player_set_position_by_key_frame(pNormalView->pPlayerHandle, nCurPos)) {
                        pNormalView->nWaitPos = -1;
@@ -3284,10 +3246,12 @@ static void __vp_normal_focus_key_down_cb(void *pUserData, Evas * e, Evas_Object
 
        Evas_Event_Key_Down *ev = pEvent;
 
-       if (!ev)
+       if (!ev) {
                return;
-       if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
+       }
+       if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) {
                return;
+       }
 
        VideoLogInfo("KEY: %s", ev->keyname);
 
@@ -3321,10 +3285,12 @@ static void __vp_normal_focus_key_up_cb(void *pUserData, Evas * e, Evas_Object *
 
        Evas_Event_Key_Down *ev = pEvent;
 
-       if (!ev)
+       if (!ev) {
                return;
-       if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
+       }
+       if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) {
                return;
+       }
 
        VideoLogInfo("KEY: %s", ev->keyname);
 
@@ -3377,12 +3343,12 @@ static void __vp_normal_bookmark_capture_cb(void *pUserData)
 
                VP_EVAS_DEL(pNormalView->pPopup);
                pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_BOOKMARK_LIST_FULL,
-                                                               3.0, __vp_normal_popup_time_out_cb,
-                                                               NULL, NULL,
-                                                               pNormalView);
+                                                     POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                     VP_PLAY_STRING_COM_ERROR,
+                                                     VP_PLAY_STRING_ERROR_BOOKMARK_LIST_FULL,
+                                                     3.0, __vp_normal_popup_time_out_cb,
+                                                     NULL, NULL,
+                                                     pNormalView);
                evas_object_show(pNormalView->pPopup);
                pNormalView->bIsPopupShow = TRUE;
 
@@ -3401,12 +3367,12 @@ static void __vp_normal_bookmark_capture_cb(void *pUserData)
 
                VP_EVAS_DEL(pNormalView->pPopup);
                pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_COM_ENOUGH_MEMORY,
-                                                               3.0, __vp_normal_popup_time_out_cb,
-                                                               NULL, NULL,
-                                                               pNormalView);
+                                                     POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                     VP_PLAY_STRING_COM_ERROR,
+                                                     VP_PLAY_STRING_COM_ENOUGH_MEMORY,
+                                                     3.0, __vp_normal_popup_time_out_cb,
+                                                     NULL, NULL,
+                                                     pNormalView);
                evas_object_show(pNormalView->pPopup);
                pNormalView->bIsPopupShow = TRUE;
 
@@ -3437,8 +3403,7 @@ static void __vp_normal_bookmark_item_select_cb(int nPos, const char *szPath, vo
 
        if (pNormalView->bSeekComplete == FALSE) {
                pNormalView->nWaitPos = nPos;
-       }
-       else {
+       } else {
                if (vp_mm_player_set_position(pNormalView->pPlayerHandle, nPos)) {
                        pNormalView->nWaitPos = -1;
                        pNormalView->bSeekComplete = FALSE;
@@ -3509,11 +3474,11 @@ static Eina_Bool __vp_normal_hide_layout_finish_timer_cb(void *pUserData)
        pNormalView->pHideFinishTimer = NULL;
 
        if (pNormalView->pImageBufferObj == NULL &&
-               pNormalView->bIsPopupShow == FALSE &&
-               pNormalView->bIsSubtitleShow == FALSE &&
-               pPlayView->bMouseOut == FALSE &&
-               pNormalView->bVideoOnlyMode == FALSE &&
-               pNormalView->bCaptureMode == FALSE) {
+               pNormalView->bIsPopupShow == FALSE &&
+               pNormalView->bIsSubtitleShow == FALSE &&
+               pPlayView->bMouseOut == FALSE &&
+               pNormalView->bVideoOnlyMode == FALSE &&
+               pNormalView->bCaptureMode == FALSE) {
                vp_play_util_fb_visible_off(pPlayView->pWin, FALSE);
        }
        vp_device_set_frame_rate(40);
@@ -3536,7 +3501,7 @@ static Eina_Bool __vp_normal_subtitle_timer_cb(void *pUserData)
        }
 
        if (nPosition > pNormalView->dSubtitleStartTime &&
-               nPosition < pNormalView->dSubtitleEndTime) {
+               nPosition < pNormalView->dSubtitleEndTime) {
                return EINA_TRUE;
        }
 
@@ -3598,16 +3563,16 @@ static Eina_Bool __vp_normal_dlna_speed_timer_cb(void *pUserData)
        pNormalView->bIsPopupShow = TRUE;
 
        pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_WITH_CANCEL_BTN,
-                                               NULL,
-                                               VP_PLAY_STRING_UNABLE_TO_FF_REW,
-                                               0.0, NULL,
-                                               __vp_normal_popup_key_event_cb,
-                                               __vp_normal_popup_mouse_event_cb,
-                                               pNormalView);
-
-       Evas_Object *pBtn = NULL;
+                                             NULL,
+                                             VP_PLAY_STRING_UNABLE_TO_FF_REW,
+                                             0.0, NULL,
+                                             __vp_normal_popup_key_event_cb,
+                                             __vp_normal_popup_mouse_event_cb,
+                                             pNormalView);
+
+       Evas_Object *pBtn = NULL;
        pBtn = elm_button_add(pNormalView->pPopup);
-       elm_object_style_set (pBtn, "popup_button/default");
+       elm_object_style_set(pBtn, "popup_button/default");
        elm_object_domain_translatable_text_set(pBtn, VP_SYS_STR_PREFIX, VP_PLAY_STRING_COM_OK_IDS);
        elm_object_part_content_set(pNormalView->pPopup, "button1", pBtn);
        evas_object_smart_callback_add(pBtn, "clicked", __vp_normal_popup_key_event_cb, (void*)pNormalView);
@@ -3679,7 +3644,7 @@ static Eina_Bool __vp_normal_speed_timer_cb(void *pUserData)
                return EINA_TRUE;
        }
 
-       if (pNormalView->nSpeedValue >1) {
+       if (pNormalView->nSpeedValue > 1) {
                // during FAST FF/REW moving(player state is paused). don't allow sleep mode
                vp_play_util_set_lock_power_key();
        }
@@ -3724,8 +3689,7 @@ static Eina_Bool __vp_normal_speed_timer_cb(void *pUserData)
 
        if (pNormalView->bSpeedFF) {
                nSetPosition = nCurPosition  + (nStep * 1000);
-       }
-       else {
+       } else {
                nSetPosition = nCurPosition  - (nStep * 1000);
        }
 
@@ -3740,8 +3704,9 @@ static Eina_Bool __vp_normal_speed_timer_cb(void *pUserData)
                VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
        }
-       if (pNormalView->pProgressTimer)
+       if (pNormalView->pProgressTimer) {
                VP_EVAS_TIMER_DEL(pNormalView->pProgressTimer);
+       }
 
        if (vp_mm_player_set_position_by_key_frame(pNormalView->pPlayerHandle, nSetPosition)) {
                pNormalView->bSeekComplete = FALSE;
@@ -3788,18 +3753,16 @@ static void  __vp_normal_hide_finish_cb(void *pUserData, Evas_Object *pObj, cons
        VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
 
        pNormalView->pHideFinishTimer = ecore_timer_add(VP_NORMAL_HIDE_LAYOUT_FINISH_TIMER_INTERVAL,
-                                               __vp_normal_hide_layout_finish_timer_cb, (void *)pNormalView);
+                                       __vp_normal_hide_layout_finish_timer_cb, (void *)pNormalView);
 
 #ifndef SUBTITLE_K_FEATURE
        if (pNormalView->nDisplayMode != VP_MM_PLAYER_DISPLAY_FULL_SCREEN) {
                if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_NONE || pNormalView->nRotate == VIDEO_PLAY_ROTATE_180) {
                        elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_PORTRAIT, "*");
-               }
-               else {
+               } else {
                        elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_HIDE, "*");
                }
-       }
-       else {
+       } else {
                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_HIDE, "*");
        }
 #endif
@@ -3873,7 +3836,7 @@ static void __vp_normal_prepare_cb(void *pUserData)
        }
 }
 
-static void __vp_normal_completed_cb (void *pUserData)
+static void __vp_normal_completed_cb(void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -3894,21 +3857,20 @@ static void __vp_normal_completed_cb (void *pUserData)
 #endif
 
        if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL &&
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
                vp_media_contents_set_played_position(pNormalView->szMediaURL, 0);
-       }
-       else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
+       } else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
                vp_multi_path_set_item_position(pNormalView->szMediaURL, 0, pPlayView->pMultiPathList);
        }
 
        vp_mm_player_unrealize(pNormalView->pPlayerHandle);
 
        if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MESSAGE ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
                if (!pPlayView->pFunc) {
                        VideoLogError("pPlayView pFunc is NULL");
                        return;
@@ -3949,8 +3911,7 @@ static void __vp_play_normal_view_seek_pipe_cb(void *pUserData, void *pBuf, int
                                pNormalView->nWaitPos = -1;
                                return;
                        }
-               }
-               else {
+               } else {
                        VideoLogWarning("== REAL SEEK ==[%d]", pNormalView->nWaitPos);
                        if (vp_mm_player_set_position(pNormalView->pPlayerHandle, pNormalView->nWaitPos)) {
                                pNormalView->bSeekComplete = FALSE;
@@ -3962,7 +3923,7 @@ static void __vp_play_normal_view_seek_pipe_cb(void *pUserData, void *pBuf, int
        }
 }
 
-static void __vp_normal_seek_completed_cb (void *pUserData)
+static void __vp_normal_seek_completed_cb(void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -4026,14 +3987,13 @@ static void __vp_normal_seek_completed_cb (void *pUserData)
                        return;
                }
 
-               if (pNormalView->bManualPause|| pNormalView->bSharepopup) {
+               if (pNormalView->bManualPause || pNormalView->bSharepopup) {
                        vp_mm_player_pause(pNormalView->pPlayerHandle);
-               }
-               else {
+               } else {
                        vp_mm_player_play(pNormalView->pPlayerHandle);
                }
 
-               if (!vp_mm_player_set_subtitle_position(pNormalView->pPlayerHandle, pNormalView->fSubtitleSyncValue*1000)) {
+               if (!vp_mm_player_set_subtitle_position(pNormalView->pPlayerHandle, pNormalView->fSubtitleSyncValue * 1000)) {
                        VideoLogError("vp_mm_player_set_subtitle_position is fail");
                }
 
@@ -4073,15 +4033,15 @@ static void __vp_normal_seek_completed_cb (void *pUserData)
        }
 
        if (pNormalView->bManualPause == FALSE &&
-               pNormalView->bProgressDown == FALSE &&
-               !pNormalView->pSpeedTimer) {
+               pNormalView->bProgressDown == FALSE &&
+               !pNormalView->pSpeedTimer) {
                vp_mm_player_play(pNormalView->pPlayerHandle);
                _vp_play_normal_view_set_play_state(pNormalView);
                _vp_play_normal_view_on_capture_mode(pNormalView);
        }
 
 }
-static void __vp_normal_interrupted_cb (vp_mm_player_interrupt_t nCode, void *pUserData)
+static void __vp_normal_interrupted_cb(vp_mm_player_interrupt_t nCode, void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -4096,19 +4056,16 @@ static void __vp_normal_interrupted_cb (vp_mm_player_interrupt_t nCode, void *pU
                if (pNormalView->bManualPause == FALSE) {
                        vp_mm_player_play(pNormalView->pPlayerHandle);
                }
-       }
-       else if (nCode == VP_MM_PLAYER_INTERRUPTED_BY_MEDIA) {
+       } else if (nCode == VP_MM_PLAYER_INTERRUPTED_BY_MEDIA) {
                pNormalView->bManualPause = TRUE;
-       }
-       else if (nCode == VP_MM_PLAYER_INTERRUPTED_BY_EARJACK_UNPLUG) {
+       } else if (nCode == VP_MM_PLAYER_INTERRUPTED_BY_EARJACK_UNPLUG) {
                if (pNormalView->bDeviceRemoveInterrupt) {
                        if (pNormalView->bManualPause == FALSE) {
                                vp_mm_player_play(pNormalView->pPlayerHandle);
                        }
                        pNormalView->bDeviceRemoveInterrupt = FALSE;
                }
-       }
-       else if (nCode == VP_MM_PLAYER_INTERRUPTED_BY_RESOURCE_CONFLICT) {
+       } else if (nCode == VP_MM_PLAYER_INTERRUPTED_BY_RESOURCE_CONFLICT) {
 
                PlayView *pPlayView = pNormalView->pPlayView;
                if (!pPlayView) {
@@ -4129,7 +4086,7 @@ static void __vp_normal_interrupted_cb (vp_mm_player_interrupt_t nCode, void *pU
        _vp_play_normal_view_on_capture_mode(pNormalView);
 }
 
-static void __vp_normal_error_cb (vp_mm_player_error_t nError, void *pUserData)
+static void __vp_normal_error_cb(vp_mm_player_error_t nError, void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -4149,123 +4106,122 @@ static void __vp_normal_error_cb (vp_mm_player_error_t nError, void *pUserData)
                return;
        }
        Evas_Object *pParent = pPlayView->pWin;
-       switch (nError)
-       {
-               case VP_MM_PLAYER_ERR_OUT_OF_MEMORY:
-               case VP_MM_PLAYER_ERR_INVALID_OPERATION:
-               case VP_MM_PLAYER_ERR_FILE_NO_SPACE_ON_DEVICE:
-                       case VP_MM_PLAYER_ERR_INVALID_PARAMETER:
-                       pNormalView->pPopup = vp_popup_create(pParent,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_UNABLE_PLAY,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
+       switch (nError) {
+       case VP_MM_PLAYER_ERR_OUT_OF_MEMORY:
+       case VP_MM_PLAYER_ERR_INVALID_OPERATION:
+       case VP_MM_PLAYER_ERR_FILE_NO_SPACE_ON_DEVICE:
+       case VP_MM_PLAYER_ERR_INVALID_PARAMETER:
+               pNormalView->pPopup = vp_popup_create(pParent,
+                                                     POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                     VP_PLAY_STRING_COM_ERROR,
+                                                     VP_PLAY_STRING_ERROR_UNABLE_PLAY,
+                                                     3.0, __vp_normal_error_popup_time_out_cb,
+                                                     __vp_normal_error_popup_key_event_cb,
+                                                     __vp_normal_error_popup_mouse_event_cb,
+                                                     pNormalView);
+               evas_object_show(pNormalView->pPopup);
+               pNormalView->bIsPopupShow = TRUE;
 
-                       break;
-               case VP_MM_PLAYER_ERR_NO_SUCH_FILE:
-                       pNormalView->pPopup = vp_popup_create(pParent,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_FILE_NOT_EXIST,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
+               break;
+       case VP_MM_PLAYER_ERR_NO_SUCH_FILE:
+               pNormalView->pPopup = vp_popup_create(pParent,
+                                                     POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                     VP_PLAY_STRING_COM_ERROR,
+                                                     VP_PLAY_STRING_ERROR_FILE_NOT_EXIST,
+                                                     3.0, __vp_normal_error_popup_time_out_cb,
+                                                     __vp_normal_error_popup_key_event_cb,
+                                                     __vp_normal_error_popup_mouse_event_cb,
+                                                     pNormalView);
+               evas_object_show(pNormalView->pPopup);
+               pNormalView->bIsPopupShow = TRUE;
 
-                       break;
+               break;
 
 
-               case VP_MM_PLAYER_ERR_SEEK_FAILED:
-                       VideoLogWarning("VP_MM_PLAYER_ERR_SEEK_FAILED");
-                       break;
-               case VP_MM_PLAYER_ERR_INVALID_STATE:
-                       VideoLogWarning("VP_MM_PLAYER_ERR_INVALID_STATE");
-                       break;
-               case VP_MM_PLAYER_ERR_SOUND_POLICY:
-                       VideoLogWarning("VP_MM_PLAYER_ERR_SOUND_POLICY");
-                       break;
-               case VP_MM_PLAYER_ERR_VIDEO_CAPTUR_FAILED:
-                       VideoLogWarning("VP_MM_PLAYER_ERR_VIDEO_CAPTUR_FAILED");
-                       break;
-               case VP_MM_PLAYER_ERR_NOT_SUPPORTED_FILE:
-                       pNormalView->pPopup = vp_popup_create(pParent,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_UNSUPPORTED_FORMAT,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-                       break;
-               case VP_MM_PLAYER_ERR_INVALID_URI:
-                       pNormalView->pPopup = vp_popup_create(pParent,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_INVALID_URL,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-                       break;
+       case VP_MM_PLAYER_ERR_SEEK_FAILED:
+               VideoLogWarning("VP_MM_PLAYER_ERR_SEEK_FAILED");
+               break;
+       case VP_MM_PLAYER_ERR_INVALID_STATE:
+               VideoLogWarning("VP_MM_PLAYER_ERR_INVALID_STATE");
+               break;
+       case VP_MM_PLAYER_ERR_SOUND_POLICY:
+               VideoLogWarning("VP_MM_PLAYER_ERR_SOUND_POLICY");
+               break;
+       case VP_MM_PLAYER_ERR_VIDEO_CAPTUR_FAILED:
+               VideoLogWarning("VP_MM_PLAYER_ERR_VIDEO_CAPTUR_FAILED");
+               break;
+       case VP_MM_PLAYER_ERR_NOT_SUPPORTED_FILE:
+               pNormalView->pPopup = vp_popup_create(pParent,
+                                                     POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                     VP_PLAY_STRING_COM_ERROR,
+                                                     VP_PLAY_STRING_ERROR_UNSUPPORTED_FORMAT,
+                                                     3.0, __vp_normal_error_popup_time_out_cb,
+                                                     __vp_normal_error_popup_key_event_cb,
+                                                     __vp_normal_error_popup_mouse_event_cb,
+                                                     pNormalView);
+               evas_object_show(pNormalView->pPopup);
+               pNormalView->bIsPopupShow = TRUE;
+               break;
+       case VP_MM_PLAYER_ERR_INVALID_URI:
+               pNormalView->pPopup = vp_popup_create(pParent,
+                                                     POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                     VP_PLAY_STRING_COM_ERROR,
+                                                     VP_PLAY_STRING_ERROR_INVALID_URL,
+                                                     3.0, __vp_normal_error_popup_time_out_cb,
+                                                     __vp_normal_error_popup_key_event_cb,
+                                                     __vp_normal_error_popup_mouse_event_cb,
+                                                     pNormalView);
+               evas_object_show(pNormalView->pPopup);
+               pNormalView->bIsPopupShow = TRUE;
+               break;
 
-               case VP_MM_PLAYER_ERR_CONNECTION_FAILED:
-                       pNormalView->pPopup = vp_popup_create(pParent,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_CONNECTION_FAILED,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-                       break;
-               case VP_MM_PLAYER_ERR_DRM_EXPIRED:
-               case VP_MM_PLAYER_ERR_DRM_FUTURE_USE:
-                       VideoLogWarning("DRM BUG");
-                       pNormalView->pPopup = vp_popup_create(pParent,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_UNABLE_PLAY,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-                       break;
-               case VP_MM_PLAYER_ERR_DRM_NO_LICENSE:
-                       pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_DIVX_DRM_AUTHORIZATION_ERROR,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-                       break;
-               default:
-                       VideoLogWarning("UNKNOWN TYPE : %d", nError);
-                       break;
+       case VP_MM_PLAYER_ERR_CONNECTION_FAILED:
+               pNormalView->pPopup = vp_popup_create(pParent,
+                                                     POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                     VP_PLAY_STRING_COM_ERROR,
+                                                     VP_PLAY_STRING_ERROR_CONNECTION_FAILED,
+                                                     3.0, __vp_normal_error_popup_time_out_cb,
+                                                     __vp_normal_error_popup_key_event_cb,
+                                                     __vp_normal_error_popup_mouse_event_cb,
+                                                     pNormalView);
+               evas_object_show(pNormalView->pPopup);
+               pNormalView->bIsPopupShow = TRUE;
+               break;
+       case VP_MM_PLAYER_ERR_DRM_EXPIRED:
+       case VP_MM_PLAYER_ERR_DRM_FUTURE_USE:
+               VideoLogWarning("DRM BUG");
+               pNormalView->pPopup = vp_popup_create(pParent,
+                                                     POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                     VP_PLAY_STRING_COM_ERROR,
+                                                     VP_PLAY_STRING_ERROR_UNABLE_PLAY,
+                                                     3.0, __vp_normal_error_popup_time_out_cb,
+                                                     __vp_normal_error_popup_key_event_cb,
+                                                     __vp_normal_error_popup_mouse_event_cb,
+                                                     pNormalView);
+               evas_object_show(pNormalView->pPopup);
+               pNormalView->bIsPopupShow = TRUE;
+               break;
+       case VP_MM_PLAYER_ERR_DRM_NO_LICENSE:
+               pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                     VP_PLAY_STRING_COM_ERROR,
+                                                     VP_PLAY_STRING_DIVX_DRM_AUTHORIZATION_ERROR,
+                                                     3.0, __vp_normal_error_popup_time_out_cb,
+                                                     __vp_normal_error_popup_key_event_cb,
+                                                     __vp_normal_error_popup_mouse_event_cb,
+                                                     pNormalView);
+               evas_object_show(pNormalView->pPopup);
+               pNormalView->bIsPopupShow = TRUE;
+               break;
+       default:
+               VideoLogWarning("UNKNOWN TYPE : %d", nError);
+               break;
        }
 
 }
 
 static void _vp_normal_view_loading_ani_layout_del_cb(void *data, Evas *e,
-                                             Evas_Object *obj,
-                                             void *event_info)
+        Evas_Object *obj,
+        void *event_info)
 {
        if (!data) {
                VideoLogError("pNormalView is NULL");
@@ -4303,7 +4259,7 @@ static bool _vp_play_normal_view_create_loading_ani(NormalView *pNormalView)
        return TRUE;
 }
 
-static void __vp_normal_buffering_cb (int nPercent, void *pUserData)
+static void __vp_normal_buffering_cb(int nPercent, void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -4339,16 +4295,14 @@ static void __vp_normal_buffering_cb (int nPercent, void *pUserData)
                                if (pNormalView->bManualPause || pPlayView->bActivate == FALSE) {
                                        vp_mm_player_set_visible(pNormalView->pPlayerHandle, TRUE);
                                        vp_mm_player_pause(pNormalView->pPlayerHandle);
-                               }
-                               else {
+                               } else {
                                        vp_mm_player_play(pNormalView->pPlayerHandle);
                                }
                                _vp_play_normal_view_set_play_state(pNormalView);
                                _vp_play_normal_view_on_capture_mode(pNormalView);
                        }
                }
-       }
-       else {
+       } else {
                pNormalView->bBufferingComplete = FALSE;
                if (pNormalView->bManualPause == FALSE) {
                        vp_play_util_set_lock_power_key();
@@ -4365,7 +4319,7 @@ static void __vp_normal_buffering_cb (int nPercent, void *pUserData)
        }
 }
 
-static void __vp_normal_subtitle_updated_cb (unsigned long nDuration, char *text, void *pUserData)
+static void __vp_normal_subtitle_updated_cb(unsigned long nDuration, char *text, void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -4410,7 +4364,7 @@ static void __vp_normal_subtitle_updated_cb (unsigned long nDuration, char *text
        pNormalView->dSubtitleEndTime = nPosition + nDuration;
 
        pNormalView->pSubtitleTimer = ecore_timer_add(dTimeInterval,
-                       __vp_normal_subtitle_timer_cb, (void *)pNormalView);
+                                     __vp_normal_subtitle_timer_cb, (void *)pNormalView);
 
        vp_play_subtitle_set_text(pNormalView->pSubtitle, text);
 #ifdef SUBTITLE_K_FEATURE
@@ -4420,7 +4374,7 @@ static void __vp_normal_subtitle_updated_cb (unsigned long nDuration, char *text
 }
 
 
-static void __vp_normal_pd_message_cb (vp_mm_player_pd_message_t nType, void *pUserData)
+static void __vp_normal_pd_message_cb(vp_mm_player_pd_message_t nType, void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -4430,7 +4384,7 @@ static void __vp_normal_pd_message_cb (vp_mm_player_pd_message_t nType, void *pU
 }
 
 
-static void __vp_normal_video_captured_cb (unsigned char *pFrame, int nWidth, int nHeight, unsigned int nSize, void *pUserData)
+static void __vp_normal_video_captured_cb(unsigned char *pFrame, int nWidth, int nHeight, unsigned int nSize, void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -4457,9 +4411,9 @@ static void __vp_normal_video_captured_cb (unsigned char *pFrame, int nWidth, in
                if (!szFileName) {
                        VideoLogError("failed to allocate memory");
                        VP_FREE(szVideoID);
-                       return; 
+                       return;
                }
-               snprintf(szFileName, VP_URL_LEN_MAX, "%s/%s",VP_PLAY_DATA_DIR, szVideoID);
+               snprintf(szFileName, VP_URL_LEN_MAX, "%s/%s", VP_PLAY_DATA_DIR, szVideoID);
 
                if (!vp_file_exists(szFileName)) {
                        if (!vp_mkdir(szFileName)) {
@@ -4477,8 +4431,7 @@ static void __vp_normal_video_captured_cb (unsigned char *pFrame, int nWidth, in
 
                if (nWidth > nHeight) {
                        nScale = 146.0 / nWidth;
-               }
-               else {
+               } else {
                        nScale = 88.0 / nHeight;
                }
 
@@ -4492,8 +4445,7 @@ static void __vp_normal_video_captured_cb (unsigned char *pFrame, int nWidth, in
                }
                VP_FREE(szFileName);
                VP_FREE(szVideoID);
-       }
-       else {
+       } else {
 
                if (!vp_file_exists(VP_PLAY_SCREEN_SHOT_DIR)) {
                        if (!vp_mkdir(VP_PLAY_SCREEN_SHOT_DIR)) {
@@ -4512,7 +4464,7 @@ static void __vp_normal_video_captured_cb (unsigned char *pFrame, int nWidth, in
                        return;
                }
 
-               snprintf(szFileName, VP_URL_LEN_MAX, "%s/%s_%d.jpg",VP_PLAY_SCREEN_SHOT_DIR, szTitle, pNormalView->nCapturePosition);
+               snprintf(szFileName, VP_URL_LEN_MAX, "%s/%s_%d.jpg", VP_PLAY_SCREEN_SHOT_DIR, szTitle, pNormalView->nCapturePosition);
 
                if (vp_image_util_image_save(szFileName, pFrame, nWidth, nHeight, 100)) {
                        vp_media_contents_update_db(szFileName);
@@ -4525,8 +4477,7 @@ static void __vp_normal_video_captured_cb (unsigned char *pFrame, int nWidth, in
 
                        if (!pNormalView->pScreenShot) {
                                VideoLogError("Scrennshot is NULL ####");
-                       }
-                       else {
+                       } else {
                                evas_object_size_hint_weight_set(pNormalView->pScreenShot, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
                                evas_object_size_hint_align_set(pNormalView->pScreenShot, EVAS_HINT_FILL, EVAS_HINT_FILL);
                                evas_object_show(pNormalView->pScreenShot);
@@ -4539,15 +4490,14 @@ static void __vp_normal_video_captured_cb (unsigned char *pFrame, int nWidth, in
                                if (bLandscape) {
                                        elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SCREEN_LANDSCAPE_SHOW, "*");
                                        elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_SCREENSHOT_LANDSCAPE, pNormalView->pScreenShot);
-                               }
-                               else {
+                               } else {
                                        elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SCREEN_PORTRAIT_SHOW, "*");
                                        elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_SCREENSHOT_PORTRAIT, pNormalView->pScreenShot);
                                }
 
                                VP_EVAS_TIMER_DEL(pNormalView->pScreenShotTimer);
                                pNormalView->pScreenShotTimer = ecore_timer_add(VP_NORMAL_SCREENSHOT_TIMER_INTERVAL,
-                                                                       __vp_normal_screenshot_timer_cb, (void *)pNormalView);
+                                                               __vp_normal_screenshot_timer_cb, (void *)pNormalView);
                        }
 
                }
@@ -4559,7 +4509,7 @@ static void __vp_normal_video_captured_cb (unsigned char *pFrame, int nWidth, in
        pNormalView->bCaptureComplete = TRUE;
 }
 
-static void __vp_normal_missed_plugin_cb (vp_mm_player_missed_plugin_t nType, void *pUserData)
+static void __vp_normal_missed_plugin_cb(vp_mm_player_missed_plugin_t nType, void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -4580,33 +4530,32 @@ static void __vp_normal_missed_plugin_cb (vp_mm_player_missed_plugin_t nType, vo
 #if 1
        if (nType == VP_MM_PLAYER_MISSED_PLUGIN_AUDIO) {
                _vp_play_normal_view_show_video_only_popup(pNormalView);
-       }
-       else if (nType == VP_MM_PLAYER_MISSED_PLUGIN_VIDEO) {
+       } else if (nType == VP_MM_PLAYER_MISSED_PLUGIN_VIDEO) {
                _vp_play_normal_view_show_audio_only_popup(pNormalView);
        }
 #else /* Disabled. please use ecore_pipe if need to use popup. */
        Evas_Object *pParent = pPlayView->pWin;
        if (nType == VP_MM_PLAYER_MISSED_PLUGIN_AUDIO) {
                pNormalView->pPopup = vp_popup_create(pParent,
-                                                       POPUP_STYLE_DEFAULT,
-                                                       NULL,
-                                                       VP_PLAY_STRING_ERROR_UNSUPPORTED_AUDIO,
-                                                       3.0,__vp_normal_popup_time_out_cb,
-                                                       __vp_normal_popup_key_event_cb,
-                                                       __vp_normal_popup_mouse_event_cb,
-                                                       pNormalView);
+                                                     POPUP_STYLE_DEFAULT,
+                                                     NULL,
+                                                     VP_PLAY_STRING_ERROR_UNSUPPORTED_AUDIO,
+                                                     3.0, __vp_normal_popup_time_out_cb,
+                                                     __vp_normal_popup_key_event_cb,
+                                                     __vp_normal_popup_mouse_event_cb,
+                                                     pNormalView);
 
                evas_object_show(pNormalView->pPopup);
                pNormalView->bIsPopupShow = TRUE;
        } else if (nType == VP_MM_PLAYER_MISSED_PLUGIN_VIDEO) {
                pNormalView->pPopup = vp_popup_create(pParent,
-                                                       POPUP_STYLE_DEFAULT,
-                                                       NULL,
-                                                       VP_PLAY_STRING_ERROR_UNSUPPORTED_VIDEO,
-                                                       3.0, __vp_normal_popup_time_out_cb,
-                                                       __vp_normal_popup_key_event_cb,
-                                                       __vp_normal_popup_mouse_event_cb,
-                                                       pNormalView);
+                                                     POPUP_STYLE_DEFAULT,
+                                                     NULL,
+                                                     VP_PLAY_STRING_ERROR_UNSUPPORTED_VIDEO,
+                                                     3.0, __vp_normal_popup_time_out_cb,
+                                                     __vp_normal_popup_key_event_cb,
+                                                     __vp_normal_popup_mouse_event_cb,
+                                                     pNormalView);
 
                evas_object_show(pNormalView->pPopup);
                pNormalView->bIsPopupShow = TRUE;
@@ -4618,7 +4567,7 @@ static void __vp_normal_missed_plugin_cb (vp_mm_player_missed_plugin_t nType, vo
 #endif
 }
 
-static void __vp_normal_image_buffer_cb (char *pBuffer, int nSize, void *pUserData)
+static void __vp_normal_image_buffer_cb(char *pBuffer, int nSize, void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -4653,8 +4602,8 @@ static void _vp_normal_set_audio_only_image(NormalView *pNormalView, bool bAudio
 
        if (bAudioOnly == TRUE) {
                pNormalView->pImageBufferObj = vp_button_create_image(pNormalView->pMainLayout,
-                                                                                                                               VP_PLAY_RESROUCE_EDJ_PATH,
-                                                                                                                               VP_PLAY_NORMAL_AUDIO_ERROR_IMG);
+                                              VP_PLAY_RESROUCE_EDJ_PATH,
+                                              VP_PLAY_NORMAL_AUDIO_ERROR_IMG);
                evas_object_size_hint_weight_set(pNormalView->pImageBufferObj, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
                evas_object_size_hint_align_set(pNormalView->pImageBufferObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
                evas_object_color_set(pNormalView->pImageBufferObj, 255, 255, 255, 255);
@@ -4781,8 +4730,7 @@ static void __vp_normal_del_popup_delete_cb(void *data, Evas_Object *obj, void *
                vp_play_config_get_preview_url_videos(&szPreviewURL);
 
                if (szPreviewURL) {
-                       if (!g_strcmp0(szPreviewURL, pNormalView->szMediaURL))
-                       {
+                       if (!g_strcmp0(szPreviewURL, pNormalView->szMediaURL)) {
                                VideoLogInfo("Erase preview url.");
                                vp_play_config_set_preview_url_videos("");
                        }
@@ -4847,14 +4795,14 @@ static void __vp_normal_ctx_popup_delete_cb(void *pUserData, Evas_Object *pObj,
        }
 
        VP_EVAS_DEL(pNormalView->pPopup);
-       pNormalView->pPopup     = vp_two_button_popup_create(   pPlayView->pWin,
-                                                                                                               VP_PLAY_STRING_POPUP_DELETE,
-                                                                                                               VP_PLAY_STRING_POPUP_DELETE_CONTENT,
-                                                                                                               VP_PLAY_STRING_CANCEL,
-                                                                                                               __vp_normal_del_popup_cancel_cb,
-                                                                                                               VP_PLAY_STRING_POPUP_DELETE,
-                                                                                                               __vp_normal_del_popup_delete_cb,
-                                                                                                               (const void*)pNormalView        );
+       pNormalView->pPopup     = vp_two_button_popup_create(pPlayView->pWin,
+                             VP_PLAY_STRING_POPUP_DELETE,
+                             VP_PLAY_STRING_POPUP_DELETE_CONTENT,
+                             VP_PLAY_STRING_CANCEL,
+                             __vp_normal_del_popup_cancel_cb,
+                             VP_PLAY_STRING_POPUP_DELETE,
+                             __vp_normal_del_popup_delete_cb,
+                             (const void*)pNormalView);
 
        pNormalView->bIsPopupShow = TRUE;
        eext_object_event_callback_add(pNormalView->pPopup, EEXT_CALLBACK_BACK, __vp_normal_del_popup_cancel_cb, (void*)pNormalView);
@@ -5005,8 +4953,8 @@ static bool _vp_play_normal_view_show_lock_screen(normal_view_handle pViewHandle
        elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_LOCKSCREEN_SHOW, "*");
 
        pNormalView->pLockScreenTimer =
-               ecore_timer_add(VP_NORMAL_HIDE_SCREEN_LOCK_TIMER_INTERVAL,
-               __vp_normal_lockscreen_timer_cb, (void *)pNormalView);
+           ecore_timer_add(VP_NORMAL_HIDE_SCREEN_LOCK_TIMER_INTERVAL,
+                           __vp_normal_lockscreen_timer_cb, (void *)pNormalView);
 
        return TRUE;
 }
@@ -5061,7 +5009,7 @@ static void __vp_normal_more_btn_clicked_cb(void *pUserData, Evas_Object *pObj,
                VideoLogInfo("current launching type not support menu.");
                return;
        }
-       if (strstr(pPlayView->szMediaURL,"/.") != NULL) {
+       if (strstr(pPlayView->szMediaURL, "/.") != NULL) {
                VideoLogInfo("hidden file not suport menu.");
                return;
        }
@@ -5087,7 +5035,7 @@ static void __vp_normal_more_btn_clicked_cb(void *pUserData, Evas_Object *pObj,
        char *szMediaID = NULL;
 
        if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
                vp_media_contents_get_video_id(pNormalView->szMediaURL, &szMediaID);
                if (!szMediaID) {
                }
@@ -5100,61 +5048,60 @@ static void __vp_normal_more_btn_clicked_cb(void *pUserData, Evas_Object *pObj,
 #endif
        //bool bIsPersonal = FALSE;
 
-       switch (pNormalView->nLaunchingType)
-       {
-               case VIDEO_PLAY_TYPE_STORE:
-               case VIDEO_PLAY_TYPE_LIST:
-               case VIDEO_PLAY_TYPE_GALLERY:
-               case VIDEO_PLAY_TYPE_MYFILE:
-               case VIDEO_PLAY_TYPE_OTHER:
+       switch (pNormalView->nLaunchingType) {
+       case VIDEO_PLAY_TYPE_STORE:
+       case VIDEO_PLAY_TYPE_LIST:
+       case VIDEO_PLAY_TYPE_GALLERY:
+       case VIDEO_PLAY_TYPE_MYFILE:
+       case VIDEO_PLAY_TYPE_OTHER:
 
-                       /* Share via */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SHARE, NULL, __vp_normal_ctx_popup_share_cb, (void *)pNormalView);
+               /* Share via */
+               elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SHARE, NULL, __vp_normal_ctx_popup_share_cb, (void *)pNormalView);
 
-                       /* delete */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_DELETE, NULL, __vp_normal_ctx_popup_delete_cb, (void *)pNormalView);
+               /* delete */
+               elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_DELETE, NULL, __vp_normal_ctx_popup_delete_cb, (void *)pNormalView);
 
-                       /* Play speed */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_PLAY_SPEED, NULL, __vp_normal_ctx_popup_play_speed_cb, (void *)pNormalView);
+               /* Play speed */
+               elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_PLAY_SPEED, NULL, __vp_normal_ctx_popup_play_speed_cb, (void *)pNormalView);
 
-                       /* subtitles */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SUBTITLE, NULL, __vp_normal_ctx_popup_subtitle_cb, (void *)pNormalView);
+               /* subtitles */
+               elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SUBTITLE, NULL, __vp_normal_ctx_popup_subtitle_cb, (void *)pNormalView);
 
-                       /* repeat mode */
-                       //elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_REPEAT_SETTING, NULL, __vp_normal_ctx_popup_repeat_cb, (void *)pNormalView);
+               /* repeat mode */
+               //elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_REPEAT_SETTING, NULL, __vp_normal_ctx_popup_repeat_cb, (void *)pNormalView);
 
-                       /* Sound alive */
-                       //elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SOUND_ALIVE, NULL, __vp_normal_ctx_popup_sound_alive_cb, (void *)pNormalView);
+               /* Sound alive */
+               //elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SOUND_ALIVE, NULL, __vp_normal_ctx_popup_sound_alive_cb, (void *)pNormalView);
 
-                       /* Details */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_COM_DETAILS, NULL, __vp_normal_ctx_popup_detail_cb, (void *)pNormalView);
-                       break;
+               /* Details */
+               elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_COM_DETAILS, NULL, __vp_normal_ctx_popup_detail_cb, (void *)pNormalView);
+               break;
 
-               case VIDEO_PLAY_TYPE_MESSAGE:
-               case VIDEO_PLAY_TYPE_EMAIL:
+       case VIDEO_PLAY_TYPE_MESSAGE:
+       case VIDEO_PLAY_TYPE_EMAIL:
 
-                       /* Play speed */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_PLAY_SPEED, NULL, __vp_normal_ctx_popup_play_speed_cb, (void *)pNormalView);
+               /* Play speed */
+               elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_PLAY_SPEED, NULL, __vp_normal_ctx_popup_play_speed_cb, (void *)pNormalView);
 
-                       /* subtitles */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SUBTITLE, NULL, __vp_normal_ctx_popup_subtitle_cb, (void *)pNormalView);
-                       break;
+               /* subtitles */
+               elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SUBTITLE, NULL, __vp_normal_ctx_popup_subtitle_cb, (void *)pNormalView);
+               break;
 
-               case VIDEO_PLAY_TYPE_WEB:
+       case VIDEO_PLAY_TYPE_WEB:
 
-                       /* Settings */
-                       if (FALSE) {
-                               elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SETTINGS, NULL, __vp_normal_ctx_popup_setting_cb, (void *)pNormalView);
-                       }
-                       break;
+               /* Settings */
+               if (FALSE) {
+                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SETTINGS, NULL, __vp_normal_ctx_popup_setting_cb, (void *)pNormalView);
+               }
+               break;
 
-               case VIDEO_PLAY_TYPE_MULTI_PATH:
-                       /* Details */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_COM_DETAILS, NULL, __vp_normal_ctx_popup_detail_cb, (void *)pNormalView);
-                       break;
+       case VIDEO_PLAY_TYPE_MULTI_PATH:
+               /* Details */
+               elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_COM_DETAILS, NULL, __vp_normal_ctx_popup_detail_cb, (void *)pNormalView);
+               break;
 
-               case VIDEO_PLAY_TYPE_PREVIEW:
-                       break;
+       case VIDEO_PLAY_TYPE_PREVIEW:
+               break;
        }
 
        int nW = 0;
@@ -5163,19 +5110,16 @@ static void __vp_normal_more_btn_clicked_cb(void *pUserData, Evas_Object *pObj,
        Evas_Coord_Rectangle rect = {0,};
        elm_win_screen_size_get(pPlayView->pWin,  &rect.x, &rect.y, &rect.w, &rect.h);
        if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_NONE) {
-               nW = rect.w/2;
+               nW = rect.w / 2;
                nH = rect.h;
-       }
-       else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90) {
-               nW = rect.h/2;
+       } else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90) {
+               nW = rect.h / 2;
                nH = rect.w;
-       }
-       else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_180) {
-               nW = rect.w/2;
+       } else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_180) {
+               nW = rect.w / 2;
                nH = rect.h;
-       }
-       else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-               nW = rect.h/2;
+       } else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
+               nW = rect.h / 2;
                nH = rect.w;
        }
 
@@ -5187,8 +5131,9 @@ static void __vp_normal_more_btn_clicked_cb(void *pUserData, Evas_Object *pObj,
 
 void vp_play_normal_view_pause_player(void *pPlayview)
 {
-       if (!pPlayview)
+       if (!pPlayview) {
                return;
+       }
        PlayView *vPlayview = (PlayView *)pPlayview;
        NormalView *pNormalView = vPlayview->pNormalView;
        vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
@@ -5206,8 +5151,9 @@ void vp_play_normal_view_pause_player(void *pPlayview)
 
 void vp_play_normal_view_show_volume_popup(void *pPlayview)
 {
-       if (!pPlayview)
+       if (!pPlayview) {
                return;
+       }
        PlayView *vPlayview = (PlayView *)pPlayview;
        NormalView *pNormalView = vPlayview->pNormalView;
        pNormalView->pVolumePopupHandle = NULL;
@@ -5234,8 +5180,7 @@ static void __vp_normal_function_btn_clicked_cb(void *pUserData, Evas_Object *pO
                vp_play_volume_update_value(pNormalView->pVolumeHandle);
                _vp_play_normal_view_on_volume_popup(pNormalView, TRUE);
                vp_play_volume_set_focus_in(pNormalView->pVolumeHandle);
-       }
-       else if (pObj == pNormalView->pBookmarkBtn) {
+       } else if (pObj == pNormalView->pBookmarkBtn) {
                VideoLogWarning("pBookmarkBtn button");
 
                bool bIsRealize = FALSE;
@@ -5245,31 +5190,25 @@ static void __vp_normal_function_btn_clicked_cb(void *pUserData, Evas_Object *pO
                }
                if (bIsRealize) {
                        _vp_play_normal_view_on_bookmark_mode(pNormalView, FALSE);
-               }
-               else {
+               } else {
                        _vp_play_normal_view_on_bookmark_mode(pNormalView, TRUE);
                }
-       }
-       else if (pObj == pNormalView->pShareBtn) {
+       } else if (pObj == pNormalView->pShareBtn) {
                VideoLogWarning("pShareBtn button");
                _vp_play_normal_view_on_share_popup(pNormalView);
-       }
-       else if (pObj == pNormalView->pLockBtn) {
+       } else if (pObj == pNormalView->pLockBtn) {
                VideoLogWarning("pLockBtn button");
                if (!pNormalView->bLockScreen) {
-               pNormalView->bLockScreen = TRUE;
-               vp_play_normal_view_set_lock_screen(pNormalView, pNormalView->bLockScreen);
-               }
-               else {
-               pNormalView->bLockScreen = FALSE;
-               vp_play_normal_view_set_lock_screen(pNormalView, pNormalView->bLockScreen);
+                       pNormalView->bLockScreen = TRUE;
+                       vp_play_normal_view_set_lock_screen(pNormalView, pNormalView->bLockScreen);
+               } else {
+                       pNormalView->bLockScreen = FALSE;
+                       vp_play_normal_view_set_lock_screen(pNormalView, pNormalView->bLockScreen);
                }
-       }
-       else if (pObj == pNormalView->pSoundAliveBtn) {
+       } else if (pObj == pNormalView->pSoundAliveBtn) {
                VideoLogWarning("pSoundAliveBtn button");
                _vp_play_normal_view_on_sound_alive_popup(pNormalView);
-       }
-       else if (pObj == pNormalView->pRepeatBtn) {
+       } else if (pObj == pNormalView->pRepeatBtn) {
                VideoLogWarning("pRepeatBtn button");
                if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_NONE) {
                        pNormalView->nRepeatMode = VIDEO_PLAY_REPEAT_ONE;
@@ -5299,8 +5238,7 @@ static void __vp_normal_function_btn_clicked_cb(void *pUserData, Evas_Object *pO
 
                        pIcon = vp_button_create_icon(pNormalView->pRepeatBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_REPEAT_ONE_DIM);
                        elm_object_part_content_set(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-               }
-               else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE) {
+               } else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE) {
                        pNormalView->nRepeatMode = VIDEO_PLAY_REPEAT_ALL;
 
                        Evas_Object *pIcon = NULL;
@@ -5329,8 +5267,7 @@ static void __vp_normal_function_btn_clicked_cb(void *pUserData, Evas_Object *pO
                        pIcon = vp_button_create_icon(pNormalView->pRepeatBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_REPEAT_ALL_DIM);
                        elm_object_part_content_set(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
 
-               }
-               else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
+               } else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
                        pNormalView->nRepeatMode = VIDEO_PLAY_REPEAT_NONE;
                        Evas_Object *pIcon = NULL;
                        pIcon = elm_object_part_content_get(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_ICON);
@@ -5358,8 +5295,7 @@ static void __vp_normal_function_btn_clicked_cb(void *pUserData, Evas_Object *pO
                        pIcon = vp_button_create_icon(pNormalView->pRepeatBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_REPEAT_OFF_DIM);
                        elm_object_part_content_set(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
                }
-       }
-       else if (pObj == pNormalView->pScreenSizeBtn) {
+       } else if (pObj == pNormalView->pScreenSizeBtn) {
                VideoLogWarning("pScreenSizeBtn button");
 
                if (pNormalView->nDisplayMode == VP_MM_PLAYER_DISPLAY_FULL_SCREEN) {
@@ -5396,8 +5332,7 @@ static void __vp_normal_function_btn_clicked_cb(void *pUserData, Evas_Object *pO
                        //elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
 
                        return;
-               }
-               else if (pNormalView->nDisplayMode == VP_MM_PLAYER_DISPLAY_LETTER_BOX) {
+               } else if (pNormalView->nDisplayMode == VP_MM_PLAYER_DISPLAY_LETTER_BOX) {
                        VideoLogWarning("VP_MM_PLAYER_DISPLAY_FULL_SCREEN");
                        pNormalView->nDisplayMode = VP_MM_PLAYER_DISPLAY_FULL_SCREEN;
                        vp_play_preference_set_screen_mode_key(pNormalView->nDisplayMode);
@@ -5463,15 +5398,14 @@ static void __vp_normal_control_btn_clicked_cb(void *pUserData, Evas_Object *pOb
                } else {
                        if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
                                VideoLogWarning("Pause Fail");
-                       }
+                       }
                }
 
                VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
                pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
 
                pNormalView->bManualPause = TRUE;
-       }
-       else if (pObj == pNormalView->pResumeBtn) {
+       } else if (pObj == pNormalView->pResumeBtn) {
                VideoLogWarning("Resume button");
                vp_util_lock_cpu();
                _vp_play_normal_view_check_during_call(pNormalView);
@@ -5485,22 +5419,21 @@ static void __vp_normal_control_btn_clicked_cb(void *pUserData, Evas_Object *pOb
                } else {
                        if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
                                VideoLogWarning("Resume Fail");
-                       }
+                       }
                }
 
                VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
                pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
 
                pNormalView->bManualPause = FALSE;
-       }
-       else if (pObj == pNormalView->pPlayFocusBtn) {
+       } else if (pObj == pNormalView->pPlayFocusBtn) {
                VideoLogWarning("pPlayFocusBtn click");
                Evas_Object *pObj = elm_object_part_content_get(pNormalView->pControlLayout, VP_PLAY_SWALLOW_NORMAL_PLAY);
                if (pNormalView->pPauseBtn == pObj) {
 
                        if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
                                VideoLogWarning("Pause Fail");
-                       }
+                       }
 
                        VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
                        pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
@@ -5511,14 +5444,13 @@ static void __vp_normal_control_btn_clicked_cb(void *pUserData, Evas_Object *pOb
 
                        if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
                                VideoLogWarning("Resume Fail");
-                       }
+                       }
                        VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
                        pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
 
                        pNormalView->bManualPause = FALSE;
                }
-       }
-       else if (pObj == pNormalView->pPrevBtn) {
+       } else if (pObj == pNormalView->pPrevBtn) {
                VideoLogWarning("Prev button");
                if (pNormalView->bHLSMode == FALSE) {
                        if (pNormalView->nSpeedValue < 2) {
@@ -5526,17 +5458,15 @@ static void __vp_normal_control_btn_clicked_cb(void *pUserData, Evas_Object *pOb
                                _vp_play_normal_view_on_prev_play(pNormalView, TRUE, FALSE);
                        }
                }
-       }
-       else if (pObj == pNormalView->pNextBtn) {
+       } else if (pObj == pNormalView->pNextBtn) {
                VideoLogWarning("Next button");
                if (pNormalView->bHLSMode == FALSE) {
-                       if (pNormalView->nSpeedValue < 2 && strstr (pPlayView->szMediaURL,"/.") == NULL) {
+                       if (pNormalView->nSpeedValue < 2 && strstr(pPlayView->szMediaURL, "/.") == NULL) {
                                VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
                                _vp_play_normal_view_on_next_play(pNormalView, TRUE);
                        }
                }
-       }
-       else if (pObj == pNormalView->pRotateBtn) {
+       } else if (pObj == pNormalView->pRotateBtn) {
                VideoLogWarning("Rotate button");
 
                bool bLandscape = vp_play_util_get_landscape_check(pNormalView->nRotate);
@@ -5573,16 +5503,16 @@ static void __vp_normal_control_btn_clicked_cb(void *pUserData, Evas_Object *pOb
                        }
 
                        pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_WITH_CANCEL_BTN,
-                                                               NULL,
-                                                               VP_PLAY_STRING_ERROR_UNABLE_CAPTURE_DRM_CONTENT,
-                                                               0.0, NULL,
-                                                               __vp_normal_popup_key_event_cb,
-                                                               __vp_normal_popup_mouse_event_cb,
-                                                               pNormalView);
+                                                             NULL,
+                                                             VP_PLAY_STRING_ERROR_UNABLE_CAPTURE_DRM_CONTENT,
+                                                             0.0, NULL,
+                                                             __vp_normal_popup_key_event_cb,
+                                                             __vp_normal_popup_mouse_event_cb,
+                                                             pNormalView);
 
                        Evas_Object *pBtn = NULL;
                        pBtn = elm_button_add(pNormalView->pPopup);
-                       elm_object_style_set (pBtn, "popup_button/default");
+                       elm_object_style_set(pBtn, "popup_button/default");
                        elm_object_domain_translatable_text_set(pBtn, VP_SYS_STR_PREFIX, VP_PLAY_STRING_COM_OK_IDS);
                        elm_object_part_content_set(pNormalView->pPopup, "button1", pBtn);
                        evas_object_smart_callback_add(pBtn, "clicked", __vp_normal_popup_key_event_cb, (void*)pNormalView);
@@ -5601,16 +5531,16 @@ static void __vp_normal_control_btn_clicked_cb(void *pUserData, Evas_Object *pOb
                        }
 
                        pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_WITH_CANCEL_BTN,
-                                                               NULL,
-                                                               VP_PLAY_STRING_ERROR_UNSUPPORTED_FORMAT,
-                                                               0.0, NULL,
-                                                               __vp_normal_popup_key_event_cb,
-                                                               __vp_normal_popup_mouse_event_cb,
-                                                               pNormalView);
+                                                             NULL,
+                                                             VP_PLAY_STRING_ERROR_UNSUPPORTED_FORMAT,
+                                                             0.0, NULL,
+                                                             __vp_normal_popup_key_event_cb,
+                                                             __vp_normal_popup_mouse_event_cb,
+                                                             pNormalView);
 
                        Evas_Object *pBtn = NULL;
                        pBtn = elm_button_add(pNormalView->pPopup);
-                       elm_object_style_set (pBtn, "popup_button/default");
+                       elm_object_style_set(pBtn, "popup_button/default");
                        elm_object_domain_translatable_text_set(pBtn, VP_SYS_STR_PREFIX, VP_PLAY_STRING_COM_OK_IDS);
                        elm_object_part_content_set(pNormalView->pPopup, "button1", pBtn);
                        evas_object_smart_callback_add(pBtn, "clicked", __vp_normal_popup_key_event_cb, (void*)pNormalView);
@@ -5631,12 +5561,12 @@ static void __vp_normal_control_btn_clicked_cb(void *pUserData, Evas_Object *pOb
 
                        VP_EVAS_DEL(pNormalView->pPopup);
                        pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
-                                                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                                       VP_PLAY_STRING_COM_ERROR,
-                                                                       VP_PLAY_STRING_COM_ENOUGH_MEMORY,
-                                                                       3.0, __vp_normal_popup_time_out_cb,
-                                                                       NULL, NULL,
-                                                                       pNormalView);
+                                                             POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                             VP_PLAY_STRING_COM_ERROR,
+                                                             VP_PLAY_STRING_COM_ENOUGH_MEMORY,
+                                                             3.0, __vp_normal_popup_time_out_cb,
+                                                             NULL, NULL,
+                                                             pNormalView);
                        evas_object_show(pNormalView->pPopup);
                        pNormalView->bIsPopupShow = TRUE;
 
@@ -5645,14 +5575,11 @@ static void __vp_normal_control_btn_clicked_cb(void *pUserData, Evas_Object *pOb
 
                _vp_play_normal_view_hide_layout(pNormalView, TRUE);
                _vp_play_normal_view_screen_capture(pNormalView);
-       }
-       else if (pObj == pNormalView->pCaptureRewBtn) {
+       } else if (pObj == pNormalView->pCaptureRewBtn) {
                _vp_play_normal_view_screen_move(pNormalView, FALSE);
-       }
-       else if (pObj == pNormalView->pCaptureFFBtn) {
+       } else if (pObj == pNormalView->pCaptureFFBtn) {
                _vp_play_normal_view_screen_move(pNormalView, TRUE);
-       }
-       else {
+       } else {
                VideoLogWarning("Unknown button");
        }
 }
@@ -5692,33 +5619,29 @@ static void __vp_normal_control_btn_press_cb(void *pUserData, Evas_Object *pObj,
                        pNormalView->nSpeedValue = 1;
                        pNormalView->bSpeedDown = TRUE;
                        pNormalView->pSpeedTimer = ecore_timer_add(VP_NORMAL_LONG_PRESS_TIMER_INTERVAL,
-                                                               __vp_normal_speed_timer_cb,
-                                                               (void *)pNormalView);
-               }
-               else {
+                                                  __vp_normal_speed_timer_cb,
+                                                  (void *)pNormalView);
+               } else {
                        pNormalView->pSpeedTimer = ecore_timer_add(VP_NORMAL_LONG_PRESS_TIMER_INTERVAL,
-                                                               __vp_normal_dlna_speed_timer_cb,
-                                                               (void *)pNormalView);
+                                                  __vp_normal_dlna_speed_timer_cb,
+                                                  (void *)pNormalView);
                }
 
-       }
-       else if (pObj == pNormalView->pPrevBtn) {
+       } else if (pObj == pNormalView->pPrevBtn) {
                VideoLogInfo("pPrevBtn Press");
                if (pNormalView->bHLSMode == FALSE) {
                        pNormalView->bSpeedFF = FALSE;
                        pNormalView->nSpeedValue = 1;
                        pNormalView->bSpeedDown = TRUE;
                        pNormalView->pSpeedTimer = ecore_timer_add(VP_NORMAL_LONG_PRESS_TIMER_INTERVAL,
-                                                               __vp_normal_speed_timer_cb,
-                                                               (void *)pNormalView);
-               }
-               else {
+                                                  __vp_normal_speed_timer_cb,
+                                                  (void *)pNormalView);
+               } else {
                        pNormalView->pSpeedTimer = ecore_timer_add(VP_NORMAL_LONG_PRESS_TIMER_INTERVAL,
-                                                               __vp_normal_dlna_speed_timer_cb,
-                                                               (void *)pNormalView);
+                                                  __vp_normal_dlna_speed_timer_cb,
+                                                  (void *)pNormalView);
                }
-       }
-       else if (pObj == pNormalView->pResumeBtn) {
+       } else if (pObj == pNormalView->pResumeBtn) {
                if (bSpeedMode) {
                        int nPosition = 0;
                        if (vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
@@ -5727,13 +5650,12 @@ static void __vp_normal_control_btn_press_cb(void *pUserData, Evas_Object *pObj,
                                if (vp_mm_player_set_position(pNormalView->pPlayerHandle, pNormalView->nCurPosition)) {
                                        pNormalView->bSeekComplete = FALSE;
                                        pNormalView->nWaitPos = -1;
-                               }else {
+                               } else {
                                        pNormalView->nWaitPos = nPosition;
                                }
                        }
                }
-       }
-       else if (pObj == pNormalView->pPlayFocusBtn) {
+       } else if (pObj == pNormalView->pPlayFocusBtn) {
                VideoLogInfo("pPlayFocusBtn Press");
                Evas_Object *pObj = elm_object_part_content_get(pNormalView->pControlLayout, VP_PLAY_SWALLOW_NORMAL_PLAY);
                if (pNormalView->pResumeBtn == pObj) {
@@ -5743,7 +5665,7 @@ static void __vp_normal_control_btn_press_cb(void *pUserData, Evas_Object *pObj,
                                        if (vp_mm_player_set_position(pNormalView->pPlayerHandle, pNormalView->nCurPosition)) {
                                                pNormalView->bSeekComplete = FALSE;
                                                pNormalView->nWaitPos = -1;
-                                       }else {
+                                       } else {
                                                pNormalView->nWaitPos = nPosition;
                                        }
                                }
@@ -5770,26 +5692,22 @@ static void __vp_normal_control_btn_unpress_cb(void *pUserData, Evas_Object *pOb
        pNormalView->bKeyPressed = FALSE;
 
        if (pObj == pNormalView->pPauseBtn) {
-       }
-       else if (pObj == pNormalView->pResumeBtn) {
-       }
-       else if (pObj == pNormalView->pNextBtn) {
+       } else if (pObj == pNormalView->pResumeBtn) {
+       } else if (pObj == pNormalView->pNextBtn) {
                pNormalView->bSpeedDown = FALSE;
                VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
                if (!pNormalView->pProgressTimer) {
                        _vp_play_normal_view_create_progress_timer(pNormalView);
                }
-       }
-       else if (pObj == pNormalView->pPrevBtn) {
+       } else if (pObj == pNormalView->pPrevBtn) {
                pNormalView->bSpeedDown = FALSE;
                VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
                if (!pNormalView->pProgressTimer) {
                        _vp_play_normal_view_create_progress_timer(pNormalView);
                }
-       }
-       else if (pObj == pNormalView->pAllsharBtn) {
+       } else if (pObj == pNormalView->pAllsharBtn) {
                VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
                pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
        }
@@ -5809,8 +5727,7 @@ static void __vp_normal_media_key_event_cb(vp_media_key_event_t nKey, bool bRele
                return;
        }
 
-       switch (nKey)
-       {
+       switch (nKey) {
        case VP_MEDIA_KEY_PLAY:
        case VP_MEDIA_KEY_PAUSE:
        case VP_MEDIA_KEY_PLAYPAUSE:
@@ -5834,8 +5751,7 @@ static void __vp_normal_media_key_event_cb(vp_media_key_event_t nKey, bool bRele
                                        VideoLogError("Pause Fail");
                                }
                                pNormalView->bManualPause = FALSE;
-                       }
-                       else {
+                       } else {
                                if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
                                        VideoLogError("Pause Fail");
                                }
@@ -5887,8 +5803,7 @@ static void __vp_normal_media_key_event_cb(vp_media_key_event_t nKey, bool bRele
 
                        _vp_play_normal_view_set_play_state(pNormalView);
                        _vp_play_normal_view_on_capture_mode(pNormalView);
-               }
-               else {
+               } else {
                        if (pNormalView->pDetailHandle) {
                                vp_detail_destroy(pNormalView->pDetailHandle);
                                pNormalView->pDetailHandle = NULL;
@@ -5903,8 +5818,8 @@ static void __vp_normal_media_key_event_cb(vp_media_key_event_t nKey, bool bRele
                        pNormalView->nSpeedValue = 1;
                        pNormalView->bSpeedDown = TRUE;
                        pNormalView->pSpeedTimer = ecore_timer_add(VP_NORMAL_LONG_PRESS_TIMER_INTERVAL,
-                                                               __vp_normal_speed_timer_cb,
-                                                               (void *)pNormalView);
+                                                  __vp_normal_speed_timer_cb,
+                                                  (void *)pNormalView);
                }
                break;
        case VP_MEDIA_KEY_FASTFORWARD:
@@ -5933,8 +5848,7 @@ static void __vp_normal_media_key_event_cb(vp_media_key_event_t nKey, bool bRele
 
                        _vp_play_normal_view_set_play_state(pNormalView);
                        _vp_play_normal_view_on_capture_mode(pNormalView);
-               }
-               else {
+               } else {
                        VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
                        VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
                        VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
@@ -5950,8 +5864,8 @@ static void __vp_normal_media_key_event_cb(vp_media_key_event_t nKey, bool bRele
                        pNormalView->nSpeedValue = 1;
                        pNormalView->bSpeedDown = TRUE;
                        pNormalView->pSpeedTimer = ecore_timer_add(VP_NORMAL_LONG_PRESS_TIMER_INTERVAL,
-                                                               __vp_normal_speed_timer_cb,
-                                                               (void *)pNormalView);
+                                                  __vp_normal_speed_timer_cb,
+                                                  (void *)pNormalView);
                }
                break;
        case VP_MEDIA_KEY_STOP:
@@ -5995,11 +5909,12 @@ void vp_play_normal_view_ff_rew_keyboard_longpress_event_cb(normal_view_handle p
 
        NormalView      *pNormalView = (NormalView *)pViewHandle;
 
-       if (pNormalView->pSpeedTimer== NULL && bRelease == FALSE) {
-               if (bFFseek)
+       if (pNormalView->pSpeedTimer == NULL && bRelease == FALSE) {
+               if (bFFseek) {
                        __vp_normal_media_key_event_cb(VP_MEDIA_KEY_FASTFORWARD, bRelease, pNormalView);
-               else
+               } else {
                        __vp_normal_media_key_event_cb(VP_MEDIA_KEY_REWIND, bRelease, pNormalView);
+               }
        } else if (pNormalView->pSpeedTimer && bRelease == TRUE) {
                if (pNormalView->nSpeedValue < 2) {
                        VideoLogInfo("speed up");
@@ -6066,8 +5981,7 @@ static void _vp_normal_view_speed_for_steps(NormalView *pNormalView, bool bSpeed
        VideoLogInfo("pNormalView->nDuration %d", pNormalView->nDuration);
        if (bSpeedFF) {
                nSetPosition = nCurPosition  + (15 * 1000);//15 sec
-       }
-       else {
+       } else {
                nSetPosition = nCurPosition  - (15 * 1000);
        }
 
@@ -6360,8 +6274,7 @@ static Eina_Bool __vp_normal_naviframe_pop_cb(void *pUserData, Elm_Object_Item *
                        pPlayView->pFunc->vp_play_func_exit(pPlayView);
 
                        return EINA_FALSE;
-               }
-               else {
+               } else {
                        PlayView *pPlayView = pNormalView->pPlayView;
 
                        if (!pPlayView) {
@@ -6377,7 +6290,7 @@ static Eina_Bool __vp_normal_naviframe_pop_cb(void *pUserData, Elm_Object_Item *
                        vp_play_util_status_noti_show(VP_PLAY_STRING_COM_WAIT_BACK);
 
                        pNormalView->pExitWaitTimer = ecore_timer_add(VP_NORMAL_EXIT_WAIT_TIMER_INTERVAL,
-                                                               __vp_normal_exit_wait_timer_cb, (void *)pNormalView);
+                                                     __vp_normal_exit_wait_timer_cb, (void *)pNormalView);
 
                        return EINA_FALSE;
                }
@@ -6419,7 +6332,7 @@ static void __vp_normal_sdp_download_state_change_cb(VppDownloadHandle pDownload
                }
 
                VP_FREE(szDownloadedFilePath);
-               if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle,pNormalView->szMediaURL)) {
+               if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle, pNormalView->szMediaURL)) {
                        VideoLogError("vp_mm_player_realize_async fail");
                        VppDownloadDestroyItem(pNormalView->pDownloadHandle);
                        pNormalView->pDownloadHandle = NULL;
@@ -6429,7 +6342,7 @@ static void __vp_normal_sdp_download_state_change_cb(VppDownloadHandle pDownload
                VppDownloadDestroyItem(pNormalView->pDownloadHandle);
                pNormalView->pDownloadHandle = NULL;
        } else if (eState == VPP_DOWNLOAD_STATE_FAILED || eState == VPP_DOWNLOAD_STATE_CANCELED) {
-               if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle,pNormalView->szMediaURL)) {
+               if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle, pNormalView->szMediaURL)) {
 
                        VppDownloadDestroyItem(pNormalView->pDownloadHandle);
                        pNormalView->pDownloadHandle = NULL;
@@ -6455,7 +6368,7 @@ static void __vp_normal_main_layout_resize_cb(void *pUserData, Evas *pEvas, Evas
 static unsigned int _vp_play_normal_view_convert_color_to_argb(char *szColorHex)
 {
        unsigned int nColor = 0;
-       char *szColor = g_strdup_printf("%s%6.6s", (szColorHex+7), (szColorHex+1));
+       char *szColor = g_strdup_printf("%s%6.6s", (szColorHex + 7), (szColorHex + 1));
        nColor = strtoul(szColor, NULL, 16);
        VideoLogInfo("szColorHex:%s, szColor: %s, nColor:%0x", szColorHex, szColor, nColor);
        VP_FREE(szColor);
@@ -6489,11 +6402,9 @@ static bool _vp_play_normal_view_set_subtitle_font_config(NormalView *pNormalVie
 
        if (nSubtitleSize == VIDEO_SUBTITLE_SIZE_SMALL) {
                nSubtitleSizeValue = VP_SUBTITLE_SIZE_SMALL_VALUE;
-       }
-       else if (nSubtitleSize == VIDEO_SUBTITLE_SIZE_MEDIUM) {
+       } else if (nSubtitleSize == VIDEO_SUBTITLE_SIZE_MEDIUM) {
                nSubtitleSizeValue = VP_SUBTITLE_SIZE_MEDIUM_VALUE;
-       }
-       else if (nSubtitleSize == VIDEO_SUBTITLE_SIZE_LARGE) {
+       } else if (nSubtitleSize == VIDEO_SUBTITLE_SIZE_LARGE) {
                nSubtitleSizeValue = VP_SUBTITLE_SIZE_LARGE_VALUE;
        }
 #ifndef SUBTITLE_K_FEATURE
@@ -6504,14 +6415,11 @@ static bool _vp_play_normal_view_set_subtitle_font_config(NormalView *pNormalVie
 
        if (nFontColorKey == VIDEO_SUBTITLE_COLOR_BLACK) {
                nFontColor = 0xff000000;
-       }
-       else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_BLUE) {
+       } else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_BLUE) {
                nFontColor = 0xff0000ff;
-       }
-       else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_GREEN) {
+       } else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_GREEN) {
                nFontColor = 0xff00ff00;
-       }
-       else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_WHITE) {
+       } else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_WHITE) {
                nFontColor = 0xffffffff;
        }
 
@@ -6519,11 +6427,9 @@ static bool _vp_play_normal_view_set_subtitle_font_config(NormalView *pNormalVie
 
        if (nBGColorKey == VIDEO_SUBTITLE_COLOR_BLACK) {
                nBGColor = 0xff000000;
-       }
-       else if (nBGColorKey == VIDEO_SUBTITLE_COLOR_WHITE) {
+       } else if (nBGColorKey == VIDEO_SUBTITLE_COLOR_WHITE) {
                nBGColor = 0xffffffff;
-       }
-       else if (nBGColorKey == VIDEO_SUBTITLE_COLOR_NONE) {
+       } else if (nBGColorKey == VIDEO_SUBTITLE_COLOR_NONE) {
                nBGColor = 0x00000000;
        }
 
@@ -6633,16 +6539,16 @@ static bool _vp_play_normal_view_check_during_call(NormalView *pNormalView)
 
                if (!pPlayView) {
                        VideoLogError("pPlayView is NULL");
-                       return FALSE;
-               }
-               pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
-                                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                       NULL,
-                                                       VP_PLAY_STRING_UNABLE_TO_PLAY_VIDEO_DURING_CALL,
-                                                       3.0, __vp_normal_popup_time_out_cb,
-                                                       __vp_normal_popup_key_event_cb,
-                                                       __vp_normal_popup_mouse_event_cb,
-                                                       pNormalView);
+                       return FALSE;
+               }
+               pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
+                                                     POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                     NULL,
+                                                     VP_PLAY_STRING_UNABLE_TO_PLAY_VIDEO_DURING_CALL,
+                                                     3.0, __vp_normal_popup_time_out_cb,
+                                                     __vp_normal_popup_key_event_cb,
+                                                     __vp_normal_popup_mouse_event_cb,
+                                                     pNormalView);
 
                evas_object_show(pNormalView->pPopup);
                pNormalView->bIsPopupShow = TRUE;
@@ -6795,16 +6701,13 @@ static bool _vp_play_normal_view_check_drm(NormalView *pNormalView, bool *bIsAva
        if (bIsDrm == FALSE) {
                VideoLogWarning("Not DRM File");
                return TRUE;
-       }
-       else {
+       } else {
                VideoLogWarning("== IS DRM FILE ================================");
        }
 
-       if (pNormalView->pPlayView->bStoreDownload == TRUE)
-       {
+       if (pNormalView->pPlayView->bStoreDownload == TRUE) {
                bool    bCheckLicense   = FALSE;
-               if (!vp_drm_is_check_license(pNormalView->szMediaURL, &bCheckLicense))
-               {
+               if (!vp_drm_is_check_license(pNormalView->szMediaURL, &bCheckLicense)) {
                        VideoLogError("vp_drm_is_check_license is fail");
 
                        *bIsAvailablePlay = FALSE;
@@ -6812,16 +6715,14 @@ static bool _vp_play_normal_view_check_drm(NormalView *pNormalView, bool *bIsAva
                        return FALSE;
                }
 
-               if (bCheckLicense == FALSE)
-               {
-                       if (!vp_store_license_acquisition(      pNormalView->szMediaURL,
-                                                                                               pNormalView->pPlayView->pStoreAppId,
-                                                                                               pNormalView->pPlayView->pStoreOrderId,
-                                                                                               pNormalView->pPlayView->pStoreMvId,
-                                                                                               pNormalView->pPlayView->pStoreServerId,
-                                                                                               _vp_play_normal_view_store_la_cb,
-                                                                                               (const void*)pNormalView        ))
-                       {
+               if (bCheckLicense == FALSE) {
+                       if (!vp_store_license_acquisition(pNormalView->szMediaURL,
+                                                         pNormalView->pPlayView->pStoreAppId,
+                                                         pNormalView->pPlayView->pStoreOrderId,
+                                                         pNormalView->pPlayView->pStoreMvId,
+                                                         pNormalView->pPlayView->pStoreServerId,
+                                                         _vp_play_normal_view_store_la_cb,
+                                                         (const void*)pNormalView)) {
                                VideoLogError("vp_store_license_acquisition is fail");
 
                                *bIsAvailablePlay = FALSE;
@@ -6864,10 +6765,10 @@ static bool _vp_play_normal_view_check_drm(NormalView *pNormalView, bool *bIsAva
                        szMessage = g_strdup_printf(VP_PLAY_STRING_DRM_CURRENTLY_LOCKED_UNLOCK_Q, szTitleTemp);
 
                        pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               szMessage,
-                                                               3.0,__vp_normal_error_popup_time_out_cb,
-                                                               NULL, NULL, pNormalView);
+                                                             VP_PLAY_STRING_COM_ERROR,
+                                                             szMessage,
+                                                             3.0, __vp_normal_error_popup_time_out_cb,
+                                                             NULL, NULL, pNormalView);
                        evas_object_show(pNormalView->pPopup);
                        pNormalView->bIsPopupShow = TRUE;
 
@@ -6894,10 +6795,10 @@ static bool _vp_play_normal_view_check_drm(NormalView *pNormalView, bool *bIsAva
                        VP_EVAS_DEL(pNormalView->pPopup);
                        pNormalView->pPopup = NULL;
                        pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_DIVX_DRM_AUTHORIZATION_ERROR,
-                                                               3.0,__vp_normal_error_popup_time_out_cb,
-                                                               NULL, NULL, pNormalView);
+                                                             VP_PLAY_STRING_COM_ERROR,
+                                                             VP_PLAY_STRING_DIVX_DRM_AUTHORIZATION_ERROR,
+                                                             3.0, __vp_normal_error_popup_time_out_cb,
+                                                             NULL, NULL, pNormalView);
 
                        evas_object_show(pNormalView->pPopup);
                        pNormalView->bIsPopupShow = TRUE;
@@ -6907,32 +6808,26 @@ static bool _vp_play_normal_view_check_drm(NormalView *pNormalView, bool *bIsAva
                        return TRUE;
                }
 
-               while (stConstraintInfo.constraints)
-               {
+               while (stConstraintInfo.constraints) {
                        if (stConstraintInfo.constraints & VP_DRM_CONSTRAINT_COUNT) {
                                if (stConstraintInfo.remaining_count == 0) {
                                        szMsg = g_strdup_printf(VP_PLAY_STRING_DIVX_DRM_RENTAL_EXPIRED_ERROR, stConstraintInfo.original_count - stConstraintInfo.remaining_count, stConstraintInfo.original_count);
-                               }
-                               else {
+                               } else {
                                        szMsg = g_strdup_printf(VP_PLAY_STRING_DIVX_DRM_RENTAL_CONFIRMATION_CHOICE, stConstraintInfo.original_count - stConstraintInfo.remaining_count, stConstraintInfo.original_count);
                                }
                                break;
                        }
                }
-       }
-       else {
+       } else {
                bool bNotiPopup = FALSE;
 
-               while (stConstraintInfo.constraints)
-               {
+               while (stConstraintInfo.constraints) {
                        if (stConstraintInfo.constraints & VP_DRM_CONSTRAINT_COUNT) {
                                if (stConstraintInfo.remaining_count == 2) {
                                        szMsg = g_strdup_printf(VP_PLAY_STRING_DRM_PS_2_MORE_TIME_START_NOW_Q, szTitle);
-                               }
-                               else if (stConstraintInfo.remaining_count == 1) {
+                               } else if (stConstraintInfo.remaining_count == 1) {
                                        szMsg = g_strdup_printf(VP_PLAY_STRING_DRM_PS_1_MORE_TIME_START_NOW_Q, szTitle);
-                               }
-                               else if (stConstraintInfo.remaining_count == 0) {
+                               } else if (stConstraintInfo.remaining_count == 0) {
                                        bNotiPopup = TRUE;
                                }
                                break;
@@ -6948,8 +6843,7 @@ static bool _vp_play_normal_view_check_drm(NormalView *pNormalView, bool *bIsAva
                        if (stConstraintInfo.constraints & VP_DRM_CONSTRAINT_INTERVAL) {
                                if (stConstraintInfo.remaining_interval_sec == 0) {
                                        bNotiPopup = TRUE;
-                               }
-                               else {
+                               } else {
                                        int nDays = stConstraintInfo.remaining_interval_sec / VP_ACCUMULATED_DATE + 1;
                                        szMsg = g_strdup_printf(VP_PLAY_STRING_DRM_PS_FOR_PD_DAYS_START_NOW_Q, szTitle, nDays);
                                }
@@ -6991,8 +6885,7 @@ static void _vp_play_normal_view_free_subtitle_list(GList *pSubtitleList)
                int nCount = 0;
                int i = 0;
                nCount = g_list_length(pSubtitleList);
-               for (i = 0; i < nCount ; i++)
-               {
+               for (i = 0; i < nCount ; i++) {
                        char *szName = NULL;
                        szName = (char *)g_list_nth_data(pSubtitleList, i);
                        VP_FREE(szName);
@@ -7038,7 +6931,7 @@ static Evas_Object *_vp_play_normal_view_create_image_sink(void *pParent, void *
        int nBufSize = VP_NORMAL_DEFAULT_WIDTH * VP_NORMAL_DEFAULT_HEIGHT * 4;
 
        memset(pImageBuf, 0, nBufSize);
-       evas_object_image_data_set(pObj,pImageBuf);
+       evas_object_image_data_set(pObj, pImageBuf);
 
 //     evas_object_event_callback_add(pObj, EVAS_CALLBACK_RESIZE,
 //                                     __vp_play_multi_view_imagesink_resize_cb, (void *)pNormalView);
@@ -7050,14 +6943,15 @@ static Evas_Object *_vp_play_normal_view_create_image_sink(void *pParent, void *
 }
 #endif
 
-bool vp_play_normal_view_play_start(normal_view_handle pViewHandle) {
+bool vp_play_normal_view_play_start(normal_view_handle pViewHandle)
+{
        if (!pViewHandle) {
                VideoLogError("pViewHandle is NULL");
                return FALSE;
        }
 
        NormalView *pNormalView = (NormalView *)pViewHandle;
-       _vp_play_normal_view_play_start(pNormalView,FALSE);
+       _vp_play_normal_view_play_start(pNormalView, FALSE);
        return TRUE;
 }
 
@@ -7124,7 +7018,7 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
        }
 
        if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
 
                if (!vp_play_util_local_file_check(pNormalView->szMediaURL)) {
                        /* popup show */
@@ -7136,10 +7030,10 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
                                return FALSE;
                        }
                        pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_FILE_NOT_EXIST,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               NULL, NULL, pNormalView);
+                                                             VP_PLAY_STRING_COM_ERROR,
+                                                             VP_PLAY_STRING_ERROR_FILE_NOT_EXIST,
+                                                             3.0, __vp_normal_error_popup_time_out_cb,
+                                                             NULL, NULL, pNormalView);
 
                        evas_object_show(pNormalView->pPopup);
                        pNormalView->bIsPopupShow = TRUE;
@@ -7150,7 +7044,7 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
 
        if (bCheckDRM) {
                if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
                        bool bIsAvailablePlay = TRUE;
 #ifdef ENABLE_DRM_FEATURE
                        if (_vp_play_normal_view_check_drm(pNormalView, &bIsAvailablePlay)) {
@@ -7158,32 +7052,27 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
                                        VideoLogWarning("Wait Drm popup result");
                                        return TRUE;
                                }
-                       }
-                       else
+                       } else
 #endif
                        {
-                               if (pNormalView->pPlayView->bStoreDownload == TRUE)
-                               {
-                                       if (bIsAvailablePlay == FALSE)
-                                       {
+                               if (pNormalView->pPlayView->bStoreDownload == TRUE) {
+                                       if (bIsAvailablePlay == FALSE) {
                                                VideoLogWarning("license acquisition failed!!!");
 
                                                Evas_Object *pPopup = NULL;
                                                pPopup = vp_popup_create(pNormalView->pPlayView->pWin,
-                                                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                                       VP_PLAY_STRING_COM_ERROR,
-                                                                       VP_PLAY_STRING_ERROR_UNABLE_PLAY,
-                                                                       3.0, __vp_normal_prepare_error_popup_time_out_cb,
-                                                                       NULL, NULL, pNormalView);
+                                                                        POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                                        VP_PLAY_STRING_COM_ERROR,
+                                                                        VP_PLAY_STRING_ERROR_UNABLE_PLAY,
+                                                                        3.0, __vp_normal_prepare_error_popup_time_out_cb,
+                                                                        NULL, NULL, pNormalView);
 
                                                evas_object_show(pPopup);
 
                                                pNormalView->bIsPopupShow = TRUE;
 
                                                return FALSE;
-                                       }
-                                       else
-                                       {
+                                       } else {
                                                VideoLogWarning("need license acquisition");
                                                return FALSE;
                                        }
@@ -7194,8 +7083,8 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
 
        if (pNormalView->nStartPosition == 0) {
                if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_STORE ||
-                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
-                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
+                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
+                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
                        int nStartPos = 0;
                        if (vp_media_contents_get_played_position(pNormalView->szMediaURL, &nStartPos)) {
                                pNormalView->nStartPosition = nStartPos;
@@ -7204,8 +7093,8 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
        }
 
        if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_STORE ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
                vp_media_contents_set_played_time(pNormalView->szMediaURL);
        }
 
@@ -7213,7 +7102,7 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
 
        if (bCheckDRM) {
                if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
 
                        bool bDRMLock = FALSE;
                        _vp_play_normal_view_check_drm_lock(pNormalView, &bDRMLock);
@@ -7324,8 +7213,8 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
 
 #ifdef _NATIVE_BUFFER_SYNC
        if (!vp_mm_player_set_video_sink(pNormalView->pPlayerHandle,
-                                       VP_MM_PLAYER_VIDEO_TYPE_EVAS,
-                                       (void *)pNormalView->pVideoSink)) {
+                                        VP_MM_PLAYER_VIDEO_TYPE_EVAS,
+                                        (void *)pNormalView->pVideoSink)) {
                VideoLogError("vp_mm_player_set_video_sink fail");
                _vp_play_normal_view_destroy_handle(pNormalView);
                return FALSE;
@@ -7344,14 +7233,11 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
 
        if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_NONE) {
                vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_0);
-       }
-       else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90) {
+       } else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90) {
                vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_90);
-       }
-       else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_180) {
+       } else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_180) {
                vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_180);
-       }
-       else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
+       } else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
                vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_270);
        }
 
@@ -7359,14 +7245,11 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
 
        if (pNormalView->nSoundAlive == VIDEO_SA_NORMAL) {
                nSoundFilter = VP_MM_PLAYER_FILTER_NONE;
-       }
-       else if (pNormalView->nSoundAlive == VIDEO_SA_VOICE) {
+       } else if (pNormalView->nSoundAlive == VIDEO_SA_VOICE) {
                nSoundFilter = VP_MM_PLAYER_FILTER_VOICE;
-       }
-       else if (pNormalView->nSoundAlive == VIDEO_SA_MOVIE) {
+       } else if (pNormalView->nSoundAlive == VIDEO_SA_MOVIE) {
                nSoundFilter = VP_MM_PLAYER_FILTER_MOVIE;
-       }
-       else if (pNormalView->nSoundAlive == VIDEO_SA_7_1_CH) {
+       } else if (pNormalView->nSoundAlive == VIDEO_SA_7_1_CH) {
                nSoundFilter = VP_MM_PLAYER_FILTER_VITUAL_71;
 
                video_sound_device_type_t nSoundDevType = VP_SOUND_DEVICE_NONE;
@@ -7390,7 +7273,7 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
        }
 
        if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
                if (pPlayView->szMediaTitle) {
                        elm_object_item_text_set(pNormalView->pNaviItem, pPlayView->szMediaTitle);
                } else {
@@ -7401,17 +7284,17 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
                        }
                        VP_FREE(szTitle);
                }
-               if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle,pNormalView->szMediaURL)) {
+               if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle, pNormalView->szMediaURL)) {
                        VideoLogError("vp_mm_player_realize_async fail");
 
                        //_vp_play_normal_view_show_layout(pNormalView);
                        Evas_Object *pPopup = NULL;
                        pPopup = vp_popup_create(pPlayView->pWin,
-                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                               VP_PLAY_STRING_COM_ERROR,
-                                               VP_PLAY_STRING_ERROR_UNABLE_PLAY,
-                                               3.0, __vp_normal_prepare_error_popup_time_out_cb,
-                                               NULL, NULL, pNormalView);
+                                                POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                VP_PLAY_STRING_COM_ERROR,
+                                                VP_PLAY_STRING_ERROR_UNABLE_PLAY,
+                                                3.0, __vp_normal_prepare_error_popup_time_out_cb,
+                                                NULL, NULL, pNormalView);
 
 
                        evas_object_show(pPopup);
@@ -7420,8 +7303,7 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
 
                        return TRUE;
                }
-       }
-       else {
+       } else {
                if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB) {
                        VideoLogInfo("VIDEO_PLAY_TYPE_WEB:%s", pNormalView->szMediaURL);
                        if (pPlayView->szMediaTitle) {
@@ -7441,8 +7323,7 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
                        }
                        char *szSdpPath = NULL;
                        szSdpPath = vp_play_util_get_sdp_url((const char *)pNormalView->szMediaURL);
-                       if (vp_play_util_check_sdp_url((const char *)szSdpPath))
-                       {
+                       if (vp_play_util_check_sdp_url((const char *)szSdpPath)) {
                                _vp_play_normal_view_download_sdp(pNormalView, pNormalView->szMediaURL);
                                //_vp_play_normal_view_show_layout(pNormalView);
 
@@ -7450,16 +7331,16 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
                        }
                        VP_FREE(szSdpPath);
 
-                       if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle,pNormalView->szMediaURL)) {
+                       if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle, pNormalView->szMediaURL)) {
                                VideoLogError("vp_mm_player_realize_async fail");
                                //_vp_play_normal_view_show_layout(pNormalView);
                                Evas_Object *pPopup = NULL;
                                pPopup = vp_popup_create(pPlayView->pWin,
-                                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                       VP_PLAY_STRING_COM_ERROR,
-                                                       VP_PLAY_STRING_ERROR_UNABLE_PLAY,
-                                                       3.0, __vp_normal_prepare_error_popup_time_out_cb,
-                                                       NULL, NULL, pNormalView);
+                                                        POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                        VP_PLAY_STRING_COM_ERROR,
+                                                        VP_PLAY_STRING_ERROR_UNABLE_PLAY,
+                                                        3.0, __vp_normal_prepare_error_popup_time_out_cb,
+                                                        NULL, NULL, pNormalView);
 
                                evas_object_show(pPopup);
 
@@ -7467,8 +7348,7 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
 
                                return TRUE;
                        }
-               }
-               else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
+               } else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
 
                        char *szTitle = NULL;
                        char *szMultiPathURL = NULL;
@@ -7484,17 +7364,17 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
                                        if (vp_file_exists(szSubtitleForMultiPath)) {
                                                pNormalView->bIsExistSubtitle = TRUE;
                                                VideoSecureLogInfo("SUBTITLE : %s", szSubtitleForMultiPath);
-                                               vp_mm_player_set_subtitle_url(pNormalView->pPlayerHandle,szSubtitleForMultiPath);
+                                               vp_mm_player_set_subtitle_url(pNormalView->pPlayerHandle, szSubtitleForMultiPath);
                                                VP_FREE(pNormalView->szSubtitleURL);
                                        } else {
                                                pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
-                                                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                                       VP_PLAY_STRING_COM_ERROR,
-                                                                       VP_PLAY_STRING_ERROR_SUBTITLE_FAIL,
-                                                                       3.0, __vp_normal_error_popup_time_out_cb,
-                                                                       __vp_normal_error_popup_key_event_cb,
-                                                                       __vp_normal_error_popup_mouse_event_cb,
-                                                                       pNormalView);
+                                                                                     POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                                                     VP_PLAY_STRING_COM_ERROR,
+                                                                                     VP_PLAY_STRING_ERROR_SUBTITLE_FAIL,
+                                                                                     3.0, __vp_normal_error_popup_time_out_cb,
+                                                                                     __vp_normal_error_popup_key_event_cb,
+                                                                                     __vp_normal_error_popup_mouse_event_cb,
+                                                                                     pNormalView);
                                                evas_object_show(pNormalView->pPopup);
                                                pNormalView->bIsPopupShow = TRUE;
                                        }
@@ -7507,30 +7387,31 @@ static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheck
 
                        if (szTitle) {
                                elm_object_item_text_set(pNormalView->pNaviItem, szTitle);
-                       }
-                       else {
+                       } else {
                                elm_object_item_text_set(pNormalView->pNaviItem, VP_PLAY_STRING_NO_TITLE);
                        }
 
-                       if (pNormalView->nStartPosition == 0)
+                       if (pNormalView->nStartPosition == 0) {
                                pNormalView->nStartPosition = nMultiPathPosition;
+                       }
 
-                       if (nMultiPathDuration>0)
+                       if (nMultiPathDuration > 0) {
                                pNormalView->nDuration = nMultiPathDuration;
+                       }
 
                        VP_FREE(szMultiPathURL);
                        VP_FREE(szSubtitleForMultiPath);
                        VP_FREE(szTitle);
 
-                       if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle,pNormalView->szMediaURL)) {
+                       if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle, pNormalView->szMediaURL)) {
                                VideoLogError("vp_mm_player_realize_async fail");
                                Evas_Object *pPopup = NULL;
                                pPopup = vp_popup_create(pPlayView->pWin,
-                                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                       VP_PLAY_STRING_COM_ERROR,
-                                                       VP_PLAY_STRING_ERROR_UNABLE_PLAY,
-                                                       3.0, __vp_normal_prepare_error_popup_time_out_cb,
-                                                       NULL, NULL, pNormalView);
+                                                        POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                        VP_PLAY_STRING_COM_ERROR,
+                                                        VP_PLAY_STRING_ERROR_UNABLE_PLAY,
+                                                        3.0, __vp_normal_prepare_error_popup_time_out_cb,
+                                                        NULL, NULL, pNormalView);
 
                                evas_object_show(pPopup);
 
@@ -7563,8 +7444,8 @@ static void _vp_play_normal_view_on_next_play(NormalView *pNormalView, bool bMan
        }
 
        if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MESSAGE ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
                return;
        }
 
@@ -7580,23 +7461,19 @@ static void _vp_play_normal_view_on_next_play(NormalView *pNormalView, bool bMan
                if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_NONE) {
                        if (bManual) {
                                return;
-                       }
-                       else {
+                       } else {
                                bIsExit = TRUE;
                        }
-               }
-               else {
+               } else {
                        _vp_play_normal_view_play_start(pNormalView, FALSE);
                }
-       }
-       else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
+       } else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
                PlayView *pPlayView = pNormalView->pPlayView;
 
                if (!pPlayView) {
                        VideoLogError("pPlayView is NULL");
                        bIsExit = TRUE;
-               }
-               else if (!pPlayView->pMultiPathList) {
+               } else if (!pPlayView->pMultiPathList) {
                        VideoLogError("pMultiPathList is NULL");
                        bIsExit = TRUE;
                } else {
@@ -7616,8 +7493,7 @@ static void _vp_play_normal_view_on_next_play(NormalView *pNormalView, bool bMan
                                        pNormalView->nStartPosition = nPosition;
                                        pNormalView->nDuration = nDuration;
                                        _vp_play_normal_view_play_start(pNormalView, TRUE);
-                               }
-                               else {
+                               } else {
                                        _vp_play_normal_view_play_start(pNormalView, TRUE);
                                }
                                return;
@@ -7625,11 +7501,9 @@ static void _vp_play_normal_view_on_next_play(NormalView *pNormalView, bool bMan
 
                        if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_NONE) {
                                bIsExit = TRUE;
-                       }
-                       else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_OFF) {
+                       } else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_OFF) {
                                bIsExit = TRUE;
-                       }
-                       else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL_STOP) {
+                       } else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL_STOP) {
                                char *szNextURL = NULL;
                                char *szSubtitle = NULL;
                                int nPosition = 0;
@@ -7640,19 +7514,16 @@ static void _vp_play_normal_view_on_next_play(NormalView *pNormalView, bool bMan
 
                                if (!szNextURL) {
                                        bIsExit = TRUE;
-                               }
-                               else {
+                               } else {
                                        VP_FREE(pNormalView->szMediaURL);
                                        VP_STRDUP(pNormalView->szMediaURL, szNextURL);
                                        VP_FREE(szNextURL);
                                        pNormalView->nDuration = nDuration;
                                        _vp_play_normal_view_play_start(pNormalView, TRUE);
                                }
-                       }
-                       else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE) {
+                       } else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE) {
                                _vp_play_normal_view_play_start(pNormalView, TRUE);
-                       }
-                       else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
+                       } else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
                                char *szNextURL = NULL;
                                char *szSubtitle = NULL;
                                int nPosition = 0;
@@ -7661,8 +7532,7 @@ static void _vp_play_normal_view_on_next_play(NormalView *pNormalView, bool bMan
                                VP_FREE(szSubtitle);
                                if (!szNextURL) {
                                        bIsExit = TRUE;
-                               }
-                               else {
+                               } else {
                                        VP_FREE(pNormalView->szMediaURL);
                                        VP_STRDUP(pNormalView->szMediaURL, szNextURL);
                                        VP_FREE(szNextURL);
@@ -7671,8 +7541,7 @@ static void _vp_play_normal_view_on_next_play(NormalView *pNormalView, bool bMan
                                }
                        }
                }
-       }
-       else {
+       } else {
                if (bManual) {
                        _vp_play_normal_view_set_played_time(pNormalView);
                        char *szNextURL = NULL;
@@ -7694,8 +7563,7 @@ static void _vp_play_normal_view_on_next_play(NormalView *pNormalView, bool bMan
                                }
                                _vp_play_normal_view_set_play_state(pNormalView);
                                _vp_play_normal_view_on_capture_mode(pNormalView);
-                       }
-                       else {
+                       } else {
                                _vp_play_normal_view_play_start(pNormalView, TRUE);
                        }
                        return;
@@ -7703,33 +7571,27 @@ static void _vp_play_normal_view_on_next_play(NormalView *pNormalView, bool bMan
 
                if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_NONE) {
                        bIsExit = TRUE;
-               }
-               else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_OFF) {
+               } else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_OFF) {
                        bIsExit = TRUE;
-               }
-               else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL_STOP) {
+               } else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL_STOP) {
                        char *szNextURL = NULL;
                        vp_media_contents_get_next_file_path(pNormalView->szMediaURL, &szNextURL, FALSE, pNormalView->pMediaItemList);
                        if (!szNextURL) {
                                bIsExit = TRUE;
-                       }
-                       else {
+                       } else {
                                VP_FREE(pNormalView->szMediaURL);
                                VP_STRDUP(pNormalView->szMediaURL, szNextURL);
                                VP_FREE(szNextURL);
                                _vp_play_normal_view_play_start(pNormalView, TRUE);
                        }
-               }
-               else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE) {
+               } else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE) {
                        _vp_play_normal_view_play_start(pNormalView, TRUE);
-               }
-               else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
+               } else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
                        char *szNextURL = NULL;
                        vp_media_contents_get_next_file_path(pNormalView->szMediaURL, &szNextURL, TRUE, pNormalView->pMediaItemList);
                        if (!szNextURL) {
                                bIsExit = TRUE;
-                       }
-                       else {
+                       } else {
                                VP_FREE(pNormalView->szMediaURL);
                                VP_STRDUP(pNormalView->szMediaURL, szNextURL);
                                VP_FREE(szNextURL);
@@ -7789,9 +7651,9 @@ static void _vp_play_normal_view_on_prev_play(NormalView *pNormalView, bool bMan
        }
 
        if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MESSAGE ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW ||
-               (pPlayView && (strstr(pPlayView->szMediaURL,"/.") != NULL))) {
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW ||
+               (pPlayView && (strstr(pPlayView->szMediaURL, "/.") != NULL))) {
                return;
        }
 
@@ -7804,12 +7666,10 @@ static void _vp_play_normal_view_on_prev_play(NormalView *pNormalView, bool bMan
                if (!pPlayView) {
                        _vp_play_normal_view_play_start(pNormalView, TRUE);
                        return;
-               }
-               else if (pPlayView->pMultiPathList== NULL) {
+               } else if (pPlayView->pMultiPathList == NULL) {
                        _vp_play_normal_view_play_start(pNormalView, TRUE);
                        return;
-               }
-               else {
+               } else {
                        char *szSubtitle = NULL;
                        int nPosition = 0;
                        int nDuration = 0;
@@ -7826,8 +7686,7 @@ static void _vp_play_normal_view_on_prev_play(NormalView *pNormalView, bool bMan
                        _vp_play_normal_view_play_start(pNormalView, TRUE);
                }
 
-       }
-       else {
+       } else {
                vp_media_contents_get_prev_file_path(pNormalView->szMediaURL, &szPrevURL, TRUE, pNormalView->pMediaItemList);
                VideoSecureLogInfo("pNormalView->szMediaURL pre is %s", pNormalView->szMediaURL);
                if (szPrevURL) {
@@ -7841,7 +7700,7 @@ static void _vp_play_normal_view_on_prev_play(NormalView *pNormalView, bool bMan
                vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
                if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
                        VideoLogWarning("vp_mm_player_get_state is fail");
-                       }
+               }
                if (nState != VP_MM_PLAYER_STATE_PLAYING) {
                        vp_mm_player_play(pNormalView->pPlayerHandle);
                        pNormalView->bManualPause = FALSE;
@@ -7861,10 +7720,10 @@ static void _vp_play_normal_view_set_played_time(NormalView *pNormalView)
        //PlayView *pPlayView = pNormalView->pPlayView;
        int nPosition = 0;
        if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL &&
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
                if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
                        VideoLogError("vp_mm_player_get_position is fail");
                } else {
@@ -7887,12 +7746,10 @@ static void _vp_play_normal_view_set_played_time(NormalView *pNormalView)
                                vp_media_contents_set_played_position(pNormalView->szMediaURL, nPosition);
                        }
                }
-       }
-       else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
+       } else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
                if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
                        VideoLogError("vp_mm_player_get_position is fail");
-               }
-               else {
+               } else {
                        PlayView *pPlayView = pNormalView->pPlayView;
                        if (!pPlayView) {
                                VideoLogError("pPlayView is NULL");
@@ -7909,12 +7766,11 @@ static void _vp_play_normal_view_set_played_time(NormalView *pNormalView)
                }
 
        }
-       if (pNormalView->nLaunchingType== VIDEO_PLAY_TYPE_LIST ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
+       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
                bool bIsCloud = FALSE;
                vp_media_contents_get_cloud_attribute(pNormalView->szMediaURL, &bIsCloud);
-               if (!bIsCloud)
-               {
+               if (!bIsCloud) {
                        PlayView *pPlayView = pNormalView->pPlayView;
                        if (!pPlayView) {
                                VideoLogError("pPlayView is NULL");
@@ -7973,8 +7829,7 @@ static void _vp_play_normal_view_screen_move(NormalView *pNormalView, bool bFowa
 
        if (bFoward) {
                nSetPosition = nCurPosition  + 1000;
-       }
-       else {
+       } else {
                nSetPosition = nCurPosition  - 1000;
        }
 
@@ -8032,8 +7887,7 @@ static void _vp_play_normal_view_on_zoom_mode(NormalView *pNormalView)
                        Evas_Object *pZoomGuideLayout = vp_zoom_guide_get_object(pNormalView->pZoomGuide);
                        if (pZoomGuideLayout) {
                                elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_ZOOM_GUIDE, pZoomGuideLayout);
-                       }
-                       else {
+                       } else {
                                VideoLogError("pZoomGuideLayout is NULL");
                        }
 
@@ -8048,16 +7902,15 @@ static void _vp_play_normal_view_on_zoom_mode(NormalView *pNormalView)
                        if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
                                rtDst.w = nHeight;
                                rtDst.h = nWidth;
-                       }
-                       else {
+                       } else {
                                rtDst.w = nWidth;
                                rtDst.h = nHeight;
                        }
                        vp_mm_player_get_resolution(pNormalView->pPlayerHandle, &(rtSrc.w), &(rtSrc.h));
                        vp_play_util_calculator_position(rtSrc, rtDst, &rtResult, pNormalView->nDisplayMode);
-                       vp_zoom_guide_set_move_position(pNormalView->pZoomGuide, (double)pNormalView->nZoomPosX/rtDst.w, (double)pNormalView->nZoomPosY/rtDst.h);
-                       float fPosX = pNormalView->nZoomPosX/rtResult.w;
-                       float fPosY = pNormalView->nZoomPosY/rtResult.h;
+                       vp_zoom_guide_set_move_position(pNormalView->pZoomGuide, (double)pNormalView->nZoomPosX / rtDst.w, (double)pNormalView->nZoomPosY / rtDst.h);
+                       float fPosX = pNormalView->nZoomPosX / rtResult.w;
+                       float fPosY = pNormalView->nZoomPosY / rtResult.h;
                        if (fPosX > 1.0) {
                                fPosX = 1.0;
                        }
@@ -8079,15 +7932,14 @@ static void _vp_play_normal_view_on_zoom_mode(NormalView *pNormalView)
                if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
                        bLandscape = TRUE;
                }
-               if (bLandscape && fabs(pNormalView->fPrevZoomValue - pNormalView->fZoomValue)< 0.05) {
+               if (bLandscape && fabs(pNormalView->fPrevZoomValue - pNormalView->fZoomValue) < 0.05) {
 //                     VideoLogWarning("same ZoomValue. skip it");
                        return;
                }
 
                vp_zoom_guide_set_zoom_value(pNormalView->pZoomGuide, pNormalView->fZoomValue);
                pNormalView->fPrevZoomValue = pNormalView->fZoomValue;
-       }
-       else {
+       } else {
                pNormalView->fZoomValue = 1.0;
                pNormalView->bZoomEnable = FALSE;
                vp_zoom_guide_set_zoom_value(pNormalView->pZoomGuide, pNormalView->fZoomValue);
@@ -8140,12 +7992,12 @@ static void _vp_play_normal_view_on_capture_mode(NormalView *pNormalView)
 
        if (pNormalView->bCaptureMode) {
                pNormalView->pCaptureBtn = vp_button_create(
-                                               pNormalView->pNaviFrame, "playview/custom/flat_63_63/default",
-                                               NULL,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                               (void *)pNormalView);
+                                              pNormalView->pNaviFrame, "playview/custom/flat_63_63/default",
+                                              NULL,
+                                              (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
+                                              (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                              (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                              (void *)pNormalView);
                Evas_Object *pIcon = NULL;
                pIcon = vp_button_create_icon(pNormalView->pCaptureBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_CAPTURE);
                elm_object_part_content_set(pNormalView->pCaptureBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
@@ -8165,22 +8017,22 @@ static void _vp_play_normal_view_on_capture_mode(NormalView *pNormalView)
                        VideoLogWarning("vp_mm_player_get_state is fail");
                }
                if (nState == VP_MM_PLAYER_STATE_PAUSED ||
-                       (nState != VP_MM_PLAYER_STATE_PLAYING && pNormalView->bManualPause)) {
+                       (nState != VP_MM_PLAYER_STATE_PLAYING && pNormalView->bManualPause)) {
                        pNormalView->pCaptureRewBtn = vp_button_create(
-                                                       pNormalView->pNaviFrame, "playview/custom/flat_63_63/default",
-                                                       NULL,
-                                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                                       (void *)pNormalView);
+                                                         pNormalView->pNaviFrame, "playview/custom/flat_63_63/default",
+                                                         NULL,
+                                                         (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
+                                                         (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                                         (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                                         (void *)pNormalView);
 
                        pNormalView->pCaptureFFBtn = vp_button_create(
-                                                       pNormalView->pNaviFrame, "playview/custom/flat_63_63/default",
-                                                       NULL,
-                                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                                       (void *)pNormalView);
+                                                        pNormalView->pNaviFrame, "playview/custom/flat_63_63/default",
+                                                        NULL,
+                                                        (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
+                                                        (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                                        (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                                        (void *)pNormalView);
 
                        pIcon = vp_button_create_icon(pNormalView->pCaptureRewBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_CAPTURE_REW);
                        elm_object_part_content_set(pNormalView->pCaptureRewBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
@@ -8231,11 +8083,11 @@ static void _vp_play_normal_view_on_share_popup(NormalView *pNormalView)
                pNormalView->pPopup = NULL;
 
                pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
-                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                               VP_PLAY_STRING_COM_ERROR,
-                                               VP_PLAY_STRING_DRM_UNABLE_TO_SHARE_DRM_FILE,
-                                               3.0, __vp_normal_popup_time_out_cb,
-                                               NULL, NULL, pNormalView);
+                                                     POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
+                                                     VP_PLAY_STRING_COM_ERROR,
+                                                     VP_PLAY_STRING_DRM_UNABLE_TO_SHARE_DRM_FILE,
+                                                     3.0, __vp_normal_popup_time_out_cb,
+                                                     NULL, NULL, pNormalView);
 
                evas_object_show(pNormalView->pPopup);
                pNormalView->bIsPopupShow = TRUE;
@@ -8298,9 +8150,9 @@ static void _vp_play_normal_view_on_sound_alive_popup(NormalView *pNormalView)
        }
 
        pNormalView->pSAHandle = vp_sound_alive_create(pPlayView->pWin,
-                                                       pNormalView->szMediaURL,
-                                                       __vp_normal_sound_alive_popup_close_cb,
-                                                       pNormalView->nSoundAlive);
+                                pNormalView->szMediaURL,
+                                __vp_normal_sound_alive_popup_close_cb,
+                                pNormalView->nSoundAlive);
        if (!pNormalView->pSAHandle) {
                VideoLogError("vp_sound_alive_create fail");
                return;
@@ -8350,7 +8202,7 @@ static void _vp_play_normal_view_on_sound_path_popup(NormalView *pNormalView)
        }
 
        pNormalView->pSoundPathHandle = vp_sound_path_create(pPlayView->pWin,
-                                                       __vp_normal_sound_path_popup_close_cb);
+                                       __vp_normal_sound_path_popup_close_cb);
        if (!pNormalView->pSoundPathHandle) {
                VideoLogError("vp_sound_path_create fail");
                return;
@@ -8398,8 +8250,8 @@ static void _vp_play_normal_view_on_audio_track_popup(NormalView *pNormalView)
                return;
        }
        pNormalView->pAudioTrackHandle = vp_audio_track_create(pPlayView->pWin,
-                                                       __vp_normal_audio_track_popup_close_cb,
-                                                       pNormalView->nDefaultAudioTrackIndex);
+                                        __vp_normal_audio_track_popup_close_cb,
+                                        pNormalView->nDefaultAudioTrackIndex);
        if (!pNormalView->pAudioTrackHandle) {
                VideoLogError("vp_audio_track_create fail");
                return;
@@ -8413,25 +8265,22 @@ static void _vp_play_normal_view_on_audio_track_popup(NormalView *pNormalView)
        if (vp_mm_player_get_audio_track_count(pNormalView->pPlayerHandle, &nCount)) {
                if (nCount > 1) {
                        int nIdx = 0;
-                       for (nIdx = 0; nIdx < nCount; nIdx++)
-                       {       char *szCode = NULL;
+                       for (nIdx = 0; nIdx < nCount; nIdx++) {
+                               char *szCode = NULL;
 
                                if (vp_mm_player_get_audio_track_language_code(pNormalView->pPlayerHandle, nIdx, &szCode)) {
                                        vp_audio_track_add_Item(pNormalView->pAudioTrackHandle, szCode, nIdx);
-                               }
-                               else {
+                               } else {
                                        vp_audio_track_add_Item(pNormalView->pAudioTrackHandle, VP_PLAY_STRING_COM_UNKNOWN, nIdx);
                                }
                                VP_FREE(szCode);
                        }
-               }
-               else {
+               } else {
                        char *szTrack = g_strdup_printf("%s %d", VP_PLAY_STRING_AUDIO_TRACK, 0);
                        vp_audio_track_add_Item(pNormalView->pAudioTrackHandle, szTrack, 0);
                        VP_FREE(szTrack);
                }
-       }
-       else {
+       } else {
                char *szTrack = g_strdup_printf("%s %d", VP_PLAY_STRING_AUDIO_TRACK, 0);
                vp_audio_track_add_Item(pNormalView->pAudioTrackHandle, szTrack, 0);
                VP_FREE(szTrack);
@@ -8477,7 +8326,7 @@ static void _vp_play_normal_view_on_subtitle_popup(NormalView *pNormalView)
        if (vp_mm_player_get_subtitle_track_count(pNormalView->pPlayerHandle, &nCount)) {
                if (nCount > 0) {
                        char *szCode = NULL;
-                       #ifdef _SUBTITLE_MULTI_LANGUAGE
+#ifdef _SUBTITLE_MULTI_LANGUAGE
                        if (pNormalView->pSelectedSubtitleLanguage && nCount == pNormalView->nSubtitleLanguageCount) {
                                int index = 0;
                                VP_FREE(pSubtitleInfo->szLanguage);
@@ -8498,16 +8347,14 @@ static void _vp_play_normal_view_on_subtitle_popup(NormalView *pNormalView)
                                                VP_FREE(szCode);
                                        }
                                }
-                       }
-                       else
-                       #endif
+                       } else
+#endif
                        {
                                vp_mm_player_get_subtitle_track_language_code(pNormalView->pPlayerHandle, pNormalView->nDefaultSubtitleTrackIndex, &szCode);
                                vp_subtitle_track_get_name(szCode, &(pSubtitleInfo->szLanguage));
                                VP_FREE(szCode);
                        }
-               }
-               else {
+               } else {
                        pSubtitleInfo->szLanguage = g_strdup_printf("%s", VP_PLAY_STRING_COM_UNKNOWN);
                }
        }
@@ -8547,8 +8394,7 @@ static void _vp_play_normal_view_on_subtitle_popup(NormalView *pNormalView)
 
        if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB) {
                pSubtitleInfo->bSupportSelect = FALSE;
-       }
-       else {
+       } else {
                pSubtitleInfo->bSupportSelect = TRUE;
        }
        vp_play_subtitle_get_text(pNormalView->pSubtitle, &pSubtitleInfo->szText);
@@ -8559,7 +8405,7 @@ static void _vp_play_normal_view_on_subtitle_popup(NormalView *pNormalView)
                vp_subtitle_update(pNormalView->pSubtitlePopup, pSubtitleInfo);
        } else {
                pNormalView->pSubtitlePopup = vp_subtitle_create(pPlayView->pWin, pSubtitleInfo,
-                                                               __vp_normal_subtitle_popup_close_cb);
+                                             __vp_normal_subtitle_popup_close_cb);
 
                if (!pNormalView->pSubtitlePopup) {
                        VideoLogError("vp_subtitle_create fail");
@@ -8609,9 +8455,9 @@ static void _vp_play_normal_view_on_subtitle_sync_popup(NormalView *pNormalView)
        }
 
        pNormalView->pSubtitleSyncPopup = vp_subtitle_sync_popup_create(pPlayView->pWin,
-                                                               pNormalView->fSubtitleSyncValue,
-                                                               __vp_normal_subtitle_sync_popup_update_cb,
-                                                               __vp_normal_subtitle_sync_popup_done_cb);
+                                         pNormalView->fSubtitleSyncValue,
+                                         __vp_normal_subtitle_sync_popup_update_cb,
+                                         __vp_normal_subtitle_sync_popup_done_cb);
 
        if (!pNormalView->pSubtitleSyncPopup) {
                VideoLogError("vp_subtitle_sync_popup_create fail");
@@ -8775,11 +8621,11 @@ static void _vp_play_normal_view_on_subtitle_language_popup(NormalView *pNormalV
        }
 #ifdef _SUBTITLE_MULTI_LANGUAGE
        pNormalView->pSubtitleTrackHandle = vp_subtitle_track_create(pPlayView->pWin,
-                                                       __vp_normal_subtitle_track_popup_close_cb);
+                                           __vp_normal_subtitle_track_popup_close_cb);
 #else
        pNormalView->pSubtitleTrackHandle = vp_subtitle_track_create(pPlayView->pWin,
-                                                       __vp_normal_subtitle_track_popup_close_cb,
-                                                       pNormalView->nDefaultSubtitleTrackIndex);
+                                           __vp_normal_subtitle_track_popup_close_cb,
+                                           pNormalView->nDefaultSubtitleTrackIndex);
 #endif
        if (!pNormalView->pSubtitleTrackHandle) {
                VideoLogError("vp_subtitle_track_create fail");
@@ -8794,44 +8640,43 @@ static void _vp_play_normal_view_on_subtitle_language_popup(NormalView *pNormalV
        if (vp_mm_player_get_subtitle_track_count(pNormalView->pPlayerHandle, &nCount)) {
                VideoLogInfo("== TRACK : %d ==", nCount);
                if (nCount > 0) {
-                       #ifdef _SUBTITLE_MULTI_LANGUAGE
+#ifdef _SUBTITLE_MULTI_LANGUAGE
                        pNormalView->nSubtitleLanguageCount = nCount;
                        _vp_play_normal_view_selected_subtitle_language(pNormalView);
-                       #endif
+#endif
                        int nIdx = 0;
-                       for (nIdx = 0; nIdx < nCount; nIdx++)
-                       {       char *szCode = NULL;
+                       for (nIdx = 0; nIdx < nCount; nIdx++) {
+                               char *szCode = NULL;
                                if (vp_mm_player_get_subtitle_track_language_code(pNormalView->pPlayerHandle, nIdx, &szCode)) {
                                        VideoLogWarning("== language : %s ==", szCode);
-                                       #ifdef _SUBTITLE_MULTI_LANGUAGE
+#ifdef _SUBTITLE_MULTI_LANGUAGE
                                        vp_subtitle_track_add_Item(pNormalView->pSubtitleTrackHandle, szCode, nIdx, pNormalView->pSelectedSubtitleLanguage[nIdx]);
-                                       #else
+#else
                                        vp_subtitle_track_add_Item(pNormalView->pSubtitleTrackHandle, szCode, nIdx);
-                                       #endif
+#endif
                                }
                                VP_FREE(szCode);
                        }
-                       #ifdef _SUBTITLE_MULTI_LANGUAGE
+#ifdef _SUBTITLE_MULTI_LANGUAGE
                        vp_subtitle_track_set_add_language_cb(pNormalView->pSubtitleTrackHandle, _vp_play_normal_view_subtitle_add_language_cb);
                        vp_subtitle_track_set_remove_language_cb(pNormalView->pSubtitleTrackHandle, _vp_play_normal_view_subtitle_remove_language_cb);
-                       #endif
-               }
-               else {
+#endif
+               } else {
                        char *szTrack = g_strdup_printf("%s %d", VP_PLAY_STRING_COM_DEFAULT, 0);
-                       #ifdef _SUBTITLE_MULTI_LANGUAGE
+#ifdef _SUBTITLE_MULTI_LANGUAGE
                        vp_subtitle_track_add_Item(pNormalView->pSubtitleTrackHandle, szTrack, 0, true);
-                       #else
+#else
                        vp_subtitle_track_add_Item(pNormalView->pSubtitleTrackHandle, szTrack, 0);
-                       #endif
+#endif
                        VP_FREE(szTrack);
                }
        } else {
                char *szTrack = g_strdup_printf("%s %d", VP_PLAY_STRING_COM_DEFAULT, 0);
-               #ifdef _SUBTITLE_MULTI_LANGUAGE
+#ifdef _SUBTITLE_MULTI_LANGUAGE
                vp_subtitle_track_add_Item(pNormalView->pSubtitleTrackHandle, szTrack, 0, true);
-               #else
+#else
                vp_subtitle_track_add_Item(pNormalView->pSubtitleTrackHandle, szTrack, 0);
-               #endif
+#endif
                VP_FREE(szTrack);
        }
 
@@ -8862,11 +8707,9 @@ static void __vp_normal_subtitle_alignment_popup_done_cb(int nType, bool bPause,
                vp_subtitle_alignment_t nAlignment = VP_SUBTITLE_ALIGNMENT_CENTER;
                if (nType == VIDEO_SUBTITLE_ALIGNMENT_LEFT) {
                        nAlignment = VP_SUBTITLE_ALIGNMENT_LEFT;
-               }
-               else if (nType == VIDEO_SUBTITLE_ALIGNMENT_CENTER) {
+               } else if (nType == VIDEO_SUBTITLE_ALIGNMENT_CENTER) {
                        nAlignment = VP_SUBTITLE_ALIGNMENT_CENTER;
-               }
-               else if (nType == VIDEO_SUBTITLE_ALIGNMENT_RIGHT) {
+               } else if (nType == VIDEO_SUBTITLE_ALIGNMENT_RIGHT) {
                        nAlignment = VP_SUBTITLE_ALIGNMENT_RIGHT;
                }
 
@@ -8916,8 +8759,8 @@ static void _vp_play_normal_view_on_subtitle_alignment_popup(NormalView *pNormal
        vp_play_preference_get_subtitle_alignment_key(&nAlignment);
 
        pNormalView->pSubtitleAlignmentPopup = vp_subtitle_alignment_create(pPlayView->pWin,
-                                                               __vp_normal_subtitle_alignment_popup_done_cb,
-                                                               nAlignment);
+                                              __vp_normal_subtitle_alignment_popup_done_cb,
+                                              nAlignment);
 
        if (!pNormalView->pSubtitleAlignmentPopup) {
                VideoLogError("vp_subtitle_alignment_create fail");
@@ -9018,15 +8861,14 @@ static void _vp_play_normal_view_on_subtitle_select_popup(NormalView *pNormalVie
        VP_FREE(szDir);
        vp_mm_player_get_subtitle_url(pNormalView->pPlayerHandle, &szSubtitle);
        pNormalView->pSubtitleSelectPopup = vp_subtitle_select_create(pPlayView->pWin, __vp_normal_subtitle_select_popup_done_cb, __vp_normal_subtitle_select_button_popup_done_cb,
-                                                               pItemList, szSubtitle, !(pNormalView->bIsExistSubtitle));
+                                           pItemList, szSubtitle, !(pNormalView->bIsExistSubtitle));
        VP_FREE(szSubtitle);
        if (pItemList) {
 
                int nCount = 0;
                int i = 0;
                nCount = g_list_length(pItemList);
-               for (i = 0; i < nCount; i++)
-               {
+               for (i = 0; i < nCount; i++) {
                        char *szName = NULL;
                        szName = (char *)g_list_nth_data(pItemList, i);
                        VP_FREE(szName);
@@ -9072,8 +8914,8 @@ static void _vp_play_normal_view_on_subtitle_font_popup(NormalView *pNormalView)
        vp_play_preference_get_subtitle_font_name_key(&szFont);
 
        pNormalView->pSubtitleFontPopup = vp_subtitle_font_create(pPlayView->pWin,
-                                                               __vp_normal_subtitle_font_popup_done_cb,
-                                                               szFont);
+                                         __vp_normal_subtitle_font_popup_done_cb,
+                                         szFont);
        VP_FREE(szFont);
 
        if (!pNormalView->pSubtitleFontPopup) {
@@ -9113,8 +8955,8 @@ static void _vp_play_normal_view_on_subtitle_size_popup(NormalView *pNormalView)
        vp_play_preference_get_subtitle_size_key(&nSize);
 
        pNormalView->pSubtitleSizePopup = vp_subtitle_size_create(pPlayView->pWin,
-                                                               __vp_normal_subtitle_size_popup_done_cb,
-                                                               nSize);
+                                         __vp_normal_subtitle_size_popup_done_cb,
+                                         nSize);
 
        if (!pNormalView->pSubtitleSizePopup) {
                VideoLogError("vp_subtitle_size_create fail");
@@ -9191,8 +9033,8 @@ static void _vp_play_normal_view_on_subtitle_edge_popup(NormalView *pNormalView)
        vp_play_preference_get_subtitle_edge_key(&nEdge);
 
        pNormalView->pSubtitleEdgePopup = vp_subtitle_edge_create(pPlayView->pWin,
-                                                               __vp_normal_subtitle_edge_popup_done_cb,
-                                                               nEdge);
+                                         __vp_normal_subtitle_edge_popup_done_cb,
+                                         nEdge);
 
        if (!pNormalView->pSubtitleEdgePopup) {
                VideoLogError("vp_subtitle_size_create fail");
@@ -9230,19 +9072,17 @@ static void _vp_play_normal_view_on_subtitle_font_color_popup(NormalView *pNorma
 
 #ifndef SUBTITLE_K_FEATURE
        pNormalView->pSubtitleFontColorPopup = vp_subtitle_color_create(pPlayView->pWin,
-                                                               __vp_normal_subtitle_font_color_popup_done_cb,
-                                                               nColor);
+                                              __vp_normal_subtitle_font_color_popup_done_cb,
+                                              nColor);
 #else
        char *szColorHex = NULL;
        vp_play_preference_get_subtitle_font_color_hex_key(&szColorHex);
        if (!szColorHex) {
                VideoLogError("szColorHex is NULL");
-       }
-       else
-       {
-       pNormalView->pSubtitleFontColorPopup = vp_subtitle_color_hex_create(pPlayView->pWin,
-                                                                                                                                       __vp_normal_subtitle_font_color_popup_done_hex_cb,
-                                                                                                                                       szColorHex);
+       } else {
+               pNormalView->pSubtitleFontColorPopup = vp_subtitle_color_hex_create(pPlayView->pWin,
+                                                      __vp_normal_subtitle_font_color_popup_done_hex_cb,
+                                                      szColorHex);
        }
        VP_FREE(szColorHex);
 #endif
@@ -9285,21 +9125,19 @@ static void _vp_play_normal_view_on_subtitle_bg_color_popup(NormalView *pNormalV
        vp_play_preference_get_subtitle_bg_color_key(&nColor);
 
        pNormalView->pSubtitleBGColorPopup = vp_subtitle_bg_color_create(pPlayView->pWin,
-                                                               __vp_normal_subtitle_bg_color_popup_done_cb,
-                                                               nColor);
+                                            __vp_normal_subtitle_bg_color_popup_done_cb,
+                                            nColor);
 #else
        char *szColorHex = NULL;
        vp_play_preference_get_subtitle_bg_color_hex_key(&szColorHex);
        if (!szColorHex) {
                VideoLogError("szColorHex is NULL");
+       } else { //prevent issue fix
+               pNormalView->pSubtitleBGColorPopup = vp_subtitle_color_hex_create(pPlayView->pWin,
+                                                    __vp_normal_subtitle_bg_color_popup_done_hex_cb,
+                                                    szColorHex);
+               VP_FREE(szColorHex);
        }
-       else  //prevent issue fix
-       {
-           pNormalView->pSubtitleBGColorPopup = vp_subtitle_color_hex_create(pPlayView->pWin,
-                                                                                                                                       __vp_normal_subtitle_bg_color_popup_done_hex_cb,
-                                                                                                                                       szColorHex);
-           VP_FREE(szColorHex);
-       }
 #endif
 
        if (!pNormalView->pSubtitleBGColorPopup) {
@@ -9338,12 +9176,10 @@ static void _vp_play_normal_view_on_subtitle_caption_win_color_popup(NormalView
        vp_play_preference_get_subtitle_caption_win_color_hex_key(&szColorHex);
        if (!szColorHex) {
                VideoLogError("szColorHex is NULL");
-       }
-       else
-       {
-       pNormalView->pSubtitleCaptionWinColorPopup = vp_subtitle_color_hex_create(pPlayView->pWin,
-                                                                                                                                       __vp_normal_subtitle_caption_win_color_popup_done_hex_cb,
-                                                                                                                                       szColorHex);
+       } else {
+               pNormalView->pSubtitleCaptionWinColorPopup = vp_subtitle_color_hex_create(pPlayView->pWin,
+                       __vp_normal_subtitle_caption_win_color_popup_done_hex_cb,
+                       szColorHex);
        }
        VP_FREE(szColorHex);
 
@@ -9384,8 +9220,8 @@ static void _vp_play_normal_view_on_capture_popup(NormalView *pNormalView)
        vp_play_preference_get_capture_on_key(&pNormalView->bCaptureMode);
 
        pNormalView->pCapturePopup = vp_capture_popup_create(pPlayView->pWin,
-                                                       pNormalView->bCaptureMode,
-                                                       __vp_normal_capture_popup_close_cb);
+                                    pNormalView->bCaptureMode,
+                                    __vp_normal_capture_popup_close_cb);
        if (!pNormalView->pCapturePopup) {
                VideoLogError("vp_capture_popup_create fail");
                return;
@@ -9427,9 +9263,9 @@ static void _vp_play_normal_view_on_play_speed_popup(NormalView *pNormalView)
        }
 
        pNormalView->pPlaySpeedPopup = vp_play_speed_popup_create(pPlayView->pWin,
-                                                               pNormalView->fPlaySpeed,
-                                                               __vp_normal_play_speed_popup_update_cb,
-                                                               __vp_normal_play_speed_popup_done_cb);
+                                      pNormalView->fPlaySpeed,
+                                      __vp_normal_play_speed_popup_update_cb,
+                                      __vp_normal_play_speed_popup_done_cb);
 
        if (!pNormalView->pPlaySpeedPopup) {
                VideoLogError("vp_play_speed_popup_create fail");
@@ -9508,8 +9344,7 @@ static void _vp_play_normal_view_on_setting_popup(NormalView *pNormalView)
        pSettingInfo->bExternalMode = pNormalView->bVideoOnlyMode;
        if (pNormalView->bIsExistSubtitle == FALSE) {
                pSettingInfo->bSelectSubtitle = vp_play_util_is_exist_subtitle_from_path(szDir);
-       }
-       else {
+       } else {
                pSettingInfo->bSelectSubtitle = TRUE;
        }
 
@@ -9518,7 +9353,7 @@ static void _vp_play_normal_view_on_setting_popup(NormalView *pNormalView)
        pSettingInfo->bStreaming = FALSE;
 
        if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
                pSettingInfo->bStreaming = TRUE;
        }
 #ifdef ENABLE_DRM_FEATURE
@@ -9530,16 +9365,13 @@ static void _vp_play_normal_view_on_setting_popup(NormalView *pNormalView)
                if (nCount > 1) {
                        if (vp_mm_player_get_audio_track_language_code(pNormalView->pPlayerHandle, pNormalView->nDefaultAudioTrackIndex, &szCode)) {
                                vp_audio_track_get_name(szCode, &(pSettingInfo->szAudioTrack));
+                       } else {
+                               pSettingInfo->szAudioTrack = g_strdup_printf("%s", VP_PLAY_STRING_COM_UNKNOWN);
                        }
-                       else {
-                               pSettingInfo->szAudioTrack = g_strdup_printf("%s",VP_PLAY_STRING_COM_UNKNOWN);
-                       }
-               }
-               else {
+               } else {
                        pSettingInfo->szAudioTrack = g_strdup_printf("%s %d", VP_PLAY_STRING_AUDIO_TRACK, 0);
                }
-       }
-       else {
+       } else {
                pSettingInfo->szAudioTrack = g_strdup_printf("%s %d", VP_PLAY_STRING_AUDIO_TRACK, 0);
        }
        VP_FREE(szCode);
@@ -9547,7 +9379,7 @@ static void _vp_play_normal_view_on_setting_popup(NormalView *pNormalView)
        vp_play_preference_get_capture_on_key(&pSettingInfo->bCapture);
 
        pNormalView->pSettingHandle = vp_setting_create(pPlayView->pWin, pSettingInfo,
-                                                       __vp_normal_setting_popup_close_cb);
+                                     __vp_normal_setting_popup_close_cb);
        if (!pNormalView->pSettingHandle) {
                VideoLogError("vp_setting_create fail");
 
@@ -9750,8 +9582,7 @@ static void _vp_play_normal_view_on_volume_popup(NormalView *pNormalView, bool b
                if (!vp_play_volume_unrealize(pNormalView->pVolumeHandle)) {
                        VideoLogWarning("vp_play_volume_unrealize is fail");
                }
-       }
-       else {
+       } else {
                if (!vp_play_volume_update_value(pNormalView->pVolumeHandle)) {
                        VideoLogWarning("vp_play_volume_update_value is fail");
                }
@@ -9782,8 +9613,7 @@ static void _vp_play_normal_view_on_bookmark_mode(NormalView *pNormalView, bool
                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_BOOKMARK_ON, "*");
 #endif
                elm_object_part_content_set(pNormalView->pControlLayout, VP_PLAY_SWALLOW_NORMAL_BOOKMARK, pNormalView->pBookmarkObj);
-       }
-       else {
+       } else {
                pNormalView->bCaptureComplete = TRUE;
 #ifndef SUBTITLE_K_FEATURE
                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_BOOKMARK_OFF, "*");
@@ -9814,7 +9644,7 @@ static void _vp_play_normal_view_download_sdp(NormalView *pNormalView, char *szS
 
        pFunc.stateChangedCb = __vp_normal_sdp_download_state_change_cb;
 
-       VideoSecureLogDebug(" ############### %s ##########################",szSdpPath);
+       VideoSecureLogDebug(" ############### %s ##########################", szSdpPath);
        pNormalView->pDownloadHandle = VppDownloadCreateItem(szSdpPath, VP_PLAY_SDP_TEMP_DIR, NULL, VPP_DOWNLOAD_ITEM_TYPE_VIDEO_FILE, pFunc, (void *)pNormalView);
 
        if (!pNormalView->pDownloadHandle) {
@@ -9989,8 +9819,7 @@ static void _vp_play_normal_view_show_layout(NormalView *pNormalView)
                elm_object_signal_emit(pNormalView->pControlLayout, VP_NORMAL_SIGNAL_CONTROL_LANDSCAPE_MODE, "*");
                elm_object_signal_emit(pNormalView->pFunctionLayout, VP_NORMAL_SIGNAL_FUNCTION_LANDSCAPE_MODE, "*");
                vp_play_progressbar_set_landscape_mode(pNormalView->pProgressbar, TRUE);
-       }
-       else {
+       } else {
                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_PORTRAIT_SHOW, "*");
                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_NO_EFFECT_PORTRAIT_SHOW, "*");
                elm_object_signal_emit(pNormalView->pControlLayout, VP_NORMAL_SIGNAL_CONTROL_PORTRAIT_MODE, "*");
@@ -10084,8 +9913,7 @@ static void _vp_play_normal_view_hide_layout(NormalView *pNormalView, bool bNoEf
        if (bNoEffect) {
                elm_object_item_signal_emit(pNormalView->pNaviItem, VP_NORMAL_SIGNAL_NAVIFRAME_TITLE_NO_EFFECT_HIDE, "elm");
                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_NO_EFFECT_HIDE, "*");
-       }
-       else {
+       } else {
                elm_object_item_signal_emit(pNormalView->pNaviItem, VP_NORMAL_SIGNAL_NAVIFRAME_TITLE_HIDE, "elm");
                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_HIDE, "*");
        }
@@ -10130,8 +9958,8 @@ static void _vp_play_normal_view_create_progress_timer(NormalView *pNormalView)
        VP_EVAS_TIMER_DEL(pNormalView->pProgressTimer);
 
        pNormalView->pProgressTimer =
-               ecore_timer_add(VP_NORMAL_PROGRESS_TIMER_INTERVAL,
-               __vp_normal_progressbar_timer_cb, (void *)pNormalView);
+           ecore_timer_add(VP_NORMAL_PROGRESS_TIMER_INTERVAL,
+                           __vp_normal_progressbar_timer_cb, (void *)pNormalView);
 }
 
 static void _vp_play_normal_view_create_layout_hide_timer(NormalView *pNormalView)
@@ -10144,7 +9972,7 @@ static void _vp_play_normal_view_create_layout_hide_timer(NormalView *pNormalVie
        VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
        VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
        pNormalView->pHideTimer = ecore_timer_add(VP_NORMAL_HIDE_LAYOUT_TIMER_INTERVAL,
-                               __vp_normal_hide_layout_timer_cb, (void *)pNormalView);
+                                 __vp_normal_hide_layout_timer_cb, (void *)pNormalView);
 
 }
 
@@ -10175,8 +10003,7 @@ static void _vp_play_normal_view_show_volume(NormalView *pNormalView)
 
        if (!bLockState) {
                if (pNormalView->pMainLayout) {
-                       if ((pNormalView->fPlaySpeed - 0.05) > 1.000 || (pNormalView->fPlaySpeed + 0.05) < 1.000)
-                       {
+                       if ((pNormalView->fPlaySpeed - 0.05) > 1.000 || (pNormalView->fPlaySpeed + 0.05) < 1.000) {
                                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_PLAYING_SPEED_SHOW, "*");
                                elm_object_signal_callback_add(pNormalView->pMainLayout, "elm,action,click", "", _vp_play_normal_view_on_play_speed_popup_cb, pNormalView);
                                _vp_play_normal_view_create_layout_hide_timer(pNormalView);
@@ -10186,14 +10013,14 @@ static void _vp_play_normal_view_show_volume(NormalView *pNormalView)
                        char szTxt[5] = {0,};
                        snprintf(szTxt, 5, "%1.1fX", (float)pNormalView->fPlaySpeed);
                        elm_object_part_text_set(pNormalView->pMainLayout, VP_PLAY_PART_NORMAL_PLAYING_SPEED_TXT, szTxt);
-                       }
-                       bool bLandscape = vp_play_util_get_landscape_check(pNormalView->nRotate);
-                       if (bLandscape) {
+               }
+               bool bLandscape = vp_play_util_get_landscape_check(pNormalView->nRotate);
+               if (bLandscape) {
                        elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_VOLUME_LANDSCAPE_SHOW, "*");
-                       }
-                       else
+               } else {
                        elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_VOLUME_PORTRAIT_SHOW, "*");
                }
+       }
 }
 
 static void _vp_play_normal_view_set_rotate_lock_state(NormalView *pNormalView)
@@ -10239,12 +10066,12 @@ static void _vp_play_normal_view_set_rotate_lock_state(NormalView *pNormalView)
 
        if (!bLockState) {
                pNormalView->pRotateBtn = vp_button_create(
-                                       pParent, "playview/custom/flat_46_46/default",
-                                       VP_PLAY_STRING_COM_ROTATE,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
+                                             pParent, "playview/custom/flat_46_46/default",
+                                             VP_PLAY_STRING_COM_ROTATE,
+                                             (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
+                                             (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                             (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                             (void *)pNormalView);
 
                Evas_Object *pIcon = NULL;
                pIcon = vp_button_create_icon(pNormalView->pRotateBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_ROTATE);
@@ -10298,8 +10125,7 @@ static void _vp_play_normal_view_set_volume_lock_state(NormalView *pNormalView)
 
 
        Evas_Object *pParent = NULL;
-       if (pNormalView->pSoundPathBtn == NULL)
-       {
+       if (pNormalView->pSoundPathBtn == NULL) {
                pParent = pNormalView->pMainLayout;
 
        } else if (pNormalView->pFunctionLayout) {
@@ -10313,14 +10139,14 @@ static void _vp_play_normal_view_set_volume_lock_state(NormalView *pNormalView)
 
        if (!bLockState) {
                pNormalView->pVolumeBtn = vp_button_create(
-                                       pParent, "playview/custom/flat_46_46/default",  VP_PLAY_STRING_COM_VOLUME,
-                                       (Evas_Smart_Cb)__vp_normal_function_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
+                                             pParent, "playview/custom/flat_46_46/default",  VP_PLAY_STRING_COM_VOLUME,
+                                             (Evas_Smart_Cb)__vp_normal_function_btn_clicked_cb,
+                                             (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                             (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                             (void *)pNormalView);
                if (!pNormalView->pVolumeBtn) {
-               VideoLogError("elm_button_add is fail");
-               return;
+                       VideoLogError("elm_button_add is fail");
+                       return;
                }
                Evas_Object *pIcon = NULL;
                int nVolume = 0;
@@ -10349,8 +10175,8 @@ static void _vp_play_normal_view_set_volume_lock_state(NormalView *pNormalView)
                }
 
                if (pNormalView->pMainLayout) {
-               elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_VOLUME, pNormalView->pVolumeBtn);
-               }       
+                       elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_VOLUME, pNormalView->pVolumeBtn);
+               }
        }
 }
 
@@ -10406,8 +10232,7 @@ static void _vp_play_normal_view_set_sound_path_state(NormalView *pNormalView)
                video_sound_device_type_t nType = VP_SOUND_DEVICE_NONE;
                vp_sound_get_active_device(&nType);
                char *szIconPath = VP_PLAY_NORMAL_RES_SPEAKER;
-               switch (nType)
-               {
+               switch (nType) {
                case VP_SOUND_DEVICE_SPEAKER:
                        szIconPath = VP_PLAY_NORMAL_RES_SPEAKER;
                        break;
@@ -10438,7 +10263,7 @@ static void _vp_play_normal_view_set_sound_path_state(NormalView *pNormalView)
                }
 
                pNormalView->pSoundPathBtn = vp_navirame_button_create(pNormalView->pNaviFrame, "playview/custom/navi_button/default", VP_PLAY_RESROUCE_EDJ_PATH,
-                       (const char *)szIconPath, (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb, (void *)pNormalView);
+                                            (const char *)szIconPath, (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb, (void *)pNormalView);
 
                elm_object_item_part_content_set(pNormalView->pNaviItem, "title_right_btn", pNormalView->pSoundPathBtn);
        }
@@ -10489,8 +10314,7 @@ static void _vp_play_normal_view_set_play_state(NormalView *pNormalView)
                }
                vp_play_util_set_lock_power_key();
                vp_play_progressbar_set_opacity(pNormalView->pProgressbar, FALSE);
-       }
-       else {
+       } else {
                VideoLogWarning("Play_Status[%d]", nState);
                evas_object_show(pNormalView->pResumeBtn);
                elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_PLAY, pNormalView->pResumeBtn);
@@ -10561,46 +10385,46 @@ static bool _vp_play_normal_view_create_gesture_layout(NormalView *pNormalView)
        elm_gesture_layer_hold_events_set(pNormalView->pGestureRect, EINA_FALSE);
 
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_TAPS,
-                               ELM_GESTURE_STATE_START, __vp_normal_gesture_n_tab_start_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_START, __vp_normal_gesture_n_tab_start_cb, (void *)pNormalView);
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_TAPS,
-                               ELM_GESTURE_STATE_END, __vp_normal_gesture_n_tab_end_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_END, __vp_normal_gesture_n_tab_end_cb, (void *)pNormalView);
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_TAPS,
-                               ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_n_tab_abort_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_n_tab_abort_cb, (void *)pNormalView);
 
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_MOMENTUM,
-                               ELM_GESTURE_STATE_START, __vp_normal_gesture_momentum_start_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_START, __vp_normal_gesture_momentum_start_cb, (void *)pNormalView);
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_MOMENTUM,
-                               ELM_GESTURE_STATE_END, __vp_normal_gesture_momentum_end_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_END, __vp_normal_gesture_momentum_end_cb, (void *)pNormalView);
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_MOMENTUM,
-                               ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_momentum_end_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_momentum_end_cb, (void *)pNormalView);
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_MOMENTUM,
-                               ELM_GESTURE_STATE_MOVE, __vp_normal_gesture_momentum_move_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_MOVE, __vp_normal_gesture_momentum_move_cb, (void *)pNormalView);
 
 #ifdef ENABLE_GESTURE_ZOOM_FEATURE
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_ZOOM,
-                               ELM_GESTURE_STATE_START, __vp_normal_gesture_zoom_start_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_START, __vp_normal_gesture_zoom_start_cb, (void *)pNormalView);
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_ZOOM,
-                               ELM_GESTURE_STATE_END, __vp_normal_gesture_zoom_end_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_END, __vp_normal_gesture_zoom_end_cb, (void *)pNormalView);
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_ZOOM,
-                               ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_zoom_abort_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_zoom_abort_cb, (void *)pNormalView);
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_ZOOM,
-                               ELM_GESTURE_STATE_MOVE, __vp_normal_gesture_zoom_move_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_MOVE, __vp_normal_gesture_zoom_move_cb, (void *)pNormalView);
 #endif
 
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_DOUBLE_TAPS,
-                               ELM_GESTURE_STATE_START, __vp_normal_gesture_double_click_start_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_START, __vp_normal_gesture_double_click_start_cb, (void *)pNormalView);
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_DOUBLE_TAPS,
-                               ELM_GESTURE_STATE_END, __vp_normal_gesture_double_click_end_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_END, __vp_normal_gesture_double_click_end_cb, (void *)pNormalView);
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_DOUBLE_TAPS,
-                               ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_double_click_abort_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_double_click_abort_cb, (void *)pNormalView);
 
 #ifdef FLICK_JUMP
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_FLICKS,
-                               ELM_GESTURE_STATE_START, __vp_normal_gesture_flick_start_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_START, __vp_normal_gesture_flick_start_cb, (void *)pNormalView);
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_FLICKS,
-                               ELM_GESTURE_STATE_END, __vp_normal_gesture_flick_end_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_END, __vp_normal_gesture_flick_end_cb, (void *)pNormalView);
        elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_FLICKS,
-                               ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_flick_abort_cb, (void *)pNormalView);
+                                ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_flick_abort_cb, (void *)pNormalView);
 #endif
 
        elm_gesture_layer_line_angular_tolerance_set(pNormalView->pGestureRect, 60);    // 60 degree ??
@@ -10691,8 +10515,8 @@ static Evas_Object *_vp_play_normal_view_create_function_layout(Evas_Object *pPa
 }
 
 static void _vp_normal_view_top_layout_del_cb(void *data, Evas *e,
-                                             Evas_Object *obj,
-                                             void *event_info)
+        Evas_Object *obj,
+        void *event_info)
 {
        if (!data) {
                VideoLogError("pNormalView is NULL");
@@ -10781,72 +10605,72 @@ static bool _vp_play_normal_view_create_main_control(NormalView *pNormalView)
 
        elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_CONTROL, pNormalView->pControlLayout);
        evas_object_event_callback_add(pNormalView->pControlLayout, EVAS_CALLBACK_DEL,
-                                      _vp_play_normal_view_control_layout_del_cb,
-                                      (void *)pNormalView);
+                                      _vp_play_normal_view_control_layout_del_cb,
+                                      (void *)pNormalView);
 
        pParent = pNormalView->pControlLayout;
 
        pNormalView->pResumeBtn = vp_button_create(
-                                       pParent, "playview/custom/circle_1/default", VP_PLAY_STRING_COM_PLAY,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
+                                     pParent, "playview/custom/circle_1/default", VP_PLAY_STRING_COM_PLAY,
+                                     (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
+                                     (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                     (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                     (void *)pNormalView);
        if (!pNormalView->pResumeBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
        }
 
        pNormalView->pPauseBtn = vp_button_create(
-                                       pParent, "playview/custom/circle_1_focus/default", VP_PLAY_STRING_COM_PAUSE,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
+                                    pParent, "playview/custom/circle_1_focus/default", VP_PLAY_STRING_COM_PAUSE,
+                                    (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
+                                    (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                    (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                    (void *)pNormalView);
        if (!pNormalView->pPauseBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
        }
 
        pNormalView->pPlayFocusBtn = vp_button_create(
-                                       pParent, "focus", NULL,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
+                                        pParent, "focus", NULL,
+                                        (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
+                                        (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                        (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                        (void *)pNormalView);
        if (!pNormalView->pPlayFocusBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
        }
 
        pNormalView->pPrevBtn = vp_button_create(
-                                       pParent, "playview/custom/circle_2/default", VP_PLAY_STRING_COM_PREVIOUS,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
+                                   pParent, "playview/custom/circle_2/default", VP_PLAY_STRING_COM_PREVIOUS,
+                                   (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
+                                   (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                   (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                   (void *)pNormalView);
        if (!pNormalView->pPrevBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
        }
 
        pNormalView->pNextBtn = vp_button_create(
-                                       pParent, "playview/custom/circle_3/default", VP_PLAY_STRING_COM_NEXT,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
+                                   pParent, "playview/custom/circle_3/default", VP_PLAY_STRING_COM_NEXT,
+                                   (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
+                                   (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                   (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                   (void *)pNormalView);
        if (!pNormalView->pNextBtn) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
        }
 
        pNormalView->pScreenSizeBtn = vp_button_create(
-                                       pParent, "playview/custom/flat_56_56/default", NULL,
-                                       (Evas_Smart_Cb)__vp_normal_function_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
+                                         pParent, "playview/custom/flat_56_56/default", NULL,
+                                         (Evas_Smart_Cb)__vp_normal_function_btn_clicked_cb,
+                                         (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                         (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                         (void *)pNormalView);
        evas_object_color_set(pNormalView->pScreenSizeBtn, 0, 166, 191, 255);
        if (!pNormalView->pScreenSizeBtn) {
                VideoLogError("elm_button_add is fail");
@@ -10854,11 +10678,11 @@ static bool _vp_play_normal_view_create_main_control(NormalView *pNormalView)
        }
 
        pNormalView->pPopupBtn = vp_button_create(
-                                       pParent, "playview/custom/flat_56_56/default", NULL,
-                                       NULL,
-                                       NULL,
-                                       NULL,
-                                       (void *)pNormalView);
+                                    pParent, "playview/custom/flat_56_56/default", NULL,
+                                    NULL,
+                                    NULL,
+                                    NULL,
+                                    (void *)pNormalView);
        evas_object_color_set(pNormalView->pPopupBtn, 0, 166, 191, 255);
        if (!pNormalView->pPopupBtn) {
                VideoLogError("elm_button_add is fail");
@@ -10866,14 +10690,14 @@ static bool _vp_play_normal_view_create_main_control(NormalView *pNormalView)
        }
 
        pNormalView->pLockBtn = vp_button_create(
-                                               pNormalView->pMainLayout, "playview/custom/flat_46_46/default", NULL,
-                                               (Evas_Smart_Cb)__vp_normal_function_btn_clicked_cb,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                               (void *)pNormalView);
+                                   pNormalView->pMainLayout, "playview/custom/flat_46_46/default", NULL,
+                                   (Evas_Smart_Cb)__vp_normal_function_btn_clicked_cb,
+                                   (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                   (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                   (void *)pNormalView);
        if (!pNormalView->pLockBtn) {
-                       VideoLogError("elm_button_add is fail");
-                       return FALSE;
+               VideoLogError("elm_button_add is fail");
+               return FALSE;
        }
 
        Evas_Object *pIcon = NULL;
@@ -10927,8 +10751,7 @@ static bool _vp_play_normal_view_create_main_control(NormalView *pNormalView)
 
                //pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_3_MODE_DIM);
                //elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-       }
-       else {
+       } else {
                pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_1_MODE);
                elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
@@ -10975,17 +10798,17 @@ static bool _vp_play_normal_view_create_main_control(NormalView *pNormalView)
        vp_play_util_focus_next_object_set(pNormalView->pNextBtn, pNormalView->pScreenSizeBtn, ELM_FOCUS_RIGHT);
 
 
-       if (    pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_STORE ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_GALLERY||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MYFILE) {
+       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_STORE ||
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_GALLERY ||
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER ||
+               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MYFILE) {
 
                pNormalView->pBookmarkHandle = vp_play_bookmark_create(pParent);
                pNormalView->pBookmarkObj = vp_play_bookmark_get_object(pNormalView->pBookmarkHandle);
                evas_object_event_callback_add(pNormalView->pBookmarkObj, EVAS_CALLBACK_DEL,
-                                               _vp_play_normal_view_bookmark_object_del_cb,
-                                               (void *)pNormalView);
+                                              _vp_play_normal_view_bookmark_object_del_cb,
+                                              (void *)pNormalView);
                vp_play_bookmark_set_user_param(pNormalView->pBookmarkHandle, (void *)pNormalView);
                vp_play_bookmark_set_capture_callback(pNormalView->pBookmarkHandle, __vp_normal_bookmark_capture_cb);
                vp_play_bookmark_set_item_select_callback(pNormalView->pBookmarkHandle, __vp_normal_bookmark_item_select_cb);
@@ -10997,8 +10820,8 @@ static bool _vp_play_normal_view_create_main_control(NormalView *pNormalView)
 }
 
 static void _vp_normal_view_function_layout_del_cb(void *data, Evas *e,
-                                             Evas_Object *obj,
-                                             void *event_info)
+        Evas_Object *obj,
+        void *event_info)
 {
        if (!data) {
                VideoLogError("pNormalView is NULL");
@@ -11060,23 +10883,23 @@ static bool _vp_play_normal_view_create_progressbar(NormalView *pNormalView)
        elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_PROGRESS, pNormalView->pProgressEvent);
 
        evas_object_event_callback_add(pNormalView->pProgressEvent, EVAS_CALLBACK_MOUSE_DOWN,
-                                      __vp_normal_progress_mouse_down_cb, (void *)pNormalView);
+                                      __vp_normal_progress_mouse_down_cb, (void *)pNormalView);
 
        evas_object_event_callback_add(pNormalView->pProgressEvent, EVAS_CALLBACK_MOUSE_UP,
-                                      __vp_normal_progress_mouse_up_cb, (void *)pNormalView);
+                                      __vp_normal_progress_mouse_up_cb, (void *)pNormalView);
 
        evas_object_event_callback_add(pNormalView->pProgressEvent, EVAS_CALLBACK_MOUSE_MOVE,
-                                      __vp_normal_progress_mouse_move_cb, (void *)pNormalView);
+                                      __vp_normal_progress_mouse_move_cb, (void *)pNormalView);
 
        evas_object_event_callback_add(pNormalView->pProgressEvent, EVAS_CALLBACK_DEL,
-                                         __vp_normal_progress_del_cb, (void *)pNormalView);
+                                      __vp_normal_progress_del_cb, (void *)pNormalView);
 
        Evas_Object *pProgressFocus = vp_play_progressbar_get_focus_object(pNormalView->pProgressbar);
 
        evas_object_event_callback_add(pProgressFocus, EVAS_CALLBACK_KEY_DOWN,
-                                         __vp_normal_focus_key_down_cb, (void *)pNormalView);
+                                      __vp_normal_focus_key_down_cb, (void *)pNormalView);
        evas_object_event_callback_add(pProgressFocus, EVAS_CALLBACK_KEY_UP,
-                                         __vp_normal_focus_key_up_cb, (void *)pNormalView);
+                                      __vp_normal_focus_key_up_cb, (void *)pNormalView);
 
 
        return TRUE;
@@ -11142,24 +10965,19 @@ static bool _vp_play_normal_view_create_subtitle(NormalView *pNormalView)
 
        if (nFontColorKey == VIDEO_SUBTITLE_COLOR_BLACK) {
                nFontColor = VP_SUBTITLE_COLOR_BLACK;
-       }
-       else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_BLUE) {
+       } else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_BLUE) {
                nFontColor = VP_SUBTITLE_COLOR_BLUE;
-       }
-       else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_GREEN) {
+       } else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_GREEN) {
                nFontColor = VP_SUBTITLE_COLOR_GREEN;
-       }
-       else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_WHITE) {
+       } else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_WHITE) {
                nFontColor = VP_SUBTITLE_COLOR_WHITE;
        }
 
        if (nBGColorKey == VIDEO_SUBTITLE_COLOR_BLACK) {
                nBGColor = VP_SUBTITLE_COLOR_BLACK;
-       }
-       else if (nBGColorKey == VIDEO_SUBTITLE_COLOR_WHITE) {
+       } else if (nBGColorKey == VIDEO_SUBTITLE_COLOR_WHITE) {
                nBGColor = VP_SUBTITLE_COLOR_WHITE;
-       }
-       else if (nBGColorKey == VIDEO_SUBTITLE_COLOR_NONE) {
+       } else if (nBGColorKey == VIDEO_SUBTITLE_COLOR_NONE) {
                nBGColor = VP_SUBTITLE_COLOR_NONE;
        }
        vp_play_subtitle_set_color(pNormalView->pSubtitle, nFontColor);
@@ -11246,8 +11064,8 @@ static Evas_Object *_vp_play_normal_view_create_layout(Evas_Object *pParent)
        }
 
        bRet = elm_layout_theme_set(pObj, VP_PLAY_CUSTOM_LAYOUT_KLASS,
-                                       VP_PLAY_CUSTOM_LAYOUT_GROUP,
-                                       VP_PLAY_CUSTOM_LAYOUT_STYLE);
+                                   VP_PLAY_CUSTOM_LAYOUT_GROUP,
+                                   VP_PLAY_CUSTOM_LAYOUT_STYLE);
        if (bRet != EINA_TRUE) {
                VideoLogError("elm_layout_theme_set fail");
        }
@@ -11288,8 +11106,8 @@ static Evas_Object *_vp_play_normal_view_create_naviframe(Evas_Object *pParent)
 #endif
 
 static void _vp_play_normal_view_del_cb(void *data, Evas *e,
-                                             Evas_Object *obj,
-                                             void *event_info)
+                                        Evas_Object *obj,
+                                        void *event_info)
 {
        if (!data) {
                VideoLogError("pNormalView is NULL");
@@ -11304,7 +11122,7 @@ static void _vp_play_normal_view_del_cb(void *data, Evas *e,
                //pNormalView->pNaviItem = NULL;
                pNormalView->pAllsharBtn = NULL;
                //if (pNormalView->pPlayView)
-                       //pNormalView->pPlayView->pNormalView = NULL;
+               //pNormalView->pPlayView->pNormalView = NULL;
        }
 }
 
@@ -11458,19 +11276,18 @@ static void _vp_play_normal_view_destroy_handle(NormalView *pNormalView)
        VP_EVAS_TIMER_DEL(pNormalView->pExitWaitTimer);
        VP_EVAS_TIMER_DEL(pNormalView->pMomentTimer);
 
-       if (pNormalView->pProgressEvent)
-       {
+       if (pNormalView->pProgressEvent) {
                evas_object_event_callback_del(pNormalView->pProgressEvent,
-                                              EVAS_CALLBACK_MOUSE_DOWN,
-                                              __vp_normal_progress_mouse_down_cb);
+                                              EVAS_CALLBACK_MOUSE_DOWN,
+                                              __vp_normal_progress_mouse_down_cb);
 
                evas_object_event_callback_del(pNormalView->pProgressEvent,
-                                              EVAS_CALLBACK_MOUSE_UP,
-                                              __vp_normal_progress_mouse_up_cb);
+                                              EVAS_CALLBACK_MOUSE_UP,
+                                              __vp_normal_progress_mouse_up_cb);
 
                evas_object_event_callback_del(pNormalView->pProgressEvent,
-                                              EVAS_CALLBACK_MOUSE_MOVE,
-                                              __vp_normal_progress_mouse_move_cb);
+                                              EVAS_CALLBACK_MOUSE_MOVE,
+                                              __vp_normal_progress_mouse_move_cb);
                pNormalView->pProgressEvent = NULL;
        }
 #ifdef K_FEATURE_MICROSEEK
@@ -11668,8 +11485,7 @@ static void _vp_play_normal_view_prepare_pipe_cb(void *data, void *pipeData, uns
        }
        if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB && nDuration == 0) {
                pNormalView->bHLSMode = TRUE;
-       }
-       else {
+       } else {
                pNormalView->bHLSMode = FALSE;
        }
 
@@ -11731,12 +11547,11 @@ static void _vp_play_normal_view_prepare_pipe_cb(void *data, void *pipeData, uns
        if (pNormalView->bManualPause || bXwincheck == FALSE) {
                vp_mm_player_set_visible(pNormalView->pPlayerHandle, TRUE);
                vp_mm_player_pause(pNormalView->pPlayerHandle);
-       }
-       else {
+       } else {
                vp_mm_player_play(pNormalView->pPlayerHandle);
        }
 
-       if (!vp_mm_player_set_subtitle_position(pNormalView->pPlayerHandle, pNormalView->fSubtitleSyncValue*1000)) {
+       if (!vp_mm_player_set_subtitle_position(pNormalView->pPlayerHandle, pNormalView->fSubtitleSyncValue * 1000)) {
                VideoLogError("vp_mm_player_set_subtitle_position is fail");
        }
 
@@ -11804,7 +11619,8 @@ normal_view_handle vp_play_normal_view_create(PlayView *pPlayView, video_play_la
        return (normal_view_handle)pNormalView;
 }
 
-void vp_play_normal_view_key_create(PlayView *pPlayView, normal_view_handle pViewHandle) {
+void vp_play_normal_view_key_create(PlayView *pPlayView, normal_view_handle pViewHandle)
+{
        if (!pViewHandle) {
                VideoLogError("pViewHandle is NULL");
                return;
@@ -11901,8 +11717,7 @@ bool vp_play_normal_view_realize(normal_view_handle pViewHandle)
                        char *szFolder = vp_play_util_get_folder_from_path(pNormalView->szMediaURL);
                        vp_media_contents_get_video_items_to_folder(nType, szFolder, &(pNormalView->pMediaItemList));
                        VP_FREE(szFolder);
-               }
-               else {
+               } else {
                        vp_media_contents_get_video_items(nType, &(pNormalView->pMediaItemList));
                }
        }
@@ -12063,8 +11878,7 @@ bool vp_play_normal_view_resume_or_pause(normal_view_handle pViewHandle)
                VideoLogWarning("vp_mm_player_get_state is fail");
        }
 
-       switch (nState)
-       {
+       switch (nState) {
        case VP_MM_PLAYER_STATE_NONE:
        case VP_MM_PLAYER_STATE_IDLE:
        case VP_MM_PLAYER_STATE_READY:
@@ -12146,10 +11960,11 @@ bool vp_play_normal_view_player_state_changed_get(normal_view_handle pViewHandle
                VideoLogWarning("vp_mm_player_get_state is fail");
        }
 
-       if (nState == pState)
+       if (nState == pState) {
                return FALSE;
-       else
+       } else {
                pState = nState;
+       }
 
        return TRUE;
 }
@@ -12162,7 +11977,7 @@ bool vp_play_normal_view_stop_player(normal_view_handle pViewHandle)
        }
 
        NormalView *pNormalView = (NormalView *)pViewHandle;
-       if(!(vp_mm_player_stop(pNormalView->pPlayerHandle))) {
+       if (!(vp_mm_player_stop(pNormalView->pPlayerHandle))) {
                VideoLogError("player_stop failed");
                return FALSE;
        }
@@ -12192,8 +12007,9 @@ bool vp_play_normal_view_set_video_only(normal_view_handle pViewHandle, bool bVi
                VideoLogWarning("vp_mm_player_get_state is fail");
        }
 
-       if (nState != VP_MM_PLAYER_STATE_NONE && nState != VP_MM_PLAYER_STATE_IDLE)
+       if (nState != VP_MM_PLAYER_STATE_NONE && nState != VP_MM_PLAYER_STATE_IDLE) {
                vp_play_subtitle_set_text(pNormalView->pSubtitle, "");
+       }
 
        if (bVideoOnly == TRUE) {
                if (pNormalView->pImageBufferObj) {
@@ -12229,16 +12045,16 @@ bool vp_play_normal_view_set_video_only(normal_view_handle pViewHandle, bool bVi
                VP_EVAS_DISABLE_SET(pNormalView->pScreenSizeBtn, EINA_FALSE);
                VP_EVAS_DISABLE_SET(pNormalView->pRepeatBtn, EINA_FALSE);
                if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL) {
-                               char *szMediaID = NULL;
-                               bool bReturn = FALSE;
-                               bReturn = vp_media_contents_get_video_id(pNormalView->szMediaURL, &szMediaID);
+                       char *szMediaID = NULL;
+                       bool bReturn = FALSE;
+                       bReturn = vp_media_contents_get_video_id(pNormalView->szMediaURL, &szMediaID);
 
-                               if (szMediaID && bReturn) {
-                                       VP_EVAS_DISABLE_SET(pNormalView->pTrimBtn, EINA_FALSE);
-                               } else {
-                                       VP_EVAS_DISABLE_SET(pNormalView->pTrimBtn, EINA_TRUE);
-                               }
-                               VP_FREE(szMediaID);
+                       if (szMediaID && bReturn) {
+                               VP_EVAS_DISABLE_SET(pNormalView->pTrimBtn, EINA_FALSE);
+                       } else {
+                               VP_EVAS_DISABLE_SET(pNormalView->pTrimBtn, EINA_TRUE);
+                       }
+                       VP_FREE(szMediaID);
                } else {
                        VP_EVAS_DISABLE_SET(pNormalView->pTrimBtn, EINA_FALSE);
                }
@@ -12246,9 +12062,9 @@ bool vp_play_normal_view_set_video_only(normal_view_handle pViewHandle, bool bVi
 
                if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
                        if (vp_play_util_check_streaming(pNormalView->szMediaURL) == TRUE) {
-                                       VP_EVAS_DISABLE_SET(pNormalView->pShareBtn, EINA_TRUE);
+                               VP_EVAS_DISABLE_SET(pNormalView->pShareBtn, EINA_TRUE);
                        } else {
-                                       VP_EVAS_DISABLE_SET(pNormalView->pShareBtn, EINA_FALSE);
+                               VP_EVAS_DISABLE_SET(pNormalView->pShareBtn, EINA_FALSE);
                        }
                } else {
                        VP_EVAS_DISABLE_SET(pNormalView->pShareBtn, EINA_FALSE);
@@ -12530,39 +12346,40 @@ bool vp_play_normal_view_set_rotate(normal_view_handle pViewHandle, video_play_r
 
        if (nRotate == VIDEO_PLAY_ROTATE_NONE) {
                vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_0);
-       }
-       else if (nRotate == VIDEO_PLAY_ROTATE_90) {
+       } else if (nRotate == VIDEO_PLAY_ROTATE_90) {
                vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_90);
-       }
-       else if (nRotate == VIDEO_PLAY_ROTATE_180) {
+       } else if (nRotate == VIDEO_PLAY_ROTATE_180) {
                vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_180);
-       }
-       else if (nRotate == VIDEO_PLAY_ROTATE_270) {
+       } else if (nRotate == VIDEO_PLAY_ROTATE_270) {
                vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_270);
        }
 
        int nAngle = elm_win_rotation_get(pPlayView->pWin);
        video_play_rotate_t nCurRot = VIDEO_PLAY_ROTATE_NONE;
 
-       switch (nAngle)
-       {
-       case 0:         nCurRot = VIDEO_PLAY_ROTATE_NONE;       break;
-       case 90:        nCurRot = VIDEO_PLAY_ROTATE_90;         break;
-       case 180:       nCurRot = VIDEO_PLAY_ROTATE_180;        break;
-       case 270:       nCurRot = VIDEO_PLAY_ROTATE_270;        break;
+       switch (nAngle) {
+       case 0:
+               nCurRot = VIDEO_PLAY_ROTATE_NONE;
+               break;
+       case 90:
+               nCurRot = VIDEO_PLAY_ROTATE_90;
+               break;
+       case 180:
+               nCurRot = VIDEO_PLAY_ROTATE_180;
+               break;
+       case 270:
+               nCurRot = VIDEO_PLAY_ROTATE_270;
+               break;
        }
 
        if (nRotate != nCurRot) {
                if (nRotate == VIDEO_PLAY_ROTATE_NONE) {
                        elm_win_wm_rotation_preferred_rotation_set(pPlayView->pWin, 0);
-               }
-               else if (nRotate == VIDEO_PLAY_ROTATE_90) {
+               } else if (nRotate == VIDEO_PLAY_ROTATE_90) {
                        elm_win_wm_rotation_preferred_rotation_set(pPlayView->pWin, 90);
-               }
-               else if (nRotate == VIDEO_PLAY_ROTATE_180) {
+               } else if (nRotate == VIDEO_PLAY_ROTATE_180) {
                        elm_win_wm_rotation_preferred_rotation_set(pPlayView->pWin, 180);
-               }
-               else if (nRotate == VIDEO_PLAY_ROTATE_270) {
+               } else if (nRotate == VIDEO_PLAY_ROTATE_270) {
                        elm_win_wm_rotation_preferred_rotation_set(pPlayView->pWin, 270);
                }
        }
@@ -12645,12 +12462,10 @@ bool vp_play_normal_view_set_rotate(normal_view_handle pViewHandle, video_play_r
        if (pNormalView->nDisplayMode != VP_MM_PLAYER_DISPLAY_FULL_SCREEN) {
                if (nRotate == VIDEO_PLAY_ROTATE_NONE || nRotate == VIDEO_PLAY_ROTATE_180) {
                        elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_PORTRAIT, "*");
-               }
-               else {
+               } else {
                        elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_HIDE, "*");
                }
-       }
-       else {
+       } else {
                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_HIDE, "*");
        }
 #endif
@@ -12681,19 +12496,16 @@ bool vp_play_normal_view_set_rotate(normal_view_handle pViewHandle, video_play_r
                Evas_Coord_Rectangle rect = {0,};
                elm_win_screen_size_get(pPlayView->pWin,  &rect.x, &rect.y, &rect.w, &rect.h);
                if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_NONE) {
-                       nW = rect.w/2;
+                       nW = rect.w / 2;
                        nH = rect.h;
-               }
-               else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90) {
-                       nW = rect.h/2;
+               } else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90) {
+                       nW = rect.h / 2;
                        nH = rect.w;
-               }
-               else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_180) {
-                       nW = rect.w/2;
+               } else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_180) {
+                       nW = rect.w / 2;
                        nH = rect.h;
-               }
-               else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-                       nW = rect.h/2;
+               } else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
+                       nW = rect.h / 2;
                        nH = rect.w;
                }
 
@@ -12775,7 +12587,7 @@ bool vp_play_normal_view_update(normal_view_handle pViewHandle)
        vp_play_normal_view_get_lock_screen(pNormalView, &bLock);
        if (bLock) {
                vp_play_normal_view_set_lock_screen(pNormalView, bLock);
-               }
+       }
 
        _vp_play_normal_view_set_sound_path_state(pNormalView);
 //     _vp_play_normal_view_set_rotate_lock_state(pNormalView);
@@ -12852,8 +12664,7 @@ bool vp_play_normal_view_on_more_menu(normal_view_handle pViewHandle)
                if (!vp_play_volume_unrealize(pNormalView->pVolumeHandle)) {
                        VideoLogWarning("vp_play_volume_unrealize is fail");
                }
-       }
-       else {
+       } else {
                __vp_normal_more_btn_clicked_cb((void *)pNormalView, pNormalView->pMoreBtn, NULL);
        }
 
@@ -12931,7 +12742,7 @@ bool vp_play_normal_view_volume_mute(normal_view_handle pViewHandle)
        _vp_play_normal_view_on_volume_popup(pNormalView, FALSE);
 
        int nMuteVal = vp_play_volume_get_mute_value(pNormalView->pVolumeHandle);
-       if (nMuteVal >0) {
+       if (nMuteVal > 0) {
                pNormalView->nLastVolume = nMuteVal;
                vp_play_volume_set_value(pNormalView->pVolumeHandle, pNormalView->nLastVolume);
        } else {
@@ -12976,7 +12787,7 @@ bool vp_play_normal_view_set_lock_screen(normal_view_handle pViewHandle, bool bL
        pNormalView->bLockScreen = bLock;
        VP_EVAS_TIMER_DEL(pNormalView->pLockScreenTimer);
 
-       elm_object_part_content_unset(pNormalView->pMainLayout,VP_PLAY_SWALLOW_NORMAL_LOCKSCREEN);
+       elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_LOCKSCREEN);
        VP_EVAS_DEL(pNormalView->pLockBtn);
        PlayView *pPlayView = pNormalView->pPlayView;
        Evas_Object *pParent = NULL;
@@ -13008,17 +12819,17 @@ bool vp_play_normal_view_set_lock_screen(normal_view_handle pViewHandle, bool bL
                vp_play_volume_unset_mouse_callbacks(pNormalView->pVolumeHandle, pNormalView->pPlayView->pWin);
 
                pNormalView->pLockScreenTimer =
-                       ecore_timer_add(VP_NORMAL_HIDE_SCREEN_LOCK_TIMER_INTERVAL,
-                       __vp_normal_lockscreen_timer_cb, (void *)pNormalView);
+                   ecore_timer_add(VP_NORMAL_HIDE_SCREEN_LOCK_TIMER_INTERVAL,
+                                   __vp_normal_lockscreen_timer_cb, (void *)pNormalView);
 
                elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_LOCKSCREEN_SHOW, "*");
 
                pNormalView->pLockBtn = vp_button_create(
-                                               pParent, "playview/custom/flat_46_46/default", NULL,
-                                               (Evas_Smart_Cb)__vp_normal_function_btn_clicked_cb,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                               (void *)pNormalView);
+                                           pParent, "playview/custom/flat_46_46/default", NULL,
+                                           (Evas_Smart_Cb)__vp_normal_function_btn_clicked_cb,
+                                           (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
+                                           (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
+                                           (void *)pNormalView);
                if (!pNormalView->pLockBtn) {
                        VideoLogError("elm_button_add is fail");
                        return FALSE;
@@ -13036,7 +12847,7 @@ bool vp_play_normal_view_set_lock_screen(normal_view_handle pViewHandle, bool bL
                pIcon = vp_button_create_icon(pNormalView->pLockBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_LOCK);
                elm_object_part_content_set(pNormalView->pLockBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
 
-               elm_object_part_content_set(pNormalView->pMainLayout,VP_PLAY_SWALLOW_NORMAL_LOCKSCREEN, pNormalView->pLockBtn);
+               elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_LOCKSCREEN, pNormalView->pLockBtn);
 
                evas_object_show(pNormalView->pLockBtn);
 
@@ -13086,8 +12897,7 @@ void vp_play_normal_view_hide_sound_popup(normal_view_handle pViewHandle)
 
        NormalView      *pNormalView = (NormalView *)pViewHandle;
 
-       if (pNormalView->bIsPopupShow)
-       {
+       if (pNormalView->bIsPopupShow) {
 
                VP_EVAS_DEL(pNormalView->pPopup);
                pNormalView->bIsPopupShow = FALSE;
@@ -13110,13 +12920,14 @@ void vp_play_normal_view_web_type_disconnect(normal_view_handle pViewHandle)
 
        PlayView *pPlayView = pNormalView->pPlayView;
 
-       if (pPlayView->nStartPosition<=0) {
+       if (pPlayView->nStartPosition <= 0) {
                int nPosition = 0;
                if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
                        VideoLogError("vp_mm_player_get_position is fail");
                }
-                       if (nPosition>0)
-                               pNormalView->nStartPosition = nPosition;
+               if (nPosition > 0) {
+                       pNormalView->nStartPosition = nPosition;
+               }
        } else {
                pNormalView->nStartPosition = pPlayView->nStartPosition;
        }
@@ -13152,8 +12963,9 @@ void vp_play_normal_view_web_type_reconnect(normal_view_handle pViewHandle)
        }
 
        PlayView *pPlayView = pNormalView->pPlayView;
-       if (pPlayView->nStartPosition > 0)
+       if (pPlayView->nStartPosition > 0) {
                pNormalView->nStartPosition = pPlayView->nStartPosition;
+       }
 
        VideoLogInfo("pNormalView->nStartPosition : [%d]", pNormalView->nStartPosition);
        _vp_play_normal_view_play_start(pNormalView, FALSE);
@@ -13243,8 +13055,7 @@ char *vp_controller_normal_view_get_thumbnail(normal_view_handle pViewHandle)
                VideoLogError("pViewHandle is NULL ");
                return NULL;
        }
-       if (!pNormalView->szMediaURL)
-       {
+       if (!pNormalView->szMediaURL) {
                VideoLogError("pNormalView->szMediaURL");
                return NULL;
        }
@@ -13256,13 +13067,12 @@ char *vp_controller_normal_view_get_thumbnail(normal_view_handle pViewHandle)
 char *vp_controller_normal_view_get_title(normal_view_handle pViewHandle)
 {
        char *pTitle = NULL;
-       NormalView      *pNormalView= (NormalView *)pViewHandle;
+       NormalView      *pNormalView = (NormalView *)pViewHandle;
        if (!pNormalView) {
                VideoLogError("pViewHandle is NULL");
                return NULL;
        }
-       if (!pNormalView->szMediaURL)
-       {
+       if (!pNormalView->szMediaURL) {
                VideoLogError("pNormalView->szMediaURL IS null");
                return NULL;
        }
@@ -13274,13 +13084,12 @@ char *vp_controller_normal_view_get_title(normal_view_handle pViewHandle)
 
 int vp_controller_normal_view_get_duration(normal_view_handle pViewHandle)
 {
-       NormalView      *pNormalView= (NormalView *)pViewHandle;
+       NormalView      *pNormalView = (NormalView *)pViewHandle;
        if (!pNormalView) {
                VideoLogError("pViewHandle is NULL");
                return 0;
        }
-       if (!pNormalView->szMediaURL)
-       {
+       if (!pNormalView->szMediaURL) {
                VideoLogError("pNormalView->szMediaURL IS null");
                return 0;
        }
@@ -13290,7 +13099,7 @@ int vp_controller_normal_view_get_duration(normal_view_handle pViewHandle)
 
 bool vp_controller_normal_view_pop_view(normal_view_handle pViewHandle)
 {
-       NormalView      *pNormalView= (NormalView *)pViewHandle;
+       NormalView      *pNormalView = (NormalView *)pViewHandle;
        if (!pNormalView) {
                VideoLogError("pViewHandle is NULL");
                return FALSE;
@@ -13301,7 +13110,7 @@ bool vp_controller_normal_view_pop_view(normal_view_handle pViewHandle)
 
 int vp_controller_normal_view_get_played_state(normal_view_handle pViewHandle)
 {
-       NormalView      *pNormalView= (NormalView *)pViewHandle;
+       NormalView      *pNormalView = (NormalView *)pViewHandle;
        vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
        if (!pNormalView) {
                VideoLogError("pViewHandle is NULL");
@@ -13317,7 +13126,7 @@ int vp_controller_normal_view_get_played_state(normal_view_handle pViewHandle)
 
 bool vp_controller_normal_view_add_played_state_cb(normal_view_handle pViewHandle, vp_normal_view_state_cb fState_cb)
 {
-       NormalView      *pNormalView= (NormalView *)pViewHandle;
+       NormalView      *pNormalView = (NormalView *)pViewHandle;
        if (!pNormalView) {
                VideoLogError("pViewHandle is NULL");
                return FALSE;
@@ -13342,10 +13151,10 @@ void vp_play_normal_view_db_change(normal_view_handle pViewHandle)
        }
 
        if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
-                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
-                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL &&
-                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL &&
+               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
 
                char *pVideoId = NULL;
                vp_media_contents_get_video_id(pNormalView->szMediaURL, &pVideoId);
diff --git a/playview/src/view/vp-play-normal-view_bk.c b/playview/src/view/vp-play-normal-view_bk.c
deleted file mode 100644 (file)
index c16ba2c..0000000
+++ /dev/null
@@ -1,13365 +0,0 @@
-/*
-* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-
-#include <math.h>
-#include "vp-play-type-define.h"
-#include "vp-play-string-define.h"
-#include "vp-play-value-define.h"
-#include "vp-play-macro-define.h"
-
-#include "vp-play-normal-view.h"
-
-#include "vp-play-button.h"
-#include "vp-play-bookmark.h"
-#include "vp-play-progressbar.h"
-#include "vp-play-subtitle.h"
-#include "vp-play-loading-ani.h"
-
-#include "vp-mm-player.h"
-#include "vp-play-popup.h"
-#include "vp-play-preference.h"
-#include "vp-play-config.h"
-#include "vp-play-util.h"
-#include "vp-play-button.h"
-#include "vp-play-volume.h"
-#include "vp-play-volume-popup.h"
-#include "vp-play-brightness-popup.h"
-
-#include "vp-image-util.h"
-#include "vp-media-contents.h"
-
-#include "vp-share.h"
-#include "vp-play-ug.h"
-#include "vp-sound-alive.h"
-#include "vp-sound-path.h"
-#include "vp-audio-track.h"
-
-#include "vp-sound.h"
-#include "vp-subtitle.h"
-#include "vp-subtitle-sync.h"
-#include "vp-subtitle-select.h"
-#include "vp-subtitle-font.h"
-#include "vp-subtitle-size.h"
-#include "vp-subtitle-alignment.h"
-#include "vp-subtitle-color.h"
-#include "vp-subtitle-bg-color.h"
-#include "vp-subtitle-track.h"
-#include "vp-subtitle-edge.h"
-
-#include "vp-repeat.h"
-#include "vp-capture.h"
-#include "vp-play-speed.h"
-#include "vp-setting.h"
-#ifdef ENABLE_DRM_FEATURE
-#include "vp-drm.h"
-#endif
-#include "vp-device.h"
-#include "vp-media-key.h"
-#include "vp-detail.h"
-#include "vp-zoom-guide.h"
-
-#include "vp-multi-path.h"
-
-#include "VppDownload.h"
-
-#include "vp-device-language.h"
-
-/* check temp */
-#include "vp-play-log.h"
-#include "vp-util.h"
-#include "vp-file-util.h"
-#include "vp-avrcp.h"
-
-
-#define VP_NORMAL_PROGRESS_TIMER_INTERVAL              0.3
-#define VP_NORMAL_PROGRESS_BAR_START_TERM              26 * elm_config_scale_get()
-#define VP_NORMAL_PROGRESS_BAR_WIDTH_TERM              52 * elm_config_scale_get()
-
-#define VP_NORMAL_HIDE_LAYOUT_TIMER_INTERVAL           5.0
-#define VP_NORMAL_HIDE_LAYOUT_FINISH_TIMER_INTERVAL    2.0 //3.0
-#define VP_NORMAL_WINDOW_LOAD_FINISH_TIMER_INTERVAL    1.5 //wait for window loaded
-
-#define VP_NORMAL_LONG_PRESS_TIMER_INTERVAL            1.0
-#define VP_NORMAL_SUBTITLE_LONG_PRESS_TIMER_INTERVAL           0.5
-
-#define VP_NORMAL_HIDE_SCREEN_LOCK_TIMER_INTERVAL      3.0
-#define VP_NORMAL_MOMENTUM_PRESS_TIMER_INTERVAL                0.2
-#define VP_NORMAL_SCREENSHOT_TIMER_INTERVAL            2.0
-#define VP_NORMAL_EXIT_WAIT_TIMER_INTERVAL             3.0
-#define VP_NORMAL_INDICATOR_HIDE_TIMER_INTERVAL                2.0
-
-#define VP_NORMAL_ALL_BUTTON_L                                 885
-#define VP_NORMAL_ALL_BUTTON_VSFRP_L                   680
-#define VP_NORMAL_ALL_BUTTON_FRP_L                             430
-#define VP_NORMAL_ALL_BUTTON_P_L                               140
-
-
-#define VP_SUBTITLE_PORTRAIT_POSX                              360
-#define VP_SUBTITLE_PORTRAIT_POSY                              1335
-#define VP_SUBTITLE_LANDSCAPE_POSX                             640
-#define VP_SUBTITLE_LANDSCAPE_POSY                             765
-
-#define VP_SUBTITLE_LANDSCAPE_SIZE                             1280
-#define VP_SUBTITLE_PORTRAIT_SIZE                              720
-
-#define VP_SUBTITLE_MARGIN_SIZE                30
-
-#define VP_NORMAL_SPEED_VALUE_MAX                      64
-
-#define VP_NORMAL_VALUE_SEC                            60
-
-#define        VP_VOICE_MUTE_VALUE             0
-
-#define VP_NORMAL_HIDE_VOLUME_TIMER_INTERVAL           0.05
-
-#define VP_NORMAL_SET_GREP_BOX_SIZE_ID                         1
-#define VP_NORMAL_SET_CAPTION_WINDOW_SIZE_ID           2
-#define VP_NORMAL_SET_CAPTION_WINDOW_COLOR_ID          3
-#define VP_NORMAL_SET_CAPTION_WINDOW_OFFSET_ID         4
-
-#define VP_SUBTITLE_SET_GREP_BOX_SIZE_ID                       1
-#define VP_SUBTITLE_SET_CAPTION_WINDOW_SIZE_ID         2
-
-#ifdef K_FEATURE_MICROSEEK
-#define VP_NORMAL_SZ_HALF_SPEED                                "1/2"
-#define VP_NORMAL_SZ_QUARTER_SPEED                     "1/4"
-#define VP_NORMAL_MICROSEEK_TEXT_HEIGHT                (46 * elm_config_scale_get())
-#define VP_NORMAL_MICROSEEK_IMAGE_WIDTH                (46 * elm_config_scale_get())
-#define VP_NORMAL_MICROSEEK_IMAGE_HEIGHT       (70 * elm_config_scale_get())
-#endif
-
-#ifdef _NATIVE_BUFFER_SYNC
-#define VP_NORMAL_DEFAULT_WIDTH                (480 * elm_config_scale_get())
-#define VP_NORMAL_DEFAULT_HEIGHT               (800 * elm_config_scale_get())
-#endif
-
-typedef struct _ProgressMouseInfo {
-       int                     nDownPosX;
-}ProgressMouseInfo;
-
-typedef enum
-{
-       BUTTON_TYPE_NORMAL = 0,
-       BUTTON_TYPE_PRESSED,
-       BUTTON_TYPE_DIM,
-}ButtonType;
-
-#ifdef K_FEATURE_MICROSEEK
-typedef enum
-{
-       SEEK_LEVEL_NORMAL = 1,
-       SEEK_LEVEL_HALF = 2,
-       SEEK_LEVEL_QUARTER = 4,
-}SeekLevel;
-#endif
-
-typedef struct _NormalView
-{
-       PlayView                        *pPlayView;
-       Ecore_X_Window                  nXwinID;
-
-       Evas_Object                     *pNaviFrame;
-       Elm_Object_Item                 *pNaviItem;
-       Evas_Object                     *pMainEventRect;
-       Evas_Object                     *pGestureRect;
-       Evas_Object                     *pMainLayout;
-#ifdef _NATIVE_BUFFER_SYNC
-       Evas_Object                     *pVideoSink;
-#endif
-       Evas_Object                     *pTopControlLayout;
-       Evas_Object                     *pControlLayout;
-       Evas_Object                     *pFunctionLayout;
-
-       Evas_Object                     *pNaviLeftBtn;
-       Evas_Object                     *pNaviRightBtn;
-
-       Evas_Object                     *pSoundPathBtn;
-       Evas_Object                     *pAllsharBtn;
-
-       Evas_Object                     *pMoreBtn;
-       Evas_Object                     *pBackBtn;
-
-       Evas_Object                     *pCtxPopup;
-
-       Evas_Object                     *pImageBufferObj;
-
-       Evas_Object                     *pRotateBtn;
-       Evas_Object                     *pVolumeBtn;
-       Evas_Object                     *pScreenSizeBtn;
-       Evas_Object                     *pBookmarkBtn;
-       Evas_Object                     *pMultiWinBtn;
-       Evas_Object                     *pRepeatBtn;
-       Evas_Object                     *pTrimBtn;
-       Evas_Object                     *pSoundAliveBtn;
-       Evas_Object                     *pShareBtn;
-       Evas_Object                     *pLockBtn;
-
-       Evas_Object                     *pResumeBtn;
-       Evas_Object                     *pPauseBtn;
-       Evas_Object                     *pPlayFocusBtn;
-       Evas_Object                     *pPrevBtn;
-       Evas_Object                     *pNextBtn;
-
-       Evas_Object                     *pCaptureBtn;
-       Evas_Object                     *pCaptureRewBtn;
-       Evas_Object                     *pCaptureFFBtn;
-       Evas_Object                     *pPopupBtn;
-
-       Evas_Object                     *pSpeedBoxCtrl;
-
-       Evas_Object                     *pPopup;
-
-       Evas_Object                     *pLoadingAni;
-
-       Ecore_Timer                     *pHideTimer;
-       Ecore_Timer                     *pHideFinishTimer;
-       Ecore_Timer                     *pLockScreenTimer;
-
-       Ecore_Timer                     *pSpeedTimer;
-       bool                            bSpeedFF;
-       int                             nSpeedValue;
-       bool                            bSpeedDown;
-       bool                            bKeyPressed;
-
-       Ecore_Timer                     *pExitWaitTimer;
-
-       Ecore_Idler                     *pControlIdler;
-       Ecore_Idler                     *pMultiWinIdler;
-
-       GList                           *pMediaItemList;
-
-       bool                            bIsRealize;
-       bool                            bIsActive;
-       bool                            bShowLayout;
-       bool                            bMainFocusState;
-       bool                            bIsPopupShow;
-       bool                            bIsSubtitleShow;
-       bool                            bIsVideoUnsupport;
-
-       /* bookmark part */
-       bookmark_handle                 pBookmarkHandle;
-       Evas_Object                     *pBookmarkObj;
-       bool                            bCaptureComplete;
-       int                             nCapturePosition;
-       /* progressbar part */
-       Evas_Object                     *pProgressEvent;
-       Ecore_Timer                     *pProgressTimer;
-       progressbar_handle              pProgressbar;
-       bool                            bProgressDown;
-#ifdef K_FEATURE_MICROSEEK
-       double                  nPrevCanvasX;
-       double                  nPrevPositionX;
-#endif
-       int                             nCurPosition;
-       bool                            bHLSMode;
-       int                             nWaitPos;
-       bool                            bSeekComplete;
-       bool                            bSeekPause;
-       bool                            bSeekResume;
-#ifdef K_FEATURE_MICROSEEK
-       Evas_Object             *pMicroSeekTextLayout;
-       Evas_Object             *pMicroSeekImageLayout;
-#endif
-#ifdef FLICK_JUMP
-       int                     nFlickPressX1;
-       int                     nFlickPressY1;
-       bool                    bFlickRewind;
-       bool                    bFlickWaiting;
-       Evas_Object             *pFlickJumpSeek;
-#endif
-       bool                            bBufferingComplete;
-
-       char                            *szMediaURL;
-       char                            *szSubtitleURL;
-       int                             nStartPosition;
-       bool                            bManualPause;
-
-       mm_player_handle                pPlayerHandle;
-       vp_mm_player_display_mode_t     nDisplayMode;
-
-       int                             nDuration;
-       video_play_launching_type_t     nLaunchingType;
-       video_play_rotate_t             nRotate;
-
-       share_handle                    pShareHandle;
-
-       volume_handle                   pVolumeHandle;
-       volume_popup_handle             pVolumePopupHandle;
-       brightness_handle               pBrightnessHandle;
-
-       sound_alive_handle              pSAHandle;
-       int                             nSoundAlive;
-
-       subtitle_handle                 pSubtitle;
-       Ecore_Timer                     *pSubtitleTimer;
-       bool                            bIsExistSubtitle;
-       subtitle_popup_handle           pSubtitlePopup;
-       subtitle_select_handle          pSubtitleSelectPopup;
-#ifdef SUBTITLE_K_FEATURE
-       subtitle_alignment_handle       pSubtitleAlignmentPopup;
-#endif
-       subtitle_font_handle            pSubtitleFontPopup;
-       subtitle_size_handle            pSubtitleSizePopup;
-       subtitle_edge_handle            pSubtitleEdgePopup;
-       subtitle_color_handle   pSubtitleFontColorPopup;
-#ifndef SUBTITLE_K_FEATURE
-       subtitle_bg_color_handle        pSubtitleBGColorPopup;
-#else
-       subtitle_color_handle   pSubtitleBGColorPopup;
-#endif
-       subtitle_color_handle   pSubtitleCaptionWinColorPopup;
-       subtitle_sync_popup             pSubtitleSyncPopup;
-       subtitle_track_handle           pSubtitleTrackHandle;
-       int                             nDefaultSubtitleTrackIndex;
-       float                           fSubtitleSyncValue;
-
-       repeat_handle                   pRepeatHandle;
-       video_play_repeat_mode_t        nRepeatMode;
-
-       sound_path_handle               pSoundPathHandle;
-       setting_popup_handle            pSettingHandle;
-       detail_handle                   pDetailHandle;
-
-       audio_track_handle              pAudioTrackHandle;
-       int                             nDefaultAudioTrackIndex;
-
-       media_key_handle                pMediaKey;
-       bool                            bLockScreen;
-       char                            *szScreenMirrorMacAddr;
-
-       VppDownloadHandle               pDownloadHandle;
-       bool                            bVideoOnlyMode;
-       bool                            bDeviceRemoveInterrupt;
-
-       int                             dSubtitleStartTime;
-       int                             dSubtitleEndTime;
-
-       Ecore_Timer                     *pMomentTimer;
-       int                             nGestureStartPosX;
-       int                             nGestureStartPosY;
-       int                             nGestureOldPosY;
-       int                             nMomentDefaultVal;
-       int                             nMomentWeight;
-       int                             nMomentStep;
-       int                             nWindowWidth;
-       int                             nWindowHeight;
-
-       Ecore_Job                       *pVolumeJob;
-       Ecore_Job                       *pBrightnessJob;
-
-       bool                            bMomentumIncrease;
-
-       play_speed_popup                pPlaySpeedPopup;
-       double                          fPlaySpeed;
-
-       capture_popup_handle            pCapturePopup;
-       Ecore_Timer                     *pScreenShotTimer;
-       Evas_Object                     *pScreenShot;
-
-       bool                            bCaptureMode;
-       bool                            bCaptureBookmark;
-       bool                            bEarjackConnect;
-
-       zoom_guide_handle               pZoomGuide;
-       int                             nZoomPosX;
-       int                             nZoomPosY;
-       int                             nPrevZoomPosX;
-       int                             nPrevZoomPosY;
-
-       double                          fActiveZoom;
-       double                          fZoomValue;
-       double                          fPrevZoomValue;
-       bool                            bZoomEnable;
-
-       int                                     nLastVolume;
-
-       Ecore_Pipe                      *pSeekPipe;
-
-       vp_normal_view_state_cb vp_mini_played_state_cb;
-       bool    bKeySpeed;
-       Ecore_Pipe                      *pPreparePipe;
-       bool    bDestroyNavi;
-       bool    bSharepopup;
-       bool    bSharePanelPause;
-       bool    bSharePanelstate;
-       bool    bSharePanelFocusIn; //first focus in is menu popup hide, second is share panel hdie
-
-#ifdef SUBTITLE_K_FEATURE
-       bool    bSubtitleDown;
-
-       int                     nInitSubtitleX;
-       int                     nInitSubtitleY;
-
-       int                     nDeltaSubtitleX;
-       int                     nDeltaSubtitleY;
-
-       int                     nLongPressX1;
-       int                     nLongPressY1;
-       int                     nLongPressX2;
-       int                     nLongPressY2;
-
-       Ecore_Timer     *pSubtitleMoveTimer;
-       int             nSubtitleInterval;
-#endif
-#ifdef _SUBTITLE_MULTI_LANGUAGE
-       int             nSubtitleLanguageCount;
-       bool            *pSelectedSubtitleLanguage;
-#endif
-}NormalView;
-
-
-static void _vp_play_normal_view_destroy_handle(NormalView *pNormalView);
-static bool _vp_play_normal_view_set_subtitle_font_config(NormalView *pNormalView);
-static bool _vp_play_normal_view_update_progress_value(NormalView *pNormalView);
-static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheckDRM);
-static void _vp_play_normal_view_on_next_play(NormalView *pNormalView, bool bManual);
-static void _vp_play_normal_view_on_prev_play(NormalView *pNormalView, bool bManual, bool bVoice);
-static bool _vp_play_normal_view_check_during_call(NormalView *pNormalView);
-static void _vp_play_normal_view_show_audio_only_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_show_video_only_popup(NormalView *pNormalView);
-static bool _vp_play_normal_view_check_audio_only(NormalView *pNormalView);
-static bool _vp_play_normal_view_check_drm_lock(NormalView *pNormalView, bool *bLock);
-static void _vp_play_normal_view_set_played_time(NormalView *pNormalView);
-static void _vp_play_normal_view_screen_capture(NormalView *pNormalView);
-static void _vp_play_normal_view_screen_move(NormalView *pNormalView, bool bFoward);
-
-static void _vp_play_normal_view_create_progress_timer(NormalView *pNormalView);
-static void _vp_play_normal_view_create_layout_hide_timer(NormalView *pNormalView);
-static bool _vp_play_normal_view_create_loading_ani(NormalView *pNormalView);
-static void _vp_play_normal_view_set_play_state(NormalView *pNormalView);
-static double _vp_play_normal_view_get_mouse_pos_ratio(Evas_Object *pObj, int nCurX);
-static void _vp_play_normal_view_all_close_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_show_layout(NormalView *pNormalView);
-static void _vp_play_normal_view_hide_layout(NormalView *pNormalView, bool bNoEffect);
-
-#ifdef ENABLE_GESTURE_ZOOM_FEATURE
-static void _vp_play_normal_view_on_zoom_mode(NormalView *pNormalView);
-#endif
-static void _vp_play_normal_view_on_capture_mode(NormalView *pNormalView);
-static void _vp_play_normal_view_on_share_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_sound_alive_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_sound_path_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_audio_track_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_subtitle_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_subtitle_sync_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_subtitle_language_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_subtitle_select_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_subtitle_font_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_subtitle_size_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_subtitle_edge_popup(NormalView *pNormalView);
-
-static void _vp_play_normal_view_on_subtitle_font_color_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_subtitle_bg_color_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_subtitle_caption_win_color_popup(NormalView *pNormalView);
-
-#ifdef SUBTITLE_K_FEATURE
-//static void _vp_play_normal_view_on_subtitle_mouse_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
-//static void _vp_play_normal_view_on_subtitle_mouse_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
-//static void _vp_play_normal_view_on_subtitle_mouse_move_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
-static void _vp_play_normal_view_on_subtitle_alignment_popup(NormalView *pNormalView);
-#endif
-
-//static void _vp_play_normal_view_on_repeat_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_setting_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_detail_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_capture_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_play_speed_popup(NormalView *pNormalView);
-static void _vp_play_normal_view_on_play_speed_popup_cb(void *data, Evas_Object *obj, const char *emission, const char *source);
-static void _vp_play_normal_view_on_volume_popup(NormalView *pNormalView, bool bToggle);
-static void _vp_play_normal_view_on_bookmark_mode(NormalView *pNormalView, bool bShow);
-static void _vp_play_normal_view_download_sdp(NormalView *pNormalView, char *szSdpPath);
-
-static void _vp_play_normal_view_show_rotate(NormalView *pNormalView);
-static void _vp_play_normal_view_show_volume(NormalView *pNormalView);
-static void _vp_play_normal_view_set_sound_path_state(NormalView *pNormalView);
-static void _vp_play_normal_view_set_rotate_lock_state(NormalView *pNormalView);
-static void _vp_play_normal_view_set_volume_lock_state(NormalView *pNormalView);
-
-static void _vp_normal_set_audio_only_image(NormalView *pNormalView, bool bAudioOnly);
-
-static void __vp_play_normal_view_seek_pipe_cb(void *pUserData, void *pBuf, int nByte);
-static void __vp_normal_error_popup_time_out_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo);
-static void __vp_normal_error_popup_key_event_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo);
-static void __vp_normal_error_popup_mouse_event_cb(void *pUserData, Evas *pEvas, Evas_Object *pObj, void *pEventInfo);
-static void __vp_normal_completed_cb (void *pUserData);
-
-
-//Focus UI
-static void _vp_play_normal_view_set_button_focus_sequence(NormalView *pNormalView);
-static void _vp_normal_view_speed_for_steps(NormalView *pNormalView, bool bSpeedFF);
-
-static vp_mm_player_state_t pState = VP_MM_PLAYER_STATE_NONE;
-
-#ifdef SUBTITLE_K_FEATURE
-/*Set caption window: size, rel1, color*/
-static void __vp_normal_subtitle_set_caption_window(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       if (!pNormalView->pSubtitle) {
-               VideoLogError("pSubtitle is NULL");
-               return;
-       }
-
-       Evas_Coord ww = 0;
-       Evas_Coord hh = 0;
-       bool bLandscape = FALSE;
-       int width = 0.0;
-       int offset_x = 0.0;
-       vp_subtitle_alignment_t nAlignment = VP_SUBTITLE_ALIGNMENT_CENTER;
-
-       bLandscape = vp_play_util_get_landscape_check(pNormalView->nRotate);
-       vp_play_subtitle_get_size_formatted(pNormalView->pSubtitle, &ww, &hh);
-       if (pNormalView->bSubtitleDown) {
-               ww = bLandscape ? VP_SUBTITLE_LANDSCAPE_SIZE : VP_SUBTITLE_PORTRAIT_SIZE;
-               hh += VP_SUBTITLE_MARGIN_SIZE;
-       } else {
-               ww += VP_SUBTITLE_MARGIN_SIZE;
-               hh += VP_SUBTITLE_MARGIN_SIZE;
-       }
-       vp_play_subtitle_get_alignment(pNormalView->pSubtitle, &nAlignment);
-       vp_play_util_set_object_size(_EDJ(vp_play_subtitle_get_object(pNormalView->pSubtitle)),
-                                                               ww, hh, VP_NORMAL_SET_CAPTION_WINDOW_SIZE_ID);
-       width = bLandscape ? VP_SUBTITLE_LANDSCAPE_SIZE : VP_SUBTITLE_PORTRAIT_SIZE;
-       if (nAlignment == VP_SUBTITLE_ALIGNMENT_LEFT) {
-               offset_x = 0;
-       } else if (nAlignment == VP_SUBTITLE_ALIGNMENT_CENTER) {
-               offset_x = (width-ww)/2;
-       } else if (nAlignment == VP_SUBTITLE_ALIGNMENT_RIGHT) {
-               offset_x = width-ww;
-       }
-       VideoLogInfo("nAlignment:%d,offset_x:%d", nAlignment, offset_x);
-       vp_play_util_set_object_offset(_EDJ(vp_play_subtitle_get_object(pNormalView->pSubtitle)),
-                                       offset_x, 0, VP_NORMAL_SET_CAPTION_WINDOW_OFFSET_ID);
-
-       vp_play_subtitle_set_caption_win_color(pNormalView->pSubtitle, TRUE);
-}
-#endif
-
-/* callback functions */
-
-static void _vp_play_normal_view_set_volume_state(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       Evas_Object *pIcon = NULL;
-
-       pIcon = elm_object_part_content_get(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_ICON);
-       VP_EVAS_DEL(pIcon);
-       pIcon = elm_object_part_content_get(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON);
-       VP_EVAS_DEL(pIcon);
-       pIcon = elm_object_part_content_get(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON);
-       VP_EVAS_DEL(pIcon);
-
-       elm_object_part_content_unset(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_ICON);
-       elm_object_part_content_unset(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON);
-       elm_object_part_content_unset(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON);
-
-       int nVolume = 0;
-       bool bMute = FALSE;
-       vp_sound_get_volume(&nVolume);
-
-       VideoLogError("nVolume = %d:%d", nVolume, bMute);
-
-       if ((nVolume == 0) || bMute) {
-               pIcon = vp_button_create_icon(pNormalView->pVolumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_MUTE);
-               elm_object_part_content_set(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-               pIcon = vp_button_create_icon(pNormalView->pVolumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_MUTE_PRESS);
-               elm_object_part_content_set(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-               pIcon = vp_button_create_icon(pNormalView->pVolumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_MUTE_DIM);
-               elm_object_part_content_set(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-       } else {
-               pIcon = vp_button_create_icon(pNormalView->pVolumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_VOLUME);
-               elm_object_part_content_set(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-               pIcon = vp_button_create_icon(pNormalView->pVolumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_VOLUME_PRESS);
-               elm_object_part_content_set(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-               pIcon = vp_button_create_icon(pNormalView->pVolumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_VOLUME_DIM);
-               elm_object_part_content_set(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-       }
-
-}
-
-static void __vp_normal_volume_change_value_cb(int nVolume, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VideoLogWarning("Set Volume: %d", nVolume);
-
-       pNormalView->nLastVolume = nVolume;
-       _vp_play_normal_view_set_volume_state(pNormalView);
-}
-
-/*static void __vp_normal_subtitle_popup_key_event_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pPopup);
-
-       pNormalView->bIsPopupShow = FALSE;
-}
-*/
-
-static void __vp_normal_popup_key_event_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pPopup);
-
-       pNormalView->bIsPopupShow = FALSE;
-}
-
-static void __vp_normal_popup_mouse_event_cb(void *pUserData, Evas *pEvas, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return;
-       }
-
-       Evas_Event_Mouse_Up *ev = pEventInfo;
-
-       if (ev->button == 3) {
-               NormalView *pNormalView = (NormalView *)pUserData;
-               VP_EVAS_DEL(pNormalView->pPopup);
-               pNormalView->bIsPopupShow = FALSE;
-       }
-}
-
-static void __vp_normal_popup_time_out_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pPopup);
-       pNormalView->bIsPopupShow = FALSE;
-}
-
-static void __vp_normal_prepare_error_popup_time_out_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pObj);
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE ||
-               pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
-               PlayView *pPlayView = pNormalView->pPlayView;
-               if (!pPlayView) {
-                       VideoLogError("pPlayView is NULL");
-                       return;
-               }
-               if (!pPlayView->pFunc) {
-                       VideoLogError("pPlayView pFunc is NULL");
-                       return;
-               }
-
-               if (!pPlayView->pFunc->vp_play_func_exit) {
-                       VideoLogError("pPlayView exit Func is NULL");
-                       return;
-               }
-               vp_device_set_screen_off(FALSE);
-               vp_play_util_set_unlock_power_key();
-
-               // tmpory comment
-               //pPlayView->pFunc->vp_play_func_exit(pPlayView);
-       } else {
-               //_vp_play_normal_view_on_next_play(pNormalView, FALSE);
-       }
-
-}
-
-static void __vp_normal_error_popup_key_event_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pPopup);
-
-       pNormalView->bIsPopupShow = FALSE;
-       if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE ||
-               pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
-               PlayView *pPlayView = pNormalView->pPlayView;
-               if (!pPlayView) {
-                       VideoLogError("pPlayView is NULL");
-                       return;
-               }
-               if (!pPlayView->pFunc) {
-                       VideoLogError("pPlayView pFunc is NULL");
-                       return;
-               }
-
-               if (!pPlayView->pFunc->vp_play_func_exit) {
-                       VideoLogError("pPlayView exit Func is NULL");
-                       return;
-               }
-               vp_device_set_screen_off(FALSE);
-               vp_play_util_set_unlock_power_key();
-
-               pPlayView->pFunc->vp_play_func_exit(pPlayView);
-       }
-       else {
-               _vp_play_normal_view_on_next_play(pNormalView, FALSE);
-       }
-
-}
-
-static void __vp_normal_error_popup_mouse_event_cb(void *pUserData, Evas *pEvas, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return;
-       }
-
-       Evas_Event_Mouse_Up *ev = pEventInfo;
-
-       if (ev->button == 3) {
-               NormalView *pNormalView = (NormalView *)pUserData;
-               VP_EVAS_DEL(pNormalView->pPopup);
-               pNormalView->bIsPopupShow = FALSE;
-               if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE ||
-                       pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
-                       PlayView *pPlayView = pNormalView->pPlayView;
-                       if (!pPlayView) {
-                               VideoLogError("pPlayView is NULL");
-                               return;
-                       }
-                       if (!pPlayView->pFunc) {
-                               VideoLogError("pPlayView pFunc is NULL");
-                               return;
-                       }
-
-                       if (!pPlayView->pFunc->vp_play_func_exit) {
-                               VideoLogError("pPlayView exit Func is NULL");
-                               return;
-                       }
-                       vp_device_set_screen_off(FALSE);
-                       vp_play_util_set_unlock_power_key();
-
-                       pPlayView->pFunc->vp_play_func_exit(pPlayView);
-               }
-               else {
-                       _vp_play_normal_view_on_next_play(pNormalView, FALSE);
-               }
-       }
-}
-
-static void __vp_normal_error_popup_time_out_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pPopup);
-       pNormalView->bIsPopupShow = FALSE;
-
-       _vp_play_normal_view_on_next_play(pNormalView, FALSE);
-}
-
-static Eina_Bool __vp_normal_control_idler_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return ECORE_CALLBACK_CANCEL;
-       }
-       NormalView      *pNormalView = (NormalView *)pUserData;
-
-       _vp_play_normal_view_set_play_state(pNormalView);
-       _vp_play_normal_view_on_capture_mode(pNormalView);
-
-       pNormalView->pControlIdler = NULL;
-
-       return ECORE_CALLBACK_CANCEL;
-}
-
-static void __vp_normal_sound_alive_popup_close_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       video_sound_alive_t nSAType = (video_sound_alive_t)nType;
-
-       vp_sound_alive_destroy(pNormalView->pSAHandle);
-       pNormalView->pSAHandle = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       else {
-               if (pNormalView->bManualPause == FALSE) {
-                       if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                               VideoLogWarning("Pause Fail");
-                       }
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-                       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-               }
-       }
-
-
-       vp_mm_player_sound_filter_t nSoundFilter = VP_MM_PLAYER_FILTER_NONE;
-
-       if (nSAType == VIDEO_SA_NORMAL) {
-               nSoundFilter = VP_MM_PLAYER_FILTER_NONE;
-       }
-       else if (nSAType == VIDEO_SA_VOICE) {
-               nSoundFilter = VP_MM_PLAYER_FILTER_VOICE;
-       }
-       else if (nSAType == VIDEO_SA_MOVIE) {
-               nSoundFilter = VP_MM_PLAYER_FILTER_MOVIE;
-       }
-       else if (nSAType == VIDEO_SA_7_1_CH) {
-               nSoundFilter = VP_MM_PLAYER_FILTER_VITUAL_71;
-
-               video_sound_device_type_t nSoundDevType = VP_SOUND_DEVICE_NONE;
-               vp_sound_get_active_device(&nSoundDevType);
-               if (nSoundDevType != VP_SOUND_DEVICE_EARJACK && nSoundDevType != VP_SOUND_DEVICE_BLUETOOTH) {
-                       /* show popup */
-                       VP_EVAS_DEL(pNormalView->pPopup);
-                       pNormalView->pPopup = NULL;
-
-                       PlayView *pPlayView = pNormalView->pPlayView;
-
-                       if (!pPlayView) {
-                               VideoLogError("pPlayView is NULL");
-                               return;
-                       }
-                       pNormalView->bIsPopupShow = TRUE;
-                       char *szMsg = g_strdup_printf(VP_PLAY_STRING_71CH_ONLY_EARPHONE, "7.1");
-                       pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_WITH_CANCEL_BTN,
-                                                               NULL,
-                                                               szMsg,
-                                                               0.0, NULL,
-                                                               __vp_normal_popup_key_event_cb,
-                                                               __vp_normal_popup_mouse_event_cb,
-                                                               pNormalView);
-                       VP_FREE(szMsg);
-
-                       Evas_Object *pBtn = NULL;
-                       pBtn = elm_button_add(pNormalView->pPopup);
-                       elm_object_style_set (pBtn, "popup_button/default");
-                       elm_object_domain_translatable_text_set(pBtn, VP_SYS_STR_PREFIX, VP_PLAY_STRING_COM_OK_IDS);
-                       elm_object_part_content_set(pNormalView->pPopup, "button1", pBtn);
-                       evas_object_smart_callback_add(pBtn, "clicked", __vp_normal_popup_key_event_cb, (void*)pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-
-                       return;
-               }
-       } else {
-               return;
-
-       }
-
-       pNormalView->nSoundAlive = nSAType;
-       if (!vp_play_preference_set_sound_alive_status(nSAType)) {
-               VideoLogError("vp_play_preference_set_sound_alive_status failed");
-       }
-
-       if (!vp_mm_player_set_sound_filter(pNormalView->pPlayerHandle, nSoundFilter)) {
-               VideoLogWarning("vp_mm_player_set_sound_filter is fail");
-       }
-}
-
-static void __vp_normal_sound_path_popup_close_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       vp_play_volume_update_value(pNormalView->pVolumeHandle);
-
-       vp_sound_path_destroy(pNormalView->pSoundPathHandle);
-       pNormalView->pSoundPathHandle = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       _vp_play_normal_view_set_sound_path_state(pNormalView);
-
-       if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       else {
-               if (pNormalView->bManualPause == FALSE) {
-                       if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                               VideoLogWarning("play Fail");
-                       }
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-                       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-               }
-       }
-
-}
-
-/*
-static void __vp_normal_repeat_popup_close_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       else {
-               if (pNormalView->bManualPause == FALSE) {
-                       if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                               VideoLogWarning("Pause Fail");
-                       }
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-                       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-               }
-       }
-
-       video_play_repeat_mode_t nRepeatMode = (video_play_repeat_mode_t)nType;
-
-       vp_repeat_destroy(pNormalView->pRepeatHandle);
-       pNormalView->pRepeatHandle = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       else {
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }
-
-       if (nRepeatMode != VIDEO_PLAY_REPEAT_NONE) {
-               pNormalView->nRepeatMode = nRepeatMode;
-       }
-}
-*/
-
-static void __vp_normal_setting_popup_close_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       vp_setting_destroy(pNormalView->pSettingHandle);
-       pNormalView->pSettingHandle = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (nType == VP_SETTING_MODE_NONE || nType == VP_SETTING_MODE_PLAY_SPEED) {
-               if (bPause) {
-                       if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                               VideoLogWarning("Pause Fail");
-                       }
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-               } else {
-                       if (pNormalView->bManualPause == FALSE) {
-                               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                                       VideoLogWarning("Pause Fail");
-                               }
-                               _vp_play_normal_view_set_play_state(pNormalView);
-                               _vp_play_normal_view_on_capture_mode(pNormalView);
-                               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-                       }
-               }
-       }
-
-       switch (nType)
-       {
-       case VP_SETTING_MODE_PLAY_SPEED:
-               _vp_play_normal_view_on_play_speed_popup(pNormalView);
-               break;
-       case VP_SETTING_MODE_SOUND_ALIVE:
-               _vp_play_normal_view_on_sound_alive_popup(pNormalView);
-               break;
-       case VP_SETTING_MODE_AUDIO_TRACK:
-               _vp_play_normal_view_on_audio_track_popup(pNormalView);
-               break;
-       case VP_SETTING_MODE_CAPTURE:
-               _vp_play_normal_view_on_capture_popup(pNormalView);
-               break;
-       }
-}
-
-static void __vp_normal_capture_popup_close_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (nType != -1) {
-               pNormalView->bCaptureMode= (bool)nType;
-       }
-       vp_play_preference_set_capture_on_key(pNormalView->bCaptureMode);
-
-       vp_capture_popup_destroy(pNormalView->pCapturePopup);
-       pNormalView->pCapturePopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }
-
-       _vp_play_normal_view_on_capture_mode(pNormalView);
-}
-
-static void __vp_normal_play_speed_popup_update_cb(double fValue, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       vp_mm_player_set_rate(pNormalView->pPlayerHandle, (float)fValue);
-}
-
-static void __vp_normal_play_speed_popup_done_cb(double fValue, bool bSetValue, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       vp_play_speed_popup_destroy(pNormalView->pPlaySpeedPopup);
-       pNormalView->pPlaySpeedPopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Play Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }
-
-       if (bSetValue) {
-               pNormalView->fPlaySpeed = fValue;
-               if (pNormalView->pPlayView != NULL) {
-                       pNormalView->pPlayView->fPlaySpeed = fValue;
-               }
-
-               if ((fValue - 0.05) > 1.000 || (fValue + 0.05) < 1.000)
-               {
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_PLAYING_SPEED_SHOW, "*");
-                       elm_object_signal_callback_add(pNormalView->pMainLayout, "elm,action,click", "", _vp_play_normal_view_on_play_speed_popup_cb, pNormalView);
-                       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-               } else {
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_PLAYING_SPEED_HIDE, "*");
-               }
-               char szTxt[5] = {0,};
-               snprintf(szTxt, 5, "%1.1fX", (float)pNormalView->fPlaySpeed);
-               elm_object_part_text_set(pNormalView->pMainLayout, VP_PLAY_PART_NORMAL_PLAYING_SPEED_TXT, szTxt);
-       }
-       vp_mm_player_set_rate(pNormalView->pPlayerHandle, (float)pNormalView->fPlaySpeed);
-}
-
-static void __vp_normal_subtitle_popup_close_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       vp_subtitle_mode_t nSubtitleMode = (vp_subtitle_mode_t)nType;
-
-       if (nSubtitleMode == VP_SUBTITLE_MODE_CLOSE) {
-               _vp_play_normal_view_set_subtitle_font_config(pNormalView);
-               vp_play_subtitle_text_update(pNormalView->pSubtitle, NULL);
-               bool bShow = FALSE;
-               vp_play_preference_get_subtitle_show_key(&bShow);
-               if (bShow) {
-                       vp_play_subtitle_realize(pNormalView->pSubtitle);
-                       vp_mm_player_set_deactivate_subtitle(pNormalView->pPlayerHandle, FALSE);
-               } else {
-                       vp_play_subtitle_unrealize(pNormalView->pSubtitle);
-                       vp_mm_player_set_deactivate_subtitle(pNormalView->pPlayerHandle, TRUE);
-               }
-               vp_subtitle_destroy(pNormalView->pSubtitlePopup);
-               pNormalView->pSubtitlePopup = NULL;
-               pNormalView->bIsSubtitleShow = FALSE;
-       }
-
-       switch (nSubtitleMode)
-       {
-       case VP_SUBTITLE_MODE_NONE:
-       case VP_SUBTITLE_MODE_CLOSE:
-               break;
-       case VP_SUBTITLE_MODE_ACTIVATION:
-       {
-               bool bShow = FALSE;
-               vp_play_preference_get_subtitle_show_key(&bShow);
-               if (bShow) {
-                       vp_play_subtitle_realize(pNormalView->pSubtitle);
-                       vp_mm_player_set_deactivate_subtitle(pNormalView->pPlayerHandle, FALSE);
-               }
-               else {
-                       vp_play_subtitle_unrealize(pNormalView->pSubtitle);
-                       vp_mm_player_set_deactivate_subtitle(pNormalView->pPlayerHandle, TRUE);
-               }
-       }
-               break;
-       case VP_SUBTITLE_MODE_SYNC:
-               _vp_play_normal_view_on_subtitle_sync_popup(pNormalView);
-               break;
-       case VP_SUBTITLE_MODE_LANGUAGE:
-               _vp_play_normal_view_on_subtitle_language_popup(pNormalView);
-               break;
-#ifdef SUBTITLE_K_FEATURE
-       case VP_SUBTITLE_MODE_ALIGNMENT:
-               _vp_play_normal_view_on_subtitle_alignment_popup(pNormalView);
-               break;
-#endif
-       case VP_SUBTITLE_MODE_SELECT:
-               _vp_play_normal_view_on_subtitle_select_popup(pNormalView);
-               break;
-       case VP_SUBTITLE_MODE_FONT:
-               _vp_play_normal_view_on_subtitle_font_popup(pNormalView);
-               break;
-       case VP_SUBTITLE_MODE_SIZE:
-               _vp_play_normal_view_on_subtitle_size_popup(pNormalView);
-               break;
-//#ifdef SUBTITLE_K_FEATURE
-       case VP_SUBTITLE_MODE_EDGE:
-               _vp_play_normal_view_on_subtitle_edge_popup(pNormalView);
-               break;
-       case VP_SUBTITLE_MODE_TEXT:
-               _vp_play_normal_view_on_subtitle_font_color_popup(pNormalView);
-               break;
-       case VP_SUBTITLE_MODE_BG_COLOR:
-
-               _vp_play_normal_view_on_subtitle_bg_color_popup(pNormalView);
-               break;
-#ifdef SUBTITLE_K_FEATURE
-       case VP_SUBTITLE_MODE_CAPTION_WINDOW:
-               _vp_play_normal_view_on_subtitle_caption_win_color_popup(pNormalView);
-               break;
-#endif
-       }
-}
-
-static void __vp_normal_subtitle_sync_popup_update_cb(float fValue, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       /* set subtitle sync value */
-
-       int nPosition = fValue * 1000;
-
-       if (!vp_mm_player_set_subtitle_position(pNormalView->pPlayerHandle, nPosition)) {
-               VideoLogError("vp_mm_player_set_subtitle_position is fail");
-       }
-}
-
-static void __vp_normal_subtitle_sync_popup_done_cb(float fValue, bool bSetValue, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       vp_subtitle_sync_popup_destroy(pNormalView->pSubtitleSyncPopup);
-       pNormalView->pSubtitleSyncPopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (bSetValue) {
-               /* set subtitle sync value */
-               int nPosition = fValue * 1000;
-               pNormalView->fSubtitleSyncValue = fValue;
-               pNormalView->pPlayView->fSubtitleSyncValue = fValue;
-               if (!vp_mm_player_set_subtitle_position(pNormalView->pPlayerHandle, nPosition)) {
-                       VideoLogError("vp_mm_player_set_subtitle_position is fail");
-               }
-       } else {
-               /* set subtitle sync value */
-               int nPosition = pNormalView->fSubtitleSyncValue * 1000;
-
-               if (!vp_mm_player_set_subtitle_position(pNormalView->pPlayerHandle, nPosition)) {
-                       VideoLogError("vp_mm_player_set_subtitle_position is fail");
-               }
-               _vp_play_normal_view_on_subtitle_popup(pNormalView);
-       }
-}
-
-
-static void __vp_normal_subtitle_size_popup_done_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       vp_subtitle_size_destroy(pNormalView->pSubtitleSizePopup);
-       pNormalView->pSubtitleSizePopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (nType != -1) {
-               vp_play_subtitle_set_size(pNormalView->pSubtitle, nType);
-               vp_play_subtitle_set_size_zoom(pNormalView->pSubtitle, 1.0);
-               vp_play_preference_set_subtitle_size_key(nType);
-               _vp_play_normal_view_set_subtitle_font_config(pNormalView);
-       #ifdef SUBTITLE_K_FEATURE
-               /*Set caption window: size, rel1, color*/
-               __vp_normal_subtitle_set_caption_window(pNormalView);
-       #endif
-       }
-
-       if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       _vp_play_normal_view_on_subtitle_popup(pNormalView);
-
-/*
-       if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }
-*/
-}
-
-
-static void __vp_normal_subtitle_font_popup_done_cb(char *szFontName, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (szFontName) {
-               vp_play_subtitle_set_font(pNormalView->pSubtitle, szFontName);
-               vp_play_preference_set_subtitle_font_name_key(szFontName);
-               _vp_play_normal_view_set_subtitle_font_config(pNormalView);
-       #ifdef SUBTITLE_K_FEATURE
-               /*Set caption window: size, rel1, color*/
-               __vp_normal_subtitle_set_caption_window(pNormalView);
-       #endif
-       }
-
-       vp_subtitle_font_destroy(pNormalView->pSubtitleFontPopup);
-       pNormalView->pSubtitleFontPopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-/*
-       if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }
-*/
-       _vp_play_normal_view_on_subtitle_popup(pNormalView);
-}
-
-static void __vp_normal_subtitle_select_button_popup_done_cb(char *option, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (!strcmp(option, "settings")) {
-               _vp_play_normal_view_on_subtitle_popup(pNormalView);
-       } else {
-               vp_subtitle_select_destroy(pNormalView->pSubtitleSelectPopup);
-               pNormalView->pSubtitleSelectPopup = NULL;
-               pNormalView->bIsPopupShow = FALSE;
-               if (pNormalView->bManualPause == FALSE) {
-                       if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                               VideoLogWarning("Pause Fail");
-                       }
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-                       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-               }
-       }
-}
-
-static void __vp_normal_subtitle_select_popup_done_cb(char *szFilePath, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       char *szSubtitle = NULL;
-
-       vp_subtitle_select_destroy(pNormalView->pSubtitleSelectPopup);
-       pNormalView->pSubtitleSelectPopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-       if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }
-       if (!szFilePath) {
-               goto SELECT_DONE;
-       }
-       if (!strcmp(szFilePath, VP_PLAY_STRING_SUBTITLE_OFF)) {
-               pNormalView->bIsExistSubtitle = FALSE;
-               vp_mm_player_set_deactivate_subtitle(pNormalView->pPlayerHandle, TRUE);
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_HIDE, "*");
-               goto SELECT_DONE;
-       } else {
-               bool bOn = FALSE;
-               vp_play_preference_get_subtitle_show_key(&bOn);
-               if (bOn) {
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_PORTRAIT, "*");
-                       pNormalView->bIsExistSubtitle = TRUE;
-                       vp_mm_player_set_deactivate_subtitle(pNormalView->pPlayerHandle, FALSE);
-               }
-       }
-       VP_FREE(pNormalView->szSubtitleURL);
-       VP_STRDUP(pNormalView->szSubtitleURL, szFilePath);
-       vp_mm_player_get_subtitle_url(pNormalView->pPlayerHandle, &szSubtitle);
-
-       if (szSubtitle) {
-               if (strcmp(szSubtitle, szFilePath) == 0) {
-                       goto SELECT_DONE;
-               }
-       }
-/*
-       int nPosition = 0;
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-               VideoLogError("vp_mm_player_get_position is fail");
-               pNormalView->nStartPosition = nPosition;
-       }
-*/
-       pNormalView->bIsExistSubtitle = vp_mm_player_set_subtitle_url(pNormalView->pPlayerHandle,szFilePath);
-
-SELECT_DONE:
-       VP_FREE(szSubtitle);
-
-       /*if (pNormalView->bIsExistSubtitle) {
-               _vp_play_normal_view_on_subtitle_popup(pNormalView);
-       }*/
-}
-
-#ifndef SUBTITLE_K_FEATURE
-static void __vp_normal_subtitle_font_color_popup_done_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       vp_subtitle_color_destroy(pNormalView->pSubtitleFontColorPopup);
-       pNormalView->pSubtitleFontColorPopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (nType != -1) {
-
-               video_subtitle_color_t nColor = VP_SUBTITLE_COLOR_BLACK;
-               if (nType == VIDEO_SUBTITLE_COLOR_BLACK) {
-                       nColor = VP_SUBTITLE_COLOR_BLACK;
-               }
-               else if (nType == VIDEO_SUBTITLE_COLOR_BLUE) {
-                       nColor = VP_SUBTITLE_COLOR_BLUE;
-               }
-               else if (nType == VIDEO_SUBTITLE_COLOR_GREEN) {
-                       nColor = VP_SUBTITLE_COLOR_GREEN;
-               }
-               else if (nType == VIDEO_SUBTITLE_COLOR_WHITE) {
-                       nColor = VP_SUBTITLE_COLOR_WHITE;
-               }
-               //need to improve....
-
-               vp_play_subtitle_set_color(pNormalView->pSubtitle, nColor);
-
-               vp_play_preference_set_subtitle_font_color_key(nType);
-
-               _vp_play_normal_view_set_subtitle_font_config(pNormalView);
-       }
-
-       _vp_play_normal_view_on_subtitle_popup(pNormalView);
-
-       /*if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }*/
-}
-
-static void __vp_normal_subtitle_bg_color_popup_done_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       vp_subtitle_bg_color_destroy(pNormalView->pSubtitleBGColorPopup);
-       pNormalView->pSubtitleBGColorPopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (nType != -1) {
-               video_subtitle_color_t nColor = VP_SUBTITLE_COLOR_BLACK;
-               if (nType == VIDEO_SUBTITLE_COLOR_BLACK) {
-                       nColor = VP_SUBTITLE_COLOR_BLACK;
-               }
-               else if (nType == VIDEO_SUBTITLE_COLOR_WHITE) {
-                       nColor = VP_SUBTITLE_COLOR_WHITE;
-               }
-               else if (nType == VIDEO_SUBTITLE_COLOR_NONE) {
-                       nColor = VP_SUBTITLE_COLOR_NONE;
-               }
-               vp_play_subtitle_set_bg_color(pNormalView->pSubtitle, nColor);
-               vp_play_preference_set_subtitle_bg_color_key(nType);
-               _vp_play_normal_view_set_subtitle_font_config(pNormalView);
-       }
-       _vp_play_normal_view_on_subtitle_popup(pNormalView);
-
-       /*if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }*/
-}
-
-#else
-static void __vp_normal_subtitle_font_color_popup_done_hex_cb(char *pColorHex, bool bSetValue, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       char *pSelectColorHex = strdup(pColorHex);
-
-       vp_subtitle_color_destroy(pNormalView->pSubtitleFontColorPopup);
-       pNormalView->pSubtitleFontColorPopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (bSetValue) {
-               VideoLogInfo("pSelectColorHex =%s", pSelectColorHex);
-
-               if (pSelectColorHex != NULL) {
-                       vp_play_subtitle_set_color(pNormalView->pSubtitle, pSelectColorHex);
-
-                       vp_play_preference_set_subtitle_font_color_hex_key(pSelectColorHex);
-
-                       _vp_play_normal_view_set_subtitle_font_config(pNormalView);
-
-               }
-       }
-
-       VP_FREE(pSelectColorHex);
-
-       _vp_play_normal_view_on_subtitle_popup(pNormalView);
-}
-
-static void __vp_normal_subtitle_bg_color_popup_done_hex_cb(char *pColorHex, bool bSetValue, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       char *pSelectColorHex = strdup(pColorHex);
-
-       vp_subtitle_color_destroy(pNormalView->pSubtitleBGColorPopup);
-       pNormalView->pSubtitleBGColorPopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (bSetValue) {
-               VideoLogInfo("pSelectColorHex =%s", pSelectColorHex);
-               if (pSelectColorHex != NULL) {
-                       vp_play_subtitle_set_bg_color(pNormalView->pSubtitle, pSelectColorHex);
-
-                       vp_play_preference_set_subtitle_bg_color_hex_key(pSelectColorHex);
-
-                       _vp_play_normal_view_set_subtitle_font_config(pNormalView);
-
-               }
-       }
-
-       VP_FREE(pSelectColorHex);
-
-       _vp_play_normal_view_on_subtitle_popup(pNormalView);
-}
-
-static void __vp_normal_subtitle_caption_win_color_popup_done_hex_cb(char *pColorHex, bool bSetValue, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       char *pSelectColorHex = strdup(pColorHex);
-
-       vp_subtitle_color_destroy(pNormalView->pSubtitleCaptionWinColorPopup);
-       pNormalView->pSubtitleCaptionWinColorPopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (bSetValue) {
-               VideoLogInfo("pSelectColorHex =%s", pSelectColorHex);
-               if (pSelectColorHex != NULL) {
-                       vp_play_preference_set_subtitle_caption_win_color_hex_key(pSelectColorHex);
-                       vp_play_subtitle_set_caption_win_color(pNormalView->pSubtitle, TRUE);
-               }
-       }
-
-       VP_FREE(pSelectColorHex);
-
-       _vp_play_normal_view_on_subtitle_popup(pNormalView);
-}
-
-#endif
-
-static void __vp_normal_subtitle_track_popup_close_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       vp_subtitle_track_destroy(pNormalView->pSubtitleTrackHandle);
-       pNormalView->pSubtitleTrackHandle = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (nType >= 0) {
-
-               /*if (bPause) {
-                       if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                               VideoLogWarning("Pause Fail");
-                       }
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-               }
-               else {
-                       if (pNormalView->bManualPause == FALSE) {
-                               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                                       VideoLogWarning("Pause Fail");
-                               }
-                               _vp_play_normal_view_set_play_state(pNormalView);
-                               _vp_play_normal_view_on_capture_mode(pNormalView);
-                               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-                       }
-               }*/
-
-               pNormalView->nDefaultSubtitleTrackIndex = nType;
-       #ifndef _SUBTITLE_MULTI_LANGUAGE
-               vp_mm_player_set_subtitle_track(pNormalView->pPlayerHandle, pNormalView->nDefaultSubtitleTrackIndex);
-       #endif
-               _vp_play_normal_view_on_subtitle_popup(pNormalView);
-
-       }
-       else {
-               _vp_play_normal_view_on_subtitle_popup(pNormalView);
-       }
-
-}
-
-
-
-static void __vp_normal_detail_popup_close_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("resume Fail");
-               }
-
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-
-       vp_detail_destroy(pNormalView->pDetailHandle);
-       pNormalView->pDetailHandle = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       else {
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }
-
-}
-
-
-static void __vp_normal_audio_track_popup_close_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       else {
-               if (pNormalView->bManualPause == FALSE) {
-                       if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                               VideoLogWarning("Pause Fail");
-                       }
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-                       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-               }
-       }
-
-       vp_audio_track_destroy(pNormalView->pAudioTrackHandle);
-       pNormalView->pAudioTrackHandle = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       else {
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }
-       if (nType != -1) {
-               pNormalView->nDefaultAudioTrackIndex = nType;
-
-               vp_mm_player_set_audio_track(pNormalView->pPlayerHandle, pNormalView->nDefaultAudioTrackIndex);
-       }
-
-}
-
-static Evas_Event_Flags __vp_normal_gesture_n_tab_start_cb(void *pUserData , void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       return EVAS_EVENT_FLAG_NONE;
-}
-
-static Evas_Event_Flags __vp_normal_gesture_n_tab_end_cb(void *pUserData , void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       Elm_Gesture_Taps_Info *p = (Elm_Gesture_Taps_Info *) pEventInfo;
-       NormalView *pNormalView = (NormalView *)pUserData;
-       VideoLogInfo("gesture tab = %d" ,p->n);
-
-       if (p->n == 1) {
-               if (pNormalView->pVolumeHandle) {
-                       bool bIsRealize = FALSE;
-
-                       if (!vp_play_volume_is_realize(pNormalView->pVolumeHandle, &bIsRealize)) {
-                               VideoLogWarning("vp_play_volume_is_realize is fail");
-                       }
-
-                       if (bIsRealize) {
-                               if (!vp_play_volume_unrealize(pNormalView->pVolumeHandle)) {
-                                       VideoLogWarning("vp_play_volume_unrealize is fail");
-                               }
-                       }
-               }
-
-               if (pNormalView->bShowLayout) {
-                       _vp_play_normal_view_hide_layout(pNormalView, FALSE);
-               }
-               else {
-                       _vp_play_normal_view_show_layout(pNormalView);
-               }
-       }
-
-       return EVAS_EVENT_FLAG_NONE;
-}
-
-static Evas_Event_Flags __vp_normal_gesture_n_tab_abort_cb(void *pUserData , void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-
-       return EVAS_EVENT_FLAG_NONE;
-}
-
-#ifdef ENABLE_VOLUME_BRIGHTNESS_POPUP
-static void __vp_normal_volume_job_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (pNormalView->bIsActive == FALSE) {
-               VideoLogError("Not Active mode");
-               return;
-       }
-       if (!pNormalView->pVolumePopupHandle) {
-               if (!pNormalView->pPlayView) {
-                       VideoLogError("pNormalView->pPlayView is NULL");
-                       return;
-               }
-
-               Evas_Object *pParent = pNormalView->pPlayView->pWin;
-               pNormalView->pVolumePopupHandle = vp_play_volume_popup_create(pParent);
-               if (!pNormalView->pVolumePopupHandle) {
-                       VideoLogError("pNormalView->pVolumePopupHandle is NULL");
-                       return;
-               }
-       }
-
-       bool bIsRealize = FALSE;
-
-       if (!vp_play_volume_popup_is_realize(pNormalView->pVolumePopupHandle, &bIsRealize)) {
-               VideoLogWarning("vp_play_volume_popup_is_realize is fail");
-               return;
-       }
-       if (bIsRealize == FALSE) {
-               bool bLandscape = FALSE;
-
-               if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-                       bLandscape = TRUE;
-               }
-
-               if (!vp_play_volume_popup_set_landscape_mode(pNormalView->pVolumePopupHandle, bLandscape)) {
-                       VideoLogWarning("vp_play_volume_popup_set_landscape_mode is fail");
-               }
-
-               if (!vp_play_volume_popup_realize(pNormalView->pVolumePopupHandle)) {
-                       VideoLogWarning("vp_play_volume_popup_realize is fail");
-               }
-       }
-       if (pNormalView->bMomentumIncrease) {
-               int nMaxVal = 0;
-               if (!vp_play_volume_popup_set_value(pNormalView->pVolumePopupHandle, pNormalView->nMomentDefaultVal + pNormalView->nMomentWeight)) {
-                       VideoLogWarning("vp_play_volume_popup_set_value is fail");
-               }
-
-               if (vp_play_volume_popup_get_max_value(&nMaxVal)) {
-                       if (pNormalView->nMomentDefaultVal + pNormalView->nMomentWeight >= nMaxVal) {
-                               pNormalView->nGestureStartPosY = pNormalView->nGestureOldPosY;
-                               pNormalView->nMomentDefaultVal = nMaxVal;
-                       }
-               }
-       }
-       else {
-               if (!vp_play_volume_popup_set_value(pNormalView->pVolumePopupHandle, pNormalView->nMomentDefaultVal - pNormalView->nMomentWeight)) {
-                       VideoLogWarning("vp_play_volume_popup_set_value is fail");
-               }
-
-               if (pNormalView->nMomentDefaultVal - pNormalView->nMomentWeight <= 0) {
-                       pNormalView->nGestureStartPosY = pNormalView->nGestureOldPosY;
-                       pNormalView->nMomentDefaultVal = 0;
-               }
-       }
-
-       VP_EVAS_JOB_DEL(pNormalView->pVolumeJob);
-
-}
-
-static void __vp_normal_brightness_job_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (pNormalView->bIsActive == FALSE) {
-               VideoLogError("Not Active mode");
-               return;
-       }
-       if (!pNormalView->pBrightnessHandle) {
-               if (!pNormalView->pPlayView) {
-                       VideoLogError("pNormalView->pPlayView is NULL");
-                       return;
-               }
-
-               Evas_Object *pParent = pNormalView->pPlayView->pWin;
-               pNormalView->pBrightnessHandle = vp_play_brightness_create(pParent);
-               if (!pNormalView->pBrightnessHandle) {
-                       VideoLogError("pNormalView->pBrightnessHandle is NULL");
-                       return;
-               }
-       }
-
-       bool bIsRealize = FALSE;
-
-       if (!vp_play_brightness_is_realize(pNormalView->pBrightnessHandle, &bIsRealize)) {
-               VideoLogWarning("vp_play_brightness_is_realize is fail");
-               return;
-       }
-       if (bIsRealize == FALSE) {
-               bool bLandscape = FALSE;
-
-               if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-                       bLandscape = TRUE;
-               }
-
-               if (!vp_play_brightness_set_landscape_mode(pNormalView->pBrightnessHandle, bLandscape)) {
-                       VideoLogWarning("vp_play_brightness_set_landscape_mode is fail");
-               }
-
-               if (!vp_play_brightness_realize(pNormalView->pBrightnessHandle)) {
-                       VideoLogWarning("vp_play_brightness_realize is fail");
-               }
-       }
-
-       if (pNormalView->bMomentumIncrease) {
-               int nMaxVal = 0;
-               if (!vp_play_brightness_set_value(pNormalView->pBrightnessHandle, pNormalView->nMomentDefaultVal + pNormalView->nMomentWeight)) {
-                       VideoLogWarning("vp_play_brightness_set_value is fail");
-               }
-
-               if (vp_play_brightness_get_max_value(&nMaxVal)) {
-                       if (pNormalView->nMomentDefaultVal + pNormalView->nMomentWeight >= nMaxVal) {
-                               pNormalView->nGestureStartPosY = pNormalView->nGestureOldPosY;
-                               pNormalView->nMomentDefaultVal = nMaxVal;
-                       }
-               }
-       }
-       else {
-               int nMinVal = 0;
-               if (!vp_play_brightness_set_value(pNormalView->pBrightnessHandle, pNormalView->nMomentDefaultVal - pNormalView->nMomentWeight)) {
-                       VideoLogWarning("vp_play_brightness_set_value is fail");
-               }
-
-               if (vp_play_brightness_get_min_value(&nMinVal)) {
-                       if (pNormalView->nMomentDefaultVal - pNormalView->nMomentWeight <= nMinVal) {
-                               pNormalView->nGestureStartPosY = pNormalView->nGestureOldPosY;
-                               pNormalView->nMomentDefaultVal = nMinVal;
-                       }
-               }
-       }
-       VP_EVAS_JOB_DEL(pNormalView->pBrightnessJob);
-
-}
-#endif
-
-#ifdef ENABLE_VOLUME_BRIGHTNESS_POPUP
-static Eina_Bool __vp_normal_momentum_press_timer_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-#ifdef SUBTITLE_K_FEATURE
-       if (pNormalView->bSubtitleDown) {
-               VideoLogError("Skip for subtitle down");
-               return EINA_FALSE;
-       }
-#endif
-
-       pNormalView->pMomentTimer = NULL;
-       bool bVolumeMode = FALSE;
-
-       if (pNormalView->nGestureStartPosX < (pNormalView->nWindowWidth/2)) {
-               bVolumeMode = TRUE;
-       }
-
-       if (bVolumeMode) {
-               VP_EVAS_JOB_DEL(pNormalView->pVolumeJob);
-               pNormalView->pVolumeJob = ecore_job_add(__vp_normal_volume_job_cb,(void *)pNormalView);
-       }
-       else {
-               VP_EVAS_JOB_DEL(pNormalView->pBrightnessJob);
-               pNormalView->pBrightnessJob = ecore_job_add(__vp_normal_brightness_job_cb,(void *)pNormalView);
-       }
-
-       return EINA_FALSE;
-}
-#endif
-
-static Evas_Event_Flags __vp_normal_gesture_momentum_start_cb(void *pUserData, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       Elm_Gesture_Momentum_Info *p = (Elm_Gesture_Momentum_Info *) pEventInfo;
-       NormalView *pNormalView = (NormalView *)pUserData;
-       if (pNormalView->bLockScreen) {
-               return EVAS_EVENT_FLAG_NONE;
-       }
-#ifdef SUBTITLE_K_FEATURE
-       if (pNormalView->pSubtitleMoveTimer || pNormalView->bSubtitleDown) {
-               VideoLogWarning("Longpress subtitle");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-#endif
-       pNormalView->nGestureOldPosY = p->y1;
-       pNormalView->nGestureStartPosY = p->y1;
-
-       int nWidth, nHeight;
-       bool bLandscape = FALSE;
-
-       if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-               bLandscape = TRUE;
-       }
-       elm_win_screen_size_get(pNormalView->pPlayView->pWin, NULL, NULL, &nWidth, &nHeight);
-       if (bLandscape) {
-               pNormalView->nWindowWidth = nHeight;
-               pNormalView->nWindowHeight = nWidth;
-       }
-       else {
-
-               pNormalView->nWindowWidth = nWidth;
-               pNormalView->nWindowHeight = nHeight;
-       }
-
-       if (pNormalView->bZoomEnable == FALSE) {
-#ifdef ENABLE_VOLUME_BRIGHTNESS_POPUP
-               bool bVolumeMode = FALSE;
-               int nMaxVal = 0;
-               int nMinVal = 0;
-
-               pNormalView->nGestureStartPosX = p->x1;
-               pNormalView->nMomentWeight = 0;
-
-               if (p->x1 < (pNormalView->nWindowWidth/2)) {
-                       bVolumeMode = TRUE;
-               }
-
-               bool bIsVolumeRealize = FALSE;
-
-               if (pNormalView->pVolumeHandle) {
-                       vp_play_volume_is_realize(pNormalView->pVolumeHandle, &bIsVolumeRealize);
-               }
-
-               if (bVolumeMode && bIsVolumeRealize) {
-                       if (pNormalView->pVolumePopupHandle) {
-                               if (!vp_play_volume_popup_unrealize(pNormalView->pVolumePopupHandle)) {
-                                       VideoLogWarning("vp_play_volume_popup_unrealize is fail");
-                               }
-                       }
-                       return EVAS_EVENT_FLAG_NONE;
-               }
-
-
-               if (bVolumeMode) {
-                       if (!vp_play_volume_popup_get_value(&pNormalView->nMomentDefaultVal)) {
-                               VideoLogError("vp_play_volume_popup_get_value is fail");
-                       }
-                       if (!vp_play_volume_popup_get_max_value(&nMaxVal)) {
-                               VideoLogError("vp_play_volume_popup_get_max_value is fail");
-                       }
-               }
-               else {
-
-                       if (!vp_play_brightness_get_value(&pNormalView->nMomentDefaultVal)) {
-                               VideoLogError("vp_play_brightness_get_value is fail");
-                       }
-                       if (!vp_play_brightness_get_max_value(&nMaxVal)) {
-                               VideoLogError("vp_play_brightness_get_max_value is fail");
-                       }
-                       if (!vp_play_brightness_get_min_value(&nMinVal)) {
-                               VideoLogError("vp_play_brightness_get_min_value is fail");
-                       }
-               }
-
-               VP_EVAS_TIMER_DEL(pNormalView->pMomentTimer);
-               pNormalView->pMomentTimer = NULL;
-
-               pNormalView->pMomentTimer = ecore_timer_add(VP_NORMAL_MOMENTUM_PRESS_TIMER_INTERVAL,
-                               __vp_normal_momentum_press_timer_cb, (void *)pNormalView);
-
-               if (nMaxVal <= 0) {
-                       nMaxVal = 1;
-               }
-               pNormalView->nMomentStep = (pNormalView->nWindowHeight/2) / (nMaxVal-nMinVal);
-#endif
-       }
-       else    {
-               pNormalView->nGestureStartPosX = p->x2;
-               pNormalView->nGestureStartPosY = p->y2;
-       }
-
-       return EVAS_EVENT_FLAG_ON_HOLD;
-}
-
-static Evas_Event_Flags __vp_normal_gesture_momentum_move_cb(void *pUserData, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       Elm_Gesture_Momentum_Info *p = (Elm_Gesture_Momentum_Info *) pEventInfo;
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-#ifdef SUBTITLE_K_FEATURE
-       if (pNormalView->pSubtitleMoveTimer || pNormalView->bSubtitleDown) {
-               VideoLogWarning("Longpress subtitle");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-#endif
-
-       if (pNormalView->bLockScreen) {
-               VideoLogError("Skip for lock mode");
-               _vp_play_normal_view_show_layout(pNormalView);
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (p->n != 1) {
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (pNormalView->bZoomEnable == FALSE) {
-#ifdef ENABLE_VOLUME_BRIGHTNESS_POPUP
-               if (pNormalView->pMomentTimer ||
-                       pNormalView->bLockScreen) {
-                       return EVAS_EVENT_FLAG_NONE;
-               }
-
-               if (pNormalView->bShowLayout) {
-                       _vp_play_normal_view_hide_layout(pNormalView, FALSE);
-               }
-
-               int nDiff = 0;
-               bool bVolumeMode = FALSE;
-               if (pNormalView->nMomentStep <= 0) {
-                       pNormalView->nMomentStep = 1;
-               }
-
-               if (p->x1 < (pNormalView->nWindowWidth/2)) {
-                       bVolumeMode = TRUE;
-               }
-
-               bool bIsVolumeRealize = FALSE;
-
-               if (pNormalView->pVolumeHandle) {
-                       vp_play_volume_is_realize(pNormalView->pVolumeHandle, &bIsVolumeRealize);
-               }
-
-               if (bVolumeMode && bIsVolumeRealize) {
-                       if (pNormalView->pVolumePopupHandle) {
-                               if (!vp_play_volume_popup_unrealize(pNormalView->pVolumePopupHandle)) {
-                                       VideoLogWarning("vp_play_volume_popup_unrealize is fail");
-                               }
-                       }
-                       return EVAS_EVENT_FLAG_NONE;
-               }
-
-               if (pNormalView->nGestureStartPosY < p->y2) {
-                       pNormalView->bMomentumIncrease = FALSE;
-                       nDiff = p->y2 - pNormalView->nGestureStartPosY;
-               } else {
-                       pNormalView->bMomentumIncrease = TRUE;
-                       nDiff = pNormalView->nGestureStartPosY - p->y2;
-               }
-
-               pNormalView->nGestureOldPosY = p->y2;
-               pNormalView->nMomentWeight = nDiff / pNormalView->nMomentStep;
-
-               if (bVolumeMode) {
-                       VP_EVAS_JOB_DEL(pNormalView->pVolumeJob);
-                       pNormalView->pVolumeJob = ecore_job_add(__vp_normal_volume_job_cb,(void *)pNormalView);
-               } else {
-                       VP_EVAS_JOB_DEL(pNormalView->pBrightnessJob);
-                       pNormalView->pBrightnessJob = ecore_job_add(__vp_normal_brightness_job_cb,(void *)pNormalView);
-               }
-#endif
-       }
-       else {
-               int nDiffX = 0;
-               int nDiffY = 0;
-               int nWidth = 0;
-               int nHeight = 0;
-               double fX = 0.0;
-               double fY = 0.0;
-
-               nDiffX = p->x2 - pNormalView->nGestureStartPosX;
-               nDiffY = p->y2 - pNormalView->nGestureStartPosY;
-
-               vp_zoom_guide_get_move_position(pNormalView->pZoomGuide, &fX, &fY);
-               Evas_Coord_Rectangle rtSrc = {0,};
-               Evas_Coord_Rectangle rtDst = {0,};
-               Evas_Coord_Rectangle rtResult = {0,};
-
-               elm_win_screen_size_get(pNormalView->pPlayView->pWin, NULL, NULL, &nWidth, &nHeight);
-
-               if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-                       rtDst.w = nHeight;
-                       rtDst.h = nWidth;
-               }
-               else {
-                       rtDst.w = nWidth;
-                       rtDst.h = nHeight;
-               }
-               vp_mm_player_get_resolution(pNormalView->pPlayerHandle, &(rtSrc.w), &(rtSrc.h));
-
-               vp_play_util_calculator_position(rtSrc, rtDst, &rtResult, pNormalView->nDisplayMode);
-
-               fX -= (double)nDiffX/rtResult.w;
-               fY -= (double)nDiffY/rtResult.h;
-
-               pNormalView->nGestureStartPosX = p->x2;
-               pNormalView->nGestureStartPosY = p->y2;
-
-               vp_zoom_guide_set_move_position(pNormalView->pZoomGuide, fX, fY);
-               //vp_zoom_guide_get_move_position(pNormalView->pZoomGuide, &fX, &fY);
-               vp_zoom_guide_get_real_position(pNormalView->pZoomGuide, &fX, &fY);
-
-               //VideoLogError("ZoomValue : [%f], offset_x : [%d], offset_y : [%d]", pNormalView->fZoomValue, (int)(fX * rtSrc.w), (int)(fY * rtSrc.h));
-               vp_mm_player_set_zoom(pNormalView->pPlayerHandle, pNormalView->fZoomValue, (int)(fX * rtSrc.w), (int)(fY * rtSrc.h));
-       }
-
-       return EVAS_EVENT_FLAG_ON_HOLD;
-}
-
-static Evas_Event_Flags __vp_normal_gesture_momentum_end_cb(void *pUserData, void *pEventInfo)
-{
-       VideoLogInfo("");
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (pNormalView->bLockScreen) {
-               VideoLogError("Skip for lock mode");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-#ifdef SUBTITLE_K_FEATURE
-       if (pNormalView->pSubtitleMoveTimer || pNormalView->bSubtitleDown) {
-               VideoLogWarning("Longpress subtitle");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-#endif
-
-       if (pNormalView->bZoomEnable == FALSE) {
-#ifdef ENABLE_VOLUME_BRIGHTNESS_POPUP
-               VP_EVAS_TIMER_DEL(pNormalView->pMomentTimer);
-               pNormalView->pMomentTimer = NULL;
-
-               VP_EVAS_JOB_DEL(pNormalView->pVolumeJob);
-               VP_EVAS_JOB_DEL(pNormalView->pBrightnessJob);
-
-               if (!vp_play_brightness_unrealize(pNormalView->pBrightnessHandle)) {
-                       VideoLogWarning("vp_play_brightness_unrealize is fail");
-               }
-
-               if (!vp_play_volume_popup_unrealize(pNormalView->pVolumePopupHandle)) {
-                       VideoLogWarning("vp_play_volume_popup_unrealize is fail");
-               }
-
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-#endif
-       }
-
-       return EVAS_EVENT_FLAG_ON_HOLD;
-}
-
-#ifdef ENABLE_GESTURE_ZOOM_FEATURE
-static Evas_Event_Flags __vp_normal_gesture_zoom_start_cb(void *pUserData, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (pNormalView->bLockScreen) {
-               VideoLogError("Skip for lock mode");
-               _vp_play_normal_view_show_layout(pNormalView);
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       Elm_Gesture_Zoom_Info *pZoomInfo = (Elm_Gesture_Zoom_Info *) pEventInfo;
-
-       pNormalView->fActiveZoom = pZoomInfo->zoom;
-
-       pNormalView->nZoomPosX = pZoomInfo->x;
-       pNormalView->nZoomPosY = pZoomInfo->y;
-
-       pNormalView->nPrevZoomPosX = 0;
-       pNormalView->nPrevZoomPosY = 0;
-       pNormalView->fPrevZoomValue = 0;
-
-       return EVAS_EVENT_FLAG_ON_HOLD;
-}
-
-static Evas_Event_Flags __vp_normal_gesture_zoom_move_cb(void *pUserData, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       Elm_Gesture_Zoom_Info *pZoomInfo = (Elm_Gesture_Zoom_Info *) pEventInfo;
-
-       if (pNormalView->bLockScreen) {
-               VideoLogError("Skip for lock mode");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       double fVal = pZoomInfo->zoom/ pNormalView->fActiveZoom;
-
-       pNormalView->fActiveZoom = pZoomInfo->zoom;
-
-       pNormalView->fZoomValue = pNormalView->fZoomValue * fVal;
-
-       if (pNormalView->fZoomValue < 1.0) {
-               pNormalView->fZoomValue = 1.0;
-       } else if (pNormalView->fZoomValue > 3.0) {
-               pNormalView->fZoomValue = 3.0;
-       }
-
-       // event filtering
-       bool bLandscape = FALSE;
-       if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-               bLandscape = TRUE;
-       }
-       if (bLandscape && fabs(pNormalView->fPrevZoomValue - pNormalView->fZoomValue)< 0.05) {
-//             VideoLogWarning("same ZoomValue. skip it");
-               return EVAS_EVENT_FLAG_ON_HOLD;
-       }
-
-       _vp_play_normal_view_on_zoom_mode(pNormalView);
-
-       double fX = 0.0;
-       double fY = 0.0;
-       int nSrcW = 0;
-       int nSrcH = 0;
-
-       vp_mm_player_get_resolution(pNormalView->pPlayerHandle, &nSrcW, &nSrcH);
-       vp_zoom_guide_get_real_position(pNormalView->pZoomGuide, &fX, &fY);
-
-       // event filtering
-       if ((pNormalView->fZoomValue > 1.0 && pNormalView->fZoomValue < 3.0) &&
-            (pNormalView->nPrevZoomPosX == (int)(fX * nSrcW)) && (pNormalView->nPrevZoomPosY == (int)(fY * nSrcH))) {
-//             VideoLogWarning("skip same position");
-               return EVAS_EVENT_FLAG_ON_HOLD;
-       }
-
-       pNormalView->nPrevZoomPosX = (int)(fX * nSrcW);
-       pNormalView->nPrevZoomPosY = (int)(fY * nSrcH);
-       pNormalView->fPrevZoomValue = pNormalView->fZoomValue;
-
-//     VideoLogError("ZoomValue : [%f], offset_x : [%d], offset_y : [%d]", pNormalView->fZoomValue, (int)(fX * nSrcW), (int)(fY * nSrcH));
-       vp_mm_player_set_zoom(pNormalView->pPlayerHandle, pNormalView->fZoomValue, (int)(fX * nSrcW), (int)(fY * nSrcH));
-
-       return EVAS_EVENT_FLAG_ON_HOLD;
-}
-
-static Evas_Event_Flags __vp_normal_gesture_zoom_end_cb(void *pUserData, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       Elm_Gesture_Zoom_Info *pZoomInfo = (Elm_Gesture_Zoom_Info *) pEventInfo;
-
-       if (pNormalView->bLockScreen) {
-               VideoLogError("Skip for lock mode");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       double fVal = pZoomInfo->zoom/ pNormalView->fActiveZoom;
-
-       pNormalView->fActiveZoom = pZoomInfo->zoom;
-
-       pNormalView->fZoomValue = pNormalView->fZoomValue * fVal;
-
-       if (pNormalView->fZoomValue < 1.0) {
-               pNormalView->fZoomValue = 1.0;
-       } else if (pNormalView->fZoomValue > 3.0) {
-               pNormalView->fZoomValue = 3.0;
-       }
-
-       _vp_play_normal_view_on_zoom_mode(pNormalView);
-
-       pNormalView->nPrevZoomPosX = 0;
-       pNormalView->nPrevZoomPosY = 0;
-       pNormalView->fPrevZoomValue = 0;
-
-       return EVAS_EVENT_FLAG_ON_HOLD;
-}
-
-static Evas_Event_Flags __vp_normal_gesture_zoom_abort_cb(void *pUserData, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       return EVAS_EVENT_FLAG_ON_HOLD;
-}
-#endif
-
-
-static Evas_Event_Flags __vp_normal_gesture_double_click_start_cb(void *pUserData, void *pEventInfo)
-{
-       VideoLogInfo("");
-
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       return EVAS_EVENT_FLAG_ON_HOLD;
-}
-
-static Evas_Event_Flags __vp_normal_gesture_double_click_end_cb(void *pUserData, void *pEventInfo)
-{
-       VideoLogInfo("");
-
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       Elm_Gesture_Taps_Info *pEvent = (Elm_Gesture_Taps_Info *) pEventInfo;
-
-       if (pNormalView->bZoomEnable && pEvent->n == 1) {
-               pNormalView->fZoomValue = 1.0;
-#ifdef ENABLE_GESTURE_ZOOM_FEATURE
-               _vp_play_normal_view_on_zoom_mode(pNormalView);
-#endif
-       }
-       else if (pEvent->n == 1) {
-
-               if (pNormalView->bLockScreen) {
-                       _vp_play_normal_view_show_layout(pNormalView);
-               } else {
-                       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-                       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                               VideoLogWarning("vp_mm_player_get_state is fail");
-                       }
-                       if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-                               vp_mm_player_pause(pNormalView->pPlayerHandle);
-                               pNormalView->bManualPause = TRUE;
-                       }
-                       else {
-                               bool bSpeedMode = FALSE;
-
-                               if (pNormalView->pSpeedTimer) {
-                                       bSpeedMode = TRUE;
-                               }
-                               VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-                               VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-                               VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-
-                               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-
-                               if (bSpeedMode) {
-                                       int nPosition = 0;
-                                       if (vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-                                               VideoLogDebug("nPosition[%d], curPosition[%d]", nPosition, pNormalView->nCurPosition);
-
-                                               if (vp_mm_player_set_position(pNormalView->pPlayerHandle, pNormalView->nCurPosition)) {
-                                                       pNormalView->bSeekComplete = FALSE;
-                                                       pNormalView->nWaitPos = -1;
-                                               }else {
-                                                       pNormalView->nWaitPos = nPosition;
-                                               }
-                                       }
-                               }
-
-                               pNormalView->nSpeedValue = 1;
-                               pNormalView->bSpeedDown = TRUE;
-
-                               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                                       VideoLogWarning("Resume Fail");
-                               }
-                               VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
-                               pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
-
-                               pNormalView->bManualPause = FALSE;
-                       }
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-               }
-
-       }
-
-       return EVAS_EVENT_FLAG_ON_HOLD;
-}
-
-static Evas_Event_Flags __vp_normal_gesture_double_click_abort_cb(void *pUserData, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pEventInfo) {
-               VideoLogError("pEventInfo is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       return EVAS_EVENT_FLAG_ON_HOLD;
-}
-
-#ifdef FLICK_JUMP
-static Evas_Event_Flags __vp_normal_gesture_flick_start_cb(void *pUserData, void *event_info)
-{
-       Elm_Gesture_Line_Info *pEvent = (Elm_Gesture_Line_Info *) event_info;
-
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-
-       VideoLogWarning("flick started");
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (pNormalView->bFlickWaiting == TRUE) {
-               VideoLogWarning("seek is not complete. ignore signal");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (!pNormalView->pFlickJumpSeek) {
-               pNormalView->nFlickPressX1 = pEvent->momentum.x1;
-               pNormalView->nFlickPressY1 = pEvent->momentum.y1;
-       }
-
-       return EVAS_EVENT_FLAG_NONE;
-}
-
-static Eina_Bool __vp_normal_flickjump_seek(void *pUserData, bool rewind)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-       VideoLogWarning("");
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       int nSetPosition = 0;
-       int nCurPosition = 0;
-
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nCurPosition)) {
-               VideoLogError("vp_mm_player_get_position is fail");
-               return EINA_TRUE;
-       }
-
-       if (rewind) {
-               if (nCurPosition - 5000 < 0) {
-                       nSetPosition = 0;
-               } else {
-                       nSetPosition = nCurPosition - 5000;
-               }
-       }
-       else {
-               if (nCurPosition + 5000 > pNormalView->nDuration) {
-                       nSetPosition = pNormalView->nDuration;
-               } else {
-                       nSetPosition = nCurPosition + 5000;
-               }
-       }
-
-       pNormalView->bFlickWaiting = TRUE;
-
-       if (vp_mm_player_set_position(pNormalView->pPlayerHandle, nSetPosition)) {
-               pNormalView->nWaitPos = -1;
-               pNormalView->bSeekComplete = FALSE;
-               pNormalView->nCurPosition = nSetPosition;
-               vp_play_progressbar_set_position(pNormalView->pProgressbar, nSetPosition);
-       }
-
-       return EINA_TRUE;
-}
-
-static void __vp_normal_flickjump_seek_del_cb(void *pUserData, Evas * e, Evas_Object *obj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       evas_object_event_callback_del(obj, EVAS_CALLBACK_DEL, __vp_normal_flickjump_seek_del_cb);
-       NormalView *pNormalView = (NormalView *)pUserData;
-       pNormalView->pFlickJumpSeek = NULL;
-}
-
-static void __vp_normal_flickjump_layout_position(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       if (pNormalView->pFlickJumpSeek) {
-               int nFlickSeekImageWidth = 80;
-               int nFlickSeekImageHeight = 60;
-               int nFlickSeekLeftMargin = 8;
-               int nScreenWidth = 0;
-               int nScreenHeight = 0;
-               if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-                       nScreenWidth = 1280;
-                       nScreenHeight = 720;
-               } else {
-                       nScreenWidth = 720;
-                       nScreenHeight = 1280;
-               }
-               if (pNormalView->bFlickRewind == FALSE)
-                       evas_object_move(pNormalView->pFlickJumpSeek, nScreenWidth - (nFlickSeekLeftMargin+nFlickSeekImageWidth/2), (nScreenHeight-nFlickSeekImageHeight/2)/2);
-               else
-                       evas_object_move(pNormalView->pFlickJumpSeek, nFlickSeekLeftMargin+nFlickSeekImageWidth/2, (nScreenHeight-nFlickSeekImageHeight/2)/2);
-       }
-}
-
-static void __vp_normal_gesture_flick_animation_done_cb(void *data, Evas_Object * obj, const char *emission, const char *source)
-{
-       if (!data) {
-               VideoLogError("data is NULL");
-               return;
-       }
-       NormalView *pNormalView = (NormalView *)data;
-
-       if (emission)
-       {
-               if (!g_strcmp0(emission, "rew_animation_done") || !g_strcmp0(emission, "ff_animation_done"))
-               {
-                       if (pNormalView->bFlickWaiting == TRUE) {
-                               if (pNormalView->bFlickRewind == TRUE) {
-                                       if (pNormalView->pFlickJumpSeek)
-                                               elm_object_signal_emit(pNormalView->pFlickJumpSeek, VP_NORMAL_SIGNAL_FLICKJUMP_FF, "*");
-                               } else {
-                                       if (pNormalView->pFlickJumpSeek)
-                                               elm_object_signal_emit(pNormalView->pFlickJumpSeek, VP_NORMAL_SIGNAL_FLICKJUMP_REW, "*");
-                               }
-                       } else {
-                               VP_EVAS_DEL(pNormalView->pFlickJumpSeek);
-                       }
-               }
-       }
-}
-
-static Evas_Event_Flags __vp_normal_gesture_flick_end_cb(void *pUserData, void *event_info)
-{
-       Elm_Gesture_Line_Info *pEvent = (Elm_Gesture_Line_Info *) event_info;
-
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       VideoLogWarning("gesture flick end");
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (pNormalView->bLockScreen) {
-               VideoLogError("Skip for lock mode");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (pNormalView->pFlickJumpSeek || pNormalView->nFlickPressX1 == 0 || pNormalView->nFlickPressY1 == 0) {
-               VideoLogWarning("seek is not complete. ignore signal");
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (pNormalView->fZoomValue > 1.0) {
-               VideoLogWarning("Current zoom level : [%f]", pNormalView->fZoomValue);
-               return EVAS_EVENT_FLAG_NONE;
-       }
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB &&
-                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW &&
-                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MESSAGE &&
-                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL &&
-                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-                       VideoLogWarning("pNormalView->nLaunchingType : [%d]. not support gesture flick in this mode", pNormalView->nLaunchingType);
-                       return EVAS_EVENT_FLAG_NONE;
-       }
-
-       pNormalView->pFlickJumpSeek = elm_layout_add(pNormalView->pMainLayout);
-       elm_layout_file_set(pNormalView->pFlickJumpSeek, VP_PLAY_NORMAL_MAIN_EDJ, VP_PLAY_EDJ_GROUP_FLICKJUMP_SEEK);
-       evas_object_size_hint_weight_set(pNormalView->pFlickJumpSeek, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-       evas_object_size_hint_align_set(pNormalView->pFlickJumpSeek, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_event_callback_add(pNormalView->pFlickJumpSeek, EVAS_CALLBACK_DEL, __vp_normal_flickjump_seek_del_cb, (void *)pNormalView);
-       edje_object_signal_callback_add(_EDJ(pNormalView->pFlickJumpSeek), "*", "*", __vp_normal_gesture_flick_animation_done_cb, (void *)pNormalView);
-       evas_object_hide(pNormalView->pFlickJumpSeek);
-
-       if (pNormalView->nFlickPressX1 > pEvent->momentum.x2) {
-               pNormalView->bFlickRewind = TRUE;
-               elm_object_signal_emit(pNormalView->pFlickJumpSeek, VP_NORMAL_SIGNAL_FLICKJUMP_FF, "*");
-               __vp_normal_flickjump_layout_position(pNormalView);
-               __vp_normal_flickjump_seek(pNormalView, TRUE);
-       } else if (pNormalView->nFlickPressX1 < pEvent->momentum.x2) {
-               pNormalView->bFlickRewind = FALSE;
-               elm_object_signal_emit(pNormalView->pFlickJumpSeek, VP_NORMAL_SIGNAL_FLICKJUMP_REW, "*");
-               __vp_normal_flickjump_layout_position(pNormalView);
-               __vp_normal_flickjump_seek(pNormalView, FALSE);
-       }
-
-       char *szTxt = NULL;
-       char *szPdSECS = VP_PLAY_STRING_PD_SECS;
-       szTxt = g_strdup_printf(szPdSECS, 5);
-
-       if (pNormalView->bFlickRewind == FALSE) {
-               elm_object_part_text_set(pNormalView->pFlickJumpSeek, VP_PLAY_PART_FLICKJUMP_SEEK_REW_TEXT, szTxt);
-       } else {
-               elm_object_part_text_set(pNormalView->pFlickJumpSeek, VP_PLAY_PART_FLICKJUMP_SEEK_FF_TEXT, szTxt);
-       }
-       VP_FREE(szTxt);
-
-       evas_object_show(pNormalView->pFlickJumpSeek);
-
-       pNormalView->nFlickPressX1 = 0;
-       pNormalView->nFlickPressY1 = 0;
-
-
-       return EVAS_EVENT_FLAG_NONE;
-}
-
-static Evas_Event_Flags __vp_normal_gesture_flick_abort_cb(void *pUserData, void *event_info)
-{
-       VideoLogWarning("flick abort");
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (pNormalView->bFlickWaiting == FALSE) {
-               pNormalView->nFlickPressX1 = 0;
-               pNormalView->nFlickPressY1 = 0;
-       }
-
-       return EVAS_EVENT_FLAG_NONE;
-}
-#endif // FLICK_JUMP
-
-#ifdef K_FEATURE_MICROSEEK
-static void __vp_normal_progress_microseek_textlayout_del_cb(void *pUserData, Evas * e, Evas_Object *obj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       evas_object_event_callback_del(obj, EVAS_CALLBACK_DEL, __vp_normal_progress_microseek_textlayout_del_cb);
-       NormalView *pNormalView = (NormalView *)pUserData;
-       pNormalView->pMicroSeekTextLayout = NULL;
-}
-
-static void __vp_normal_progress_microseek_imagelayout_del_cb(void *pUserData, Evas * e, Evas_Object *obj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       evas_object_event_callback_del(obj, EVAS_CALLBACK_DEL, __vp_normal_progress_microseek_imagelayout_del_cb);
-       NormalView *pNormalView = (NormalView *)pUserData;
-       pNormalView->pMicroSeekImageLayout = NULL;
-}
-
-#endif
-
-static void __vp_normal_progress_mouse_down_cb(void *pUserData, Evas * e, Evas_Object *pObj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VideoLogWarning("Mouse Down");
-
-       if (pNormalView->bIsRealize == FALSE) {
-               VideoLogWarning("Skip for not realized");
-               return;
-       }
-
-       if (pNormalView->bHLSMode) {
-               VideoLogWarning("Skip for HLS");
-               return;
-       }
-
-       Evas_Event_Mouse_Down *pMouseDownEvent = (Evas_Event_Mouse_Down *)pEvent;
-
-       double dRatio = _vp_play_normal_view_get_mouse_pos_ratio(pNormalView->pProgressEvent, pMouseDownEvent->canvas.x);
-       elm_object_signal_emit(pNormalView->pProgressEvent, VP_NORMAL_SIGNAL_PROGRESS_PRESS, "*");
-
-       VP_EVAS_TIMER_DEL(pNormalView->pProgressTimer);
-       pNormalView->pProgressTimer = NULL;
-
-       int nCurPos = dRatio * pNormalView->nDuration;
-
-#ifdef K_FEATURE_MICROSEEK
-       pNormalView->nPrevCanvasX = (double)pMouseDownEvent->canvas.x;
-       pNormalView->nPrevPositionX = (double)pNormalView->nPrevCanvasX;
-
-       VP_EVAS_DEL(pNormalView->pMicroSeekTextLayout);
-
-       pNormalView->pMicroSeekTextLayout = elm_layout_add(pNormalView->pMainLayout);
-       elm_layout_file_set(pNormalView->pMicroSeekTextLayout, VP_PLAY_NORMAL_MAIN_EDJ, VP_PLAY_EDJ_GROUP_MICROSEEK_TEXT);
-       evas_object_size_hint_weight_set(pNormalView->pMicroSeekTextLayout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-       evas_object_size_hint_align_set(pNormalView->pMicroSeekTextLayout, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_event_callback_add(pNormalView->pMicroSeekTextLayout, EVAS_CALLBACK_DEL, __vp_normal_progress_microseek_textlayout_del_cb, (void *)pNormalView);
-       evas_object_hide(pNormalView->pMicroSeekTextLayout);
-
-       pNormalView->pMicroSeekImageLayout = elm_layout_add(pNormalView->pMainLayout);
-       elm_layout_file_set(pNormalView->pMicroSeekImageLayout, VP_PLAY_NORMAL_MAIN_EDJ, VP_PLAY_EDJ_GROUP_MICROSEEK_IMAGE);
-       evas_object_size_hint_weight_set(pNormalView->pMicroSeekImageLayout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-       evas_object_size_hint_align_set(pNormalView->pMicroSeekImageLayout, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_event_callback_add(pNormalView->pMicroSeekImageLayout, EVAS_CALLBACK_DEL, __vp_normal_progress_microseek_imagelayout_del_cb, (void *)pNormalView);
-       evas_object_hide(pNormalView->pMicroSeekImageLayout);
-
-#endif
-
-       vp_play_progressbar_set_position(pNormalView->pProgressbar, nCurPos);
-
-       pNormalView->bProgressDown = TRUE;
-
-       if (vp_play_util_check_streaming(pNormalView->szMediaURL)) {
-               if (pNormalView->bManualPause == FALSE) {
-                       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-                       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                               VideoLogWarning("vp_mm_player_get_state is fail");
-                       }
-                       if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-                               vp_mm_player_pause(pNormalView->pPlayerHandle);
-                               _vp_play_normal_view_set_play_state(pNormalView);
-                               _vp_play_normal_view_on_capture_mode(pNormalView);
-                       }
-               }
-
-               return;
-       }  else {
-               if (pNormalView->bManualPause == FALSE) {
-                       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-                       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                               VideoLogWarning("vp_mm_player_get_state is fail");
-                       }
-                       VideoLogInfo("nState:%d", nState);
-                       if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-                               vp_mm_player_pause(pNormalView->pPlayerHandle);
-                       }
-               }
-       }
-}
-
-static void __vp_normal_progress_mouse_up_cb(void *pUserData, Evas * e, Evas_Object *pObj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       NormalView *pNormalView = (NormalView *)pUserData;
-#ifdef K_FEATURE_MICROSEEK
-#else
-       Evas_Event_Mouse_Up *pMouseUpEvent = (Evas_Event_Mouse_Up *)pEvent;
-#endif
-
-       VideoLogWarning("Mouse Up");
-       if (pNormalView->bIsRealize == FALSE || pNormalView->bProgressDown == FALSE) {
-               VideoLogWarning("Skip for not realized or prgress down");
-               return;
-       }
-       if (pNormalView->bHLSMode) {
-               VideoLogWarning("Skip for HLS");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-#ifdef K_FEATURE_MICROSEEK
-       double dRatio = _vp_play_normal_view_get_mouse_pos_ratio(pNormalView->pProgressEvent, pNormalView->nPrevPositionX);
-#else
-       double dRatio = _vp_play_normal_view_get_mouse_pos_ratio(pNormalView->pProgressEvent, pMouseUpEvent->canvas.x);
-#endif
-       elm_object_signal_emit(pNormalView->pProgressEvent, VP_NORMAL_SIGNAL_PROGRESS_UNPRESS, "*");
-       if (fabs(dRatio - 1.0) < 1.0e-6) {
-               VideoLogWarning("It is the end of the video!");
-               __vp_normal_completed_cb(pNormalView);
-               return;
-       }
-
-       int nCurPos = dRatio * pNormalView->nDuration;
-
-#ifdef K_FEATURE_MICROSEEK
-       VP_EVAS_DEL(pNormalView->pMicroSeekTextLayout);
-       VP_EVAS_DEL(pNormalView->pMicroSeekImageLayout);
-
-       pNormalView->nPrevCanvasX = 0.0;
-       pNormalView->nPrevPositionX = 0.0;
-#endif
-
-       vp_play_progressbar_set_position(pNormalView->pProgressbar, nCurPos);
-
-       pNormalView->bProgressDown = FALSE;
-
-       if (vp_play_util_check_streaming(pNormalView->szMediaURL)) {
-               if (pNormalView->bSeekComplete == FALSE) {
-                       pNormalView->nWaitPos = nCurPos;
-                       VideoLogWarning("== REAL SEEK SET == [%d]", pNormalView->nWaitPos);
-               }
-               else {
-                       VideoLogWarning("== REAL SEEK == [%d]", nCurPos);
-
-                       pNormalView->bBufferingComplete = TRUE;
-
-                       if (vp_mm_player_set_position(pNormalView->pPlayerHandle, nCurPos)) {
-                               pNormalView->nWaitPos = -1;
-                               pNormalView->bSeekComplete = FALSE;
-                               if (pNormalView->pLoadingAni) {
-                                       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-                                       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-                               }
-                       } else {
-                               _vp_play_normal_view_update_progress_value(pNormalView);
-                       }
-               }
-
-               return;
-       }
-
-       if (pNormalView->bSeekComplete == FALSE) {
-               pNormalView->nWaitPos = nCurPos;
-               VideoLogWarning("== REAL SEEK SET == [%d]", pNormalView->nWaitPos);
-       }
-       else {
-               VideoLogWarning("== REAL SEEK == [%d]", nCurPos);
-               if (vp_mm_player_set_position(pNormalView->pPlayerHandle, nCurPos)) {
-                       pNormalView->nWaitPos = -1;
-                       pNormalView->bSeekComplete = FALSE;
-                       if (pNormalView->pLoadingAni) {
-                               VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-                               VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-                       }
-               } else {
-                       _vp_play_normal_view_update_progress_value(pNormalView);
-               }
-       }
-
-}
-
-static void __vp_normal_progress_del_cb(void *pUserData, Evas * e, Evas_Object *pObj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       VideoLogError("pNormalView->pProgressEvent is free");
-       NormalView *pNormalView = (NormalView *)pUserData;
-       pNormalView->pProgressEvent = NULL;
-}
-
-
-static void __vp_normal_progress_mouse_move_cb(void *pUserData, Evas * e, Evas_Object *pObj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       Evas_Event_Mouse_Move *pMouseMoveEvent = (Evas_Event_Mouse_Move *)pEvent;
-       if (pNormalView->bHLSMode) {
-               VideoLogWarning("Skip for HLS");
-               return;
-       }
-
-       if (pNormalView->bIsRealize == FALSE || pNormalView->bProgressDown == FALSE) {
-               VideoLogWarning("Skip for not realized or prgress down");
-               return;
-       }
-
-       if (pNormalView->bLockScreen) {
-               VideoLogError("Skip for lock mode");
-               __vp_normal_progress_mouse_up_cb(pUserData, NULL, NULL, pEvent);
-               return;
-       }
-
-       if (pNormalView->bProgressDown == FALSE || pNormalView->bIsRealize == FALSE) {
-               VideoLogWarning("Skip for not realized or prgress down");
-               return;
-       }
-
-#ifdef K_FEATURE_MICROSEEK
-       bool bLandscape = FALSE;
-       int nScreenWidth = 0;
-       int nScreenHeight = 0;
-       int nControllerHeight = 0;
-       int nSeek_Height = 0;
-       if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-               bLandscape = TRUE;
-               nScreenWidth = 1280;
-               nScreenHeight = 720;
-               nControllerHeight = 180;
-               nSeek_Height = (VP_NORMAL_MICROSEEK_TEXT_HEIGHT + ((6 + 70 + 40) * elm_config_scale_get()));
-       } else {
-               nScreenWidth = 720;
-               nScreenHeight = 1280;
-               nControllerHeight = 293;
-               nSeek_Height = (VP_NORMAL_MICROSEEK_TEXT_HEIGHT + ((6 + 70 + 20) * elm_config_scale_get()));
-       }
-
-//     VideoLogWarning("canvas.x[%d] canvas.y[%d]", pMouseMoveEvent->cur.canvas.x, pMouseMoveEvent->cur.canvas.y);
-
-       double dDistance = 0;
-       SeekLevel Level = SEEK_LEVEL_NORMAL;
-       dDistance = (pMouseMoveEvent->cur.canvas.x - pNormalView->nPrevCanvasX);
-
-       if (pMouseMoveEvent->cur.canvas.y > (nScreenHeight-nControllerHeight)) {
-               Level = SEEK_LEVEL_NORMAL;
-       } else if (pMouseMoveEvent->cur.canvas.y > (nScreenHeight-nControllerHeight-nSeek_Height)) {
-               Level = SEEK_LEVEL_HALF;
-               dDistance = dDistance/2;
-       } else {
-               Level = SEEK_LEVEL_QUARTER;
-               dDistance = dDistance/4;
-       }
-
-       pNormalView->nPrevCanvasX = (double)pMouseMoveEvent->cur.canvas.x;
-
-       // Calc position
-       if (Level == SEEK_LEVEL_NORMAL) {
-               pNormalView->nPrevPositionX = (double)pMouseMoveEvent->cur.canvas.x;
-       } else {
-               pNormalView->nPrevPositionX = pNormalView->nPrevPositionX + dDistance;
-       }
-
-
-       if (Level == SEEK_LEVEL_NORMAL) {
-               if (pNormalView->pMicroSeekTextLayout) {
-                       elm_object_signal_emit(pNormalView->pMicroSeekTextLayout, VP_NORMAL_SIGNAL_MICROSEEK_TEXT_HIDE, "*");
-               }
-               if (pNormalView->pMicroSeekImageLayout) {
-                       elm_object_signal_emit(pNormalView->pMicroSeekImageLayout, VP_NORMAL_SIGNAL_MICROSEEK_IMAGE_HIDE, "*");
-               }
-       } else {
-               Evas_Coord nTextWidth = -1, nTextHeight = -1;
-               // Text  Layout move
-               if (pNormalView->pMicroSeekTextLayout) {
-                       char *szTxt = NULL;
-                       char *szPsSpeed = VP_PLAY_STRING_SCRUBBING_AT_PSX_SPEED;
-
-                       if (Level == SEEK_LEVEL_HALF) {
-                               szTxt = g_strdup_printf(szPsSpeed, VP_NORMAL_SZ_HALF_SPEED);
-                       } else if (Level == SEEK_LEVEL_QUARTER) {
-                               szTxt = g_strdup_printf(szPsSpeed, VP_NORMAL_SZ_QUARTER_SPEED);
-                       }
-
-                       elm_object_part_text_set(pNormalView->pMicroSeekTextLayout, VP_NORMAL_SIGNAL_MICROSEEK_SPEED_TEXT, szTxt);
-                       edje_object_size_min_restricted_calc(_EDJ(pNormalView->pMicroSeekTextLayout), &nTextWidth, &nTextHeight, nTextWidth, nTextHeight);
-                       evas_object_resize(pNormalView->pMicroSeekTextLayout, nTextWidth, nTextHeight);
-
-                       int nTextPositionX = (int)pNormalView->nPrevPositionX - nTextWidth/2;
-
-                       if (nTextPositionX <0)
-                               nTextPositionX = 0;
-                       else if (nTextPositionX + nTextWidth > nScreenWidth) {
-                               nTextPositionX = nScreenWidth - nTextWidth;
-                       }
-
-                       if (Level == SEEK_LEVEL_HALF) {
-                               evas_object_move(pNormalView->pMicroSeekTextLayout, nTextPositionX, nScreenHeight-nControllerHeight-nSeek_Height);
-                       } else if (Level == SEEK_LEVEL_QUARTER) {
-                               evas_object_move(pNormalView->pMicroSeekTextLayout, nTextPositionX, nScreenHeight-nControllerHeight-nSeek_Height*2);
-                       }
-                       elm_object_signal_emit(pNormalView->pMicroSeekTextLayout, VP_NORMAL_SIGNAL_MICROSEEK_TEXT_SHOW, "*");
-                       evas_object_show(pNormalView->pMicroSeekTextLayout);
-
-                       VP_FREE(szTxt);
-
-                       // Image  Layout move
-                       if (pNormalView->pMicroSeekImageLayout) {
-                               Evas_Coord nImageWidth = -1, nImageHeight = -1;
-                               edje_object_size_min_restricted_calc(_EDJ(pNormalView->pMicroSeekImageLayout), &nImageWidth, &nImageHeight, nImageWidth, nImageHeight);
-                               evas_object_resize(pNormalView->pMicroSeekImageLayout, nImageWidth, nImageHeight);
-
-                               int nImagePositionX = (int)pNormalView->nPrevPositionX - nImageWidth/2;
-
-                               int nImageLeftPadding = 0;
-                               int nImageRightPadding = 0;
-                               if (bLandscape) {
-                                       nImageLeftPadding = 28+112;
-                                       nImageRightPadding = 28+162;
-                               } else {
-                                       nImageLeftPadding = 6;
-                                       nImageRightPadding = 26;
-                               }
-
-                               if (nImagePositionX < nImageLeftPadding)
-                                       nImagePositionX = nImageLeftPadding;
-                               else if (nImagePositionX > nScreenWidth-nImageRightPadding) {
-                                       nImagePositionX = nScreenWidth-nImageRightPadding;
-                               }
-
-                               if (Level == SEEK_LEVEL_HALF) {
-                                       evas_object_move(pNormalView->pMicroSeekImageLayout, nImagePositionX, nScreenHeight-nControllerHeight-nSeek_Height + nTextHeight + 6);
-                               } else if (Level == SEEK_LEVEL_QUARTER) {
-                                       evas_object_move(pNormalView->pMicroSeekImageLayout, nImagePositionX, nScreenHeight-nControllerHeight-nSeek_Height*2 + nTextHeight + 6);
-                               }
-                               elm_object_signal_emit(pNormalView->pMicroSeekImageLayout, VP_NORMAL_SIGNAL_MICROSEEK_IMAGE_SHOW, "*");
-                               evas_object_show(pNormalView->pMicroSeekImageLayout);
-                       }
-               }
-       }
-
-       double dRatio = _vp_play_normal_view_get_mouse_pos_ratio(pNormalView->pProgressEvent, (int)pNormalView->nPrevPositionX , bLandscape);
-
-#else
-
-       double dRatio = _vp_play_normal_view_get_mouse_pos_ratio(pNormalView->pProgressEvent, pMouseMoveEvent->cur.canvas.x);
-#endif
-       int nCurPos = dRatio * pNormalView->nDuration;
-
-       vp_play_progressbar_set_position(pNormalView->pProgressbar, nCurPos);
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-                       return;
-       }
-
-       if (pNormalView->bSeekComplete == FALSE) {
-               pNormalView->nWaitPos = nCurPos;
-       }
-       else {
-               VideoLogWarning("== I FRMAE SEEK == [%d]", nCurPos);
-               if (vp_mm_player_set_position_by_key_frame(pNormalView->pPlayerHandle, nCurPos)) {
-                       pNormalView->nWaitPos = -1;
-                       pNormalView->bSeekComplete = FALSE;
-               }
-       }
-}
-
-static void __vp_normal_focus_key_down_cb(void *pUserData, Evas * e, Evas_Object *pObj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       Evas_Event_Key_Down *ev = pEvent;
-
-       if (!ev)
-               return;
-       if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
-               return;
-
-       VideoLogInfo("KEY: %s", ev->keyname);
-
-       if (!strcmp(ev->keyname, "Left")) {
-               if (pNormalView->bKeySpeed == FALSE) {
-                       vp_play_normal_view_ff_rew_keyboard_longpress_event_cb(pPlayView->pNormalView, FALSE, FALSE);
-                       pNormalView->bKeySpeed = TRUE;
-               }
-       } else if (!strcmp(ev->keyname, "Right")) {
-               if (pNormalView->bKeySpeed == FALSE) {
-                       vp_play_normal_view_ff_rew_keyboard_longpress_event_cb(pPlayView->pNormalView, FALSE, TRUE);
-                       pNormalView->bKeySpeed = TRUE;
-               }
-       }
-}
-
-static void __vp_normal_focus_key_up_cb(void *pUserData, Evas * e, Evas_Object *pObj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       Evas_Event_Key_Down *ev = pEvent;
-
-       if (!ev)
-               return;
-       if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
-               return;
-
-       VideoLogInfo("KEY: %s", ev->keyname);
-
-       if (!strcmp(ev->keyname, "Left")) {
-               if (pNormalView->bKeySpeed == TRUE) {
-                       vp_play_normal_view_ff_rew_keyboard_longpress_event_cb(pPlayView->pNormalView, TRUE, FALSE);
-                       pNormalView->bKeySpeed = FALSE;
-               }
-       } else if (!strcmp(ev->keyname, "Right")) {
-               if (pNormalView->bKeySpeed == TRUE) {
-                       vp_play_normal_view_ff_rew_keyboard_longpress_event_cb(pPlayView->pNormalView, TRUE, TRUE);
-                       pNormalView->bKeySpeed = FALSE;
-               }
-       }
-}
-
-static void __vp_normal_bookmark_capture_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       int nCount = 0;
-
-       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &(pNormalView->nCapturePosition))) {
-               VideoLogError("vp_mm_player_get_position is fail");
-       }
-
-       if (pNormalView->bCaptureComplete == FALSE) {
-               VideoLogWarning("Not Complete capture");
-               return;
-       }
-
-       if (!vp_play_bookmark_get_item_count(pNormalView->pBookmarkHandle, &nCount)) {
-               VideoLogWarning("vp_play_bookmark_get_item_count is fail");
-               return;
-       }
-
-       if (nCount > VP_BOOKMARK_ITEM_MAX_COUNT - 1) {
-               VideoLogWarning("Skip for max item count");
-               PlayView *pPlayView = pNormalView->pPlayView;
-               if (!pPlayView) {
-                       VideoLogError("pPlayView is NULL");
-                       return;
-               }
-
-               VP_EVAS_DEL(pNormalView->pPopup);
-               pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_BOOKMARK_LIST_FULL,
-                                                               3.0, __vp_normal_popup_time_out_cb,
-                                                               NULL, NULL,
-                                                               pNormalView);
-               evas_object_show(pNormalView->pPopup);
-               pNormalView->bIsPopupShow = TRUE;
-
-               return;
-       }
-
-       unsigned long long lAvailableSpace = vp_play_util_get_disk_available_space(VP_PLAY_DATA_DIR);
-
-       if (lAvailableSpace < VP_MB(100)) {
-               VideoLogWarning("Skip for not enough memory");
-               PlayView *pPlayView = pNormalView->pPlayView;
-               if (!pPlayView) {
-                       VideoLogError("pPlayView is NULL");
-                       return;
-               }
-
-               VP_EVAS_DEL(pNormalView->pPopup);
-               pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_COM_ENOUGH_MEMORY,
-                                                               3.0, __vp_normal_popup_time_out_cb,
-                                                               NULL, NULL,
-                                                               pNormalView);
-               evas_object_show(pNormalView->pPopup);
-               pNormalView->bIsPopupShow = TRUE;
-
-               return;
-       }
-
-       pNormalView->bCaptureComplete = FALSE;
-       pNormalView->bCaptureBookmark = TRUE;
-       if (!vp_mm_player_capture_start(pNormalView->pPlayerHandle)) {
-               pNormalView->bCaptureComplete = TRUE;
-               VideoLogError("vp_mm_player_capture_start fail");
-       }
-}
-
-static void __vp_normal_bookmark_item_select_cb(int nPos, const char *szPath, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (nPos == -1 && szPath == NULL) {
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-               return;
-       }
-
-       if (pNormalView->bSeekComplete == FALSE) {
-               pNormalView->nWaitPos = nPos;
-       }
-       else {
-               if (vp_mm_player_set_position(pNormalView->pPlayerHandle, nPos)) {
-                       pNormalView->nWaitPos = -1;
-                       pNormalView->bSeekComplete = FALSE;
-
-                       if (pNormalView->pLoadingAni) {
-                               VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-                               VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-                       }
-                       vp_play_progressbar_set_position(pNormalView->pProgressbar, nPos);
-               }
-       }
-
-       _vp_play_normal_view_show_layout(pNormalView);
-}
-
-static Eina_Bool __vp_normal_hide_layout_timer_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-       VideoLogWarning("");
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       pNormalView->pHideTimer = NULL;
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (nState != VP_MM_PLAYER_STATE_PLAYING) {
-               return EINA_FALSE;
-       }
-
-       _vp_play_normal_view_hide_layout(pNormalView, FALSE);
-
-       return EINA_FALSE;
-}
-
-static Eina_Bool __vp_normal_hide_layout_finish_timer_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-       VideoLogWarning("");
-       NormalView *pNormalView = (NormalView *)pUserData;
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (pNormalView->pSubtitleTimer) {
-               VideoLogError("Skip for Subtitle");
-               return EINA_TRUE;
-       }
-
-       if (pNormalView->pVolumeJob) {
-               VideoLogError("Skip for pVolumeJob");
-               return EINA_TRUE;
-       }
-
-       if (pNormalView->pBrightnessJob) {
-               VideoLogError("Skip for pBrightnessJob");
-               return EINA_TRUE;
-       }
-
-       pNormalView->pHideFinishTimer = NULL;
-
-       if (pNormalView->pImageBufferObj == NULL &&
-               pNormalView->bIsPopupShow == FALSE &&
-               pNormalView->bIsSubtitleShow == FALSE &&
-               pPlayView->bMouseOut == FALSE &&
-               pNormalView->bVideoOnlyMode == FALSE &&
-               pNormalView->bCaptureMode == FALSE) {
-               vp_play_util_fb_visible_off(pPlayView->pWin, FALSE);
-       }
-       vp_device_set_frame_rate(40);
-
-       return EINA_FALSE;
-}
-
-static Eina_Bool __vp_normal_subtitle_timer_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       int nPosition = 0;
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-               VideoLogError("vp_mm_player_get_position is fail");
-       }
-
-       if (nPosition > pNormalView->dSubtitleStartTime &&
-               nPosition < pNormalView->dSubtitleEndTime) {
-               return EINA_TRUE;
-       }
-
-       pNormalView->pSubtitleTimer = NULL;
-
-       vp_play_subtitle_set_text(pNormalView->pSubtitle, NULL);
-
-       return EINA_FALSE;
-}
-
-static Eina_Bool __vp_normal_screenshot_timer_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-       VideoLogWarning("");
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pScreenShot);
-       pNormalView->pScreenShot = NULL;
-
-       elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_SCREENSHOT_PORTRAIT);
-       elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_SCREENSHOT_LANDSCAPE);
-
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SCREEN_HIDE, "*");
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_ROTATE_HIDE, "*");
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_VOLUME_HIDE, "*");
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_PLAYING_SPEED_HIDE, "*");
-
-       pNormalView->pScreenShotTimer = NULL;
-
-       return EINA_FALSE;
-}
-
-
-static Eina_Bool __vp_normal_dlna_speed_timer_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-       VideoLogWarning("");
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pPopup);
-       pNormalView->pPopup = NULL;
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-
-               pNormalView->pSpeedTimer = NULL;
-               return EINA_FALSE;
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_WITH_CANCEL_BTN,
-                                               NULL,
-                                               VP_PLAY_STRING_UNABLE_TO_FF_REW,
-                                               0.0, NULL,
-                                               __vp_normal_popup_key_event_cb,
-                                               __vp_normal_popup_mouse_event_cb,
-                                               pNormalView);
-
-       Evas_Object *pBtn = NULL;
-       pBtn = elm_button_add(pNormalView->pPopup);
-       elm_object_style_set (pBtn, "popup_button/default");
-       elm_object_domain_translatable_text_set(pBtn, VP_SYS_STR_PREFIX, VP_PLAY_STRING_COM_OK_IDS);
-       elm_object_part_content_set(pNormalView->pPopup, "button1", pBtn);
-       evas_object_smart_callback_add(pBtn, "clicked", __vp_normal_popup_key_event_cb, (void*)pNormalView);
-       evas_object_show(pNormalView->pPopup);
-
-       pNormalView->pSpeedTimer = NULL;
-
-       return EINA_FALSE;
-}
-
-
-static Eina_Bool __vp_normal_speed_timer_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-       VideoLogWarning("");
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-
-       if (pNormalView->bSpeedDown) {
-               pNormalView->nSpeedValue++;
-       }
-
-       //SPEED: *2, *8, *32
-       //int nSeedVal = pNormalView->nSpeedValue - (pNormalView->nSpeedValue%2);
-
-       //SPEED: *2, *4, *8, *16, *32
-       int nSeedVal = pNormalView->nSpeedValue;
-
-       int nStep = (int) pow(2.0, (double)(nSeedVal - 1));
-
-       VideoLogWarning("pNormalView->nSpeedValue : %d", pNormalView->nSpeedValue);
-       if (pNormalView->nSpeedValue >= 2) {
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_SHOW, "*");
-       } else {
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-               if (pNormalView->bManualPause == FALSE) {
-                       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-                       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                               VideoLogWarning("vp_mm_player_get_state is fail");
-                       }
-
-                       if (nState != VP_MM_PLAYER_STATE_PLAYING) {
-                               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                                       VideoLogError("Pause Fail");
-                               }
-                               _vp_play_normal_view_set_play_state(pNormalView);
-                               _vp_play_normal_view_on_capture_mode(pNormalView);
-                       }
-                       pNormalView->pSpeedTimer = NULL;
-               }
-
-               return EINA_FALSE;
-       }
-
-       if (nStep > VP_NORMAL_SPEED_VALUE_MAX) {
-               nStep = VP_NORMAL_SPEED_VALUE_MAX;
-       }
-
-       char szTxt[5] = {0,};
-       snprintf(szTxt, 5, "%d X", nStep);
-       elm_object_part_text_set(pNormalView->pMainLayout, VP_PLAY_PART_NORMAL_SPEED_TXT, szTxt);
-
-       if (pNormalView->bSeekComplete == FALSE) {
-               VideoLogError("bSeekComplete is fail");
-               return EINA_TRUE;
-       }
-
-       if (pNormalView->nSpeedValue >1) {
-               // during FAST FF/REW moving(player state is paused). don't allow sleep mode
-               vp_play_util_set_lock_power_key();
-       }
-
-       int nSetPosition = 0;
-       int nCurPosition = 0;
-
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nCurPosition)) {
-               VideoLogError("vp_mm_player_get_position is fail");
-               return EINA_TRUE;
-       }
-
-       if (pNormalView->nDuration <= nCurPosition) {
-               VideoLogWarning("nCurPosition : %d, Duration : %d", nCurPosition, pNormalView->nDuration);
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-               _vp_play_normal_view_on_next_play(pNormalView, FALSE);
-               pNormalView->pSpeedTimer = NULL;
-               return EINA_FALSE;
-       }
-
-       if (nCurPosition <= 0 && pNormalView->bSpeedFF == FALSE) {
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-               if (pNormalView->bManualPause == FALSE && pNormalView->bSpeedDown == FALSE) {
-                       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-                       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                               VideoLogWarning("vp_mm_player_get_state is fail");
-                       }
-
-                       if (nState != VP_MM_PLAYER_STATE_PLAYING) {
-                               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                                       VideoLogError("Pause Fail");
-                               }
-                               _vp_play_normal_view_set_play_state(pNormalView);
-                               _vp_play_normal_view_on_capture_mode(pNormalView);
-                       }
-                       pNormalView->pSpeedTimer = NULL;
-                       return EINA_FALSE;
-               }
-
-               return EINA_TRUE;
-       }
-
-       if (pNormalView->bSpeedFF) {
-               nSetPosition = nCurPosition  + (nStep * 1000);
-       }
-       else {
-               nSetPosition = nCurPosition  - (nStep * 1000);
-       }
-
-       if (pNormalView->nDuration < nSetPosition) {
-               nSetPosition = pNormalView->nDuration;
-               VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-       }
-
-       if (nSetPosition < 0) {
-               nSetPosition = 0;
-               VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-       }
-       if (pNormalView->pProgressTimer)
-               VP_EVAS_TIMER_DEL(pNormalView->pProgressTimer);
-
-       if (vp_mm_player_set_position_by_key_frame(pNormalView->pPlayerHandle, nSetPosition)) {
-               pNormalView->bSeekComplete = FALSE;
-               pNormalView->nCurPosition = nSetPosition;
-               vp_play_progressbar_set_position(pNormalView->pProgressbar, nSetPosition);
-       }
-
-       return EINA_TRUE;
-}
-
-
-
-static void  __vp_normal_show_finish_cb(void *pUserData, Evas_Object *pObj, const char *emission, const char *source)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       VideoLogWarning("");
-
-       //NormalView *pNormalView = (NormalView *)pUserData;
-}
-
-static void  __vp_normal_hide_finish_cb(void *pUserData, Evas_Object *pObj, const char *emission, const char *source)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       VideoLogWarning("");
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-       if (!pPlayView->pWin) {
-               VideoLogError("pPlayView->pWin is NULL");
-               return;
-       }
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-       pNormalView->pHideFinishTimer = ecore_timer_add(VP_NORMAL_HIDE_LAYOUT_FINISH_TIMER_INTERVAL,
-                                               __vp_normal_hide_layout_finish_timer_cb, (void *)pNormalView);
-
-#ifndef SUBTITLE_K_FEATURE
-       if (pNormalView->nDisplayMode != VP_MM_PLAYER_DISPLAY_FULL_SCREEN) {
-               if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_NONE || pNormalView->nRotate == VIDEO_PLAY_ROTATE_180) {
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_PORTRAIT, "*");
-               }
-               else {
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_HIDE, "*");
-               }
-       }
-       else {
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_HIDE, "*");
-       }
-#endif
-}
-
-
-
-static Eina_Bool __vp_normal_progressbar_timer_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (!_vp_play_normal_view_update_progress_value(pNormalView)) {
-               pNormalView->pProgressTimer = NULL;
-               return EINA_FALSE;
-       }
-
-       return EINA_TRUE;
-}
-
-
-static Eina_Bool __vp_normal_lockscreen_timer_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_LOCKSCREEN_HIDE, "*");
-
-       pNormalView->pLockScreenTimer = NULL;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-       return EINA_FALSE;
-}
-
-static Eina_Bool __vp_normal_exit_wait_timer_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       pNormalView->pExitWaitTimer = NULL;
-
-       return EINA_FALSE;
-}
-
-
-static void __vp_normal_prepare_cb(void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       VideoLogWarning("");
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       if (pNormalView->pPreparePipe != NULL) {
-               ecore_pipe_write(pNormalView->pPreparePipe, pNormalView, sizeof(NormalView));
-       }
-}
-
-static void __vp_normal_completed_cb (void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       VideoLogWarning("");
-
-       NormalView      *pNormalView = (NormalView *)pUserData;
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-#ifdef FLICK_JUMP
-       pNormalView->bFlickWaiting = FALSE;
-       VP_EVAS_DEL(pNormalView->pFlickJumpSeek);
-#endif
-
-       if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
-               vp_media_contents_set_played_position(pNormalView->szMediaURL, 0);
-       }
-       else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-               vp_multi_path_set_item_position(pNormalView->szMediaURL, 0, pPlayView->pMultiPathList);
-       }
-
-       vp_mm_player_unrealize(pNormalView->pPlayerHandle);
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MESSAGE ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
-               if (!pPlayView->pFunc) {
-                       VideoLogError("pPlayView pFunc is NULL");
-                       return;
-               }
-
-               if (!pPlayView->pFunc->vp_play_func_exit) {
-                       VideoLogError("pPlayView exit Func is NULL");
-                       return;
-               }
-               vp_device_set_screen_off(FALSE);
-               vp_play_util_set_unlock_power_key();
-
-               VideoLogWarning("== Auto Off ==");
-
-               pPlayView->pFunc->vp_play_func_exit(pPlayView);
-
-               return;
-       }
-
-       _vp_play_normal_view_on_next_play(pNormalView, FALSE);
-}
-
-
-static void __vp_play_normal_view_seek_pipe_cb(void *pUserData, void *pBuf, int nByte)
-{
-       if (!pUserData) {
-               VideoLogError("NormalView handle is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (pNormalView->nWaitPos >= 0) {
-               if (pNormalView->bProgressDown == TRUE) {
-                       VideoLogWarning("== I-FRAME SEEK ==[%d]", pNormalView->nWaitPos);
-                       if (vp_mm_player_set_position_by_key_frame(pNormalView->pPlayerHandle, pNormalView->nWaitPos)) {
-                               pNormalView->bSeekComplete = FALSE;
-                               pNormalView->nWaitPos = -1;
-                               return;
-                       }
-               }
-               else {
-                       VideoLogWarning("== REAL SEEK ==[%d]", pNormalView->nWaitPos);
-                       if (vp_mm_player_set_position(pNormalView->pPlayerHandle, pNormalView->nWaitPos)) {
-                               pNormalView->bSeekComplete = FALSE;
-                               pNormalView->nWaitPos = -1;
-                               return;
-                       }
-               }
-               pNormalView->nWaitPos = -1;
-       }
-}
-
-static void __vp_normal_seek_completed_cb (void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       NormalView *pNormalView = (NormalView *)pUserData;
-       VideoLogWarning("%d", pNormalView->nWaitPos);
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView handle is NULL");
-               return;
-       }
-
-       if (!pPlayView->pWin) {
-               VideoLogError("pPlayView->pWin handle is NULL");
-               return;
-       }
-
-       pNormalView->bSeekComplete = TRUE;
-
-       if (vp_play_util_check_streaming(pNormalView->szMediaURL)) {
-               if (pNormalView->bBufferingComplete == FALSE) {
-                       VideoLogError("Skip for buffering state : buffering complete(false) so, set StartPosition 0");
-                       if (pNormalView->nStartPosition > 0) {
-                               pNormalView->nStartPosition = 0;
-                               pNormalView->bIsRealize = TRUE;
-                       }
-                       return;
-               }
-       }
-#ifdef FLICK_JUMP
-       pNormalView->bFlickWaiting = FALSE;
-#endif
-
-       if (pNormalView->pLoadingAni) {
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-               vp_play_loading_ani_destroy(pNormalView->pLoadingAni);
-               pNormalView->pLoadingAni = NULL;
-       }
-
-       if (pPlayView->bAVRCP) {
-               int nPosition = 0;
-               if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-                       VideoLogError("vp_mm_player_get_position is fail");
-               } else {
-                       vp_avrcp_noti_track_position(nPosition);
-               }
-       }
-
-       if (pNormalView->nStartPosition > 0) {
-               bool bLCDOffStatus = FALSE;
-
-               vp_play_config_get_lcd_off_state(&bLCDOffStatus);
-               if (bLCDOffStatus && (pNormalView->bVideoOnlyMode == FALSE)) {
-                       VideoLogError("Invalid LCD Status");
-                       //elm_exit();
-
-                       pPlayView->pFunc->vp_play_func_exit(pPlayView);
-
-                       return;
-               }
-
-               if (pNormalView->bManualPause|| pNormalView->bSharepopup) {
-                       vp_mm_player_pause(pNormalView->pPlayerHandle);
-               }
-               else {
-                       vp_mm_player_play(pNormalView->pPlayerHandle);
-               }
-
-               if (!vp_mm_player_set_subtitle_position(pNormalView->pPlayerHandle, pNormalView->fSubtitleSyncValue*1000)) {
-                       VideoLogError("vp_mm_player_set_subtitle_position is fail");
-               }
-
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               pNormalView->nStartPosition = 0;
-               pNormalView->bIsRealize = TRUE;
-
-               return;
-       }
-
-       if (pNormalView->bProgressDown == TRUE) {
-               vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-               if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                       VideoLogWarning("vp_mm_player_get_state is fail");
-               }
-               if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-                       vp_mm_player_pause(pNormalView->pPlayerHandle);
-                       _vp_play_normal_view_set_play_state(pNormalView);
-               }
-       }
-
-       if (pNormalView->bIsRealize == FALSE) {
-               pNormalView->nStartPosition = 0;
-               pNormalView->bIsRealize = TRUE;
-               vp_mm_player_play(pNormalView->pPlayerHandle);
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               //_vp_play_normal_view_show_layout(pNormalView);
-               return;
-       }
-
-       if (pNormalView->nWaitPos >= 0) {
-               if (pNormalView->pSeekPipe) {
-                       ecore_pipe_write(pNormalView->pSeekPipe, pNormalView, sizeof(NormalView));
-               }
-       }
-
-       if (pNormalView->bManualPause == FALSE &&
-               pNormalView->bProgressDown == FALSE &&
-               !pNormalView->pSpeedTimer) {
-               vp_mm_player_play(pNormalView->pPlayerHandle);
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-
-}
-static void __vp_normal_interrupted_cb (vp_mm_player_interrupt_t nCode, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VideoLogWarning("== %d ==", nCode);
-
-       if (nCode == VP_MM_PLAYER_INTERRUPTED_COMPLETED) {
-               if (pNormalView->bManualPause == FALSE) {
-                       vp_mm_player_play(pNormalView->pPlayerHandle);
-               }
-       }
-       else if (nCode == VP_MM_PLAYER_INTERRUPTED_BY_MEDIA) {
-               pNormalView->bManualPause = TRUE;
-       }
-       else if (nCode == VP_MM_PLAYER_INTERRUPTED_BY_EARJACK_UNPLUG) {
-               if (pNormalView->bDeviceRemoveInterrupt) {
-                       if (pNormalView->bManualPause == FALSE) {
-                               vp_mm_player_play(pNormalView->pPlayerHandle);
-                       }
-                       pNormalView->bDeviceRemoveInterrupt = FALSE;
-               }
-       }
-       else if (nCode == VP_MM_PLAYER_INTERRUPTED_BY_RESOURCE_CONFLICT) {
-
-               PlayView *pPlayView = pNormalView->pPlayView;
-               if (!pPlayView) {
-                       VideoLogError("pPlayView is NULL");
-                       return;
-               }
-
-               if (!pPlayView->pFunc) {
-                       VideoLogError("pPlayView->pFunc is NULL");
-                       return;
-
-               }
-               elm_exit();
-               return;
-       }
-
-       _vp_play_normal_view_set_play_state(pNormalView);
-       _vp_play_normal_view_on_capture_mode(pNormalView);
-}
-
-static void __vp_normal_error_cb (vp_mm_player_error_t nError, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       VideoLogWarning("Error triggered: 0x%x", nError);
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       VP_EVAS_DEL(pNormalView->pPopup);
-       pNormalView->pPopup = NULL;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-       Evas_Object *pParent = pPlayView->pWin;
-       switch (nError)
-       {
-               case VP_MM_PLAYER_ERR_OUT_OF_MEMORY:
-               case VP_MM_PLAYER_ERR_INVALID_OPERATION:
-               case VP_MM_PLAYER_ERR_FILE_NO_SPACE_ON_DEVICE:
-                       case VP_MM_PLAYER_ERR_INVALID_PARAMETER:
-                       pNormalView->pPopup = vp_popup_create(pParent,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_UNABLE_PLAY,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-
-                       break;
-               case VP_MM_PLAYER_ERR_NO_SUCH_FILE:
-                       pNormalView->pPopup = vp_popup_create(pParent,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_FILE_NOT_EXIST,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-
-                       break;
-
-
-               case VP_MM_PLAYER_ERR_SEEK_FAILED:
-                       VideoLogWarning("VP_MM_PLAYER_ERR_SEEK_FAILED");
-                       break;
-               case VP_MM_PLAYER_ERR_INVALID_STATE:
-                       VideoLogWarning("VP_MM_PLAYER_ERR_INVALID_STATE");
-                       break;
-               case VP_MM_PLAYER_ERR_SOUND_POLICY:
-                       VideoLogWarning("VP_MM_PLAYER_ERR_SOUND_POLICY");
-                       break;
-               case VP_MM_PLAYER_ERR_VIDEO_CAPTUR_FAILED:
-                       VideoLogWarning("VP_MM_PLAYER_ERR_VIDEO_CAPTUR_FAILED");
-                       break;
-               case VP_MM_PLAYER_ERR_NOT_SUPPORTED_FILE:
-                       pNormalView->pPopup = vp_popup_create(pParent,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_UNSUPPORTED_FORMAT,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-                       break;
-               case VP_MM_PLAYER_ERR_INVALID_URI:
-                       pNormalView->pPopup = vp_popup_create(pParent,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_INVALID_URL,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-                       break;
-
-               case VP_MM_PLAYER_ERR_CONNECTION_FAILED:
-                       pNormalView->pPopup = vp_popup_create(pParent,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_CONNECTION_FAILED,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-                       break;
-               case VP_MM_PLAYER_ERR_DRM_EXPIRED:
-               case VP_MM_PLAYER_ERR_DRM_FUTURE_USE:
-                       VideoLogWarning("DRM BUG");
-                       pNormalView->pPopup = vp_popup_create(pParent,
-                                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_UNABLE_PLAY,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-                       break;
-               case VP_MM_PLAYER_ERR_DRM_NO_LICENSE:
-                       pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_DIVX_DRM_AUTHORIZATION_ERROR,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               __vp_normal_error_popup_key_event_cb,
-                                                               __vp_normal_error_popup_mouse_event_cb,
-                                                               pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-                       break;
-               default:
-                       VideoLogWarning("UNKNOWN TYPE : %d", nError);
-                       break;
-       }
-
-}
-
-static void _vp_normal_view_loading_ani_layout_del_cb(void *data, Evas *e,
-                                             Evas_Object *obj,
-                                             void *event_info)
-{
-       if (!data) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)data;
-       pNormalView->pLoadingAni = NULL;
-}
-
-static bool _vp_play_normal_view_create_loading_ani(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-       Evas_Object *pParent = NULL;
-       pParent = pNormalView->pMainLayout;
-
-       if (pNormalView->pLoadingAni) {
-               vp_play_loading_ani_destroy(pNormalView->pLoadingAni);
-               pNormalView->pLoadingAni = NULL;
-       }
-
-       pNormalView->pLoadingAni = vp_play_loading_ani_create(pParent, VIDEO_LOADING_SIZE_LARGE);
-       if (!pNormalView->pLoadingAni) {
-               VideoLogError("pLoadingAni create fail");
-               return FALSE;
-       }
-       evas_object_event_callback_add(pNormalView->pLoadingAni, EVAS_CALLBACK_DEL, _vp_normal_view_loading_ani_layout_del_cb, (void *)pNormalView);
-
-       elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_LOADING_ANI, pNormalView->pLoadingAni);
-
-       return TRUE;
-}
-
-static void __vp_normal_buffering_cb (int nPercent, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (nPercent == 100) {
-               VideoLogError("Buffering complete");
-               pNormalView->bBufferingComplete = TRUE;
-               if (pNormalView->pLoadingAni) {
-                       vp_play_loading_ani_destroy(pNormalView->pLoadingAni);
-                       pNormalView->pLoadingAni = NULL;
-               }
-
-               vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-
-               if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                       VideoLogWarning("vp_mm_player_get_state is fail");
-               }
-
-               if (nState != VP_MM_PLAYER_STATE_PLAYING) {
-                       PlayView *pPlayView = pNormalView->pPlayView;
-                       if (!pPlayView) {
-                               VideoLogError("pPlayView handle is NULL");
-                               return;
-                       }
-
-                       if (pNormalView->nSpeedValue > 1) {
-                               VideoLogWarning("pNormalView->nSpeedValue : [%d]", pNormalView->nSpeedValue);
-                       } else {
-                               if (pNormalView->bManualPause || pPlayView->bActivate == FALSE) {
-                                       vp_mm_player_set_visible(pNormalView->pPlayerHandle, TRUE);
-                                       vp_mm_player_pause(pNormalView->pPlayerHandle);
-                               }
-                               else {
-                                       vp_mm_player_play(pNormalView->pPlayerHandle);
-                               }
-                               _vp_play_normal_view_set_play_state(pNormalView);
-                               _vp_play_normal_view_on_capture_mode(pNormalView);
-                       }
-               }
-       }
-       else {
-               pNormalView->bBufferingComplete = FALSE;
-               if (pNormalView->bManualPause == FALSE) {
-                       vp_play_util_set_lock_power_key();
-               }
-               // Remove loading animation during speed playback.
-               if (pNormalView->pSpeedTimer) {
-                       //
-               } else if (!pNormalView->pLoadingAni) {
-                       if (!_vp_play_normal_view_create_loading_ani(pNormalView)) {
-                               VideoLogError("_vp_play_normal_view_create_loading_ani fail");
-                               return;
-                       }
-               }
-       }
-}
-
-static void __vp_normal_subtitle_updated_cb (unsigned long nDuration, char *text, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       VideoLogWarning("%s", text);
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       int nPosition = 0;
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-               VideoLogError("vp_mm_player_get_position is fail");
-       }
-       int tDuration = 0;
-       vp_mm_player_get_duration(pNormalView->pPlayerHandle, &tDuration);
-       if (nPosition >= tDuration) {
-               __vp_normal_completed_cb(pNormalView);
-       }
-
-       bool bIsWhiteSpace = vp_play_util_check_white_space(text);
-
-       VP_EVAS_TIMER_DEL(pNormalView->pSubtitleTimer);
-
-       if (pNormalView->bVideoOnlyMode) {
-               return;
-       }
-
-       if (bIsWhiteSpace) {
-               vp_play_subtitle_set_text(pNormalView->pSubtitle, "");
-               elm_object_signal_emit(vp_play_subtitle_get_object(pNormalView->pSubtitle), VP_SUBTITLE_SIGNAL_CAPTION_WINDOW_HIDE, "*");
-               elm_object_signal_emit(vp_play_subtitle_get_object(pNormalView->pSubtitle), VP_SUBTITLE_SIGNAL_GREP_BOX_HIDE, "*");
-               return;
-       }
-
-       double dTimeInterval = (double)nDuration / (double)1000;
-
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-               VideoLogError("vp_mm_player_get_position is fail");
-       }
-
-       pNormalView->dSubtitleStartTime = nPosition;
-       pNormalView->dSubtitleEndTime = nPosition + nDuration;
-
-       pNormalView->pSubtitleTimer = ecore_timer_add(dTimeInterval,
-                       __vp_normal_subtitle_timer_cb, (void *)pNormalView);
-
-       vp_play_subtitle_set_text(pNormalView->pSubtitle, text);
-#ifdef SUBTITLE_K_FEATURE
-       /*Set caption window: size, rel1, color*/
-       __vp_normal_subtitle_set_caption_window(pNormalView);
-#endif
-}
-
-
-static void __vp_normal_pd_message_cb (vp_mm_player_pd_message_t nType, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       VideoLogWarning("");
-}
-
-
-static void __vp_normal_video_captured_cb (unsigned char *pFrame, int nWidth, int nHeight, unsigned int nSize, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       VideoLogWarning("");
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (pNormalView->bCaptureBookmark) {
-               char *szFileName = NULL;
-               char *szVideoID = NULL;
-
-               float nScale = 0.0;
-               int nDestW = 0;
-               int nDestH = 0;
-
-               if (!vp_media_contents_get_video_id(pNormalView->szMediaURL, &szVideoID)) {
-                       VideoLogError("vp_media_contents_get_video_id is Fail");
-                       return;
-               }
-
-               szFileName = calloc(1, sizeof(char) * VP_URL_LEN_MAX);
-               if (!szFileName) {
-                       VideoLogError("failed to allocate memory");
-                       VP_FREE(szVideoID);
-                       return; 
-               }
-               snprintf(szFileName, VP_URL_LEN_MAX, "%s/%s",VP_PLAY_DATA_DIR, szVideoID);
-
-               if (!vp_file_exists(szFileName)) {
-                       if (!vp_mkdir(szFileName)) {
-                               VideoSecureLogError("Make directory Fail : %s", szFileName);
-                               pNormalView->bCaptureComplete = TRUE;
-
-                               VP_FREE(szFileName);
-                               VP_FREE(szVideoID);
-                               return;
-                       }
-               }
-               memset(szFileName, 0, sizeof(char) * VP_URL_LEN_MAX);
-
-               snprintf(szFileName, VP_URL_LEN_MAX, "%s/%s/%d.jpg", VP_PLAY_DATA_DIR, szVideoID, pNormalView->nCapturePosition);
-
-               if (nWidth > nHeight) {
-                       nScale = 146.0 / nWidth;
-               }
-               else {
-                       nScale = 88.0 / nHeight;
-               }
-
-               nDestW = nWidth * nScale;
-               nDestH = nHeight * nScale;
-
-               if (vp_image_util_image_resize_save(szFileName, pFrame, nWidth, nHeight, nDestW, nDestH, 100)) {
-                       if (!vp_play_bookmark_insert_item(pNormalView->pBookmarkHandle, szFileName, pNormalView->nCapturePosition)) {
-                               VideoLogError("vp_play_bookmark_insert_item is Fail");
-                       }
-               }
-               VP_FREE(szFileName);
-               VP_FREE(szVideoID);
-       }
-       else {
-
-               if (!vp_file_exists(VP_PLAY_SCREEN_SHOT_DIR)) {
-                       if (!vp_mkdir(VP_PLAY_SCREEN_SHOT_DIR)) {
-                               VideoSecureLogError("Make directory Fail : %s", VP_PLAY_SCREEN_SHOT_DIR);
-                       }
-               }
-
-               char *szFileName = NULL;
-               char *szTitle = NULL;
-               szTitle = vp_play_util_get_title_from_path(pNormalView->szMediaURL);
-
-               szFileName = calloc(1, sizeof(char) * VP_URL_LEN_MAX);
-               if (!szFileName) {
-                       VideoLogError("failed to allocate memory");
-                       VP_FREE(szTitle);
-                       return;
-               }
-
-               snprintf(szFileName, VP_URL_LEN_MAX, "%s/%s_%d.jpg",VP_PLAY_SCREEN_SHOT_DIR, szTitle, pNormalView->nCapturePosition);
-
-               if (vp_image_util_image_save(szFileName, pFrame, nWidth, nHeight, 100)) {
-                       vp_media_contents_update_db(szFileName);
-                       bool bLandscape = vp_play_util_get_landscape_check(pNormalView->nRotate);
-                       vp_media_contents_update_db(szFileName);
-                       VP_EVAS_DEL(pNormalView->pScreenShot);
-                       pNormalView->pScreenShot = NULL;
-
-                       pNormalView->pScreenShot = vp_button_create_image(pNormalView->pMainLayout, szFileName, NULL);
-
-                       if (!pNormalView->pScreenShot) {
-                               VideoLogError("Scrennshot is NULL ####");
-                       }
-                       else {
-                               evas_object_size_hint_weight_set(pNormalView->pScreenShot, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-                               evas_object_size_hint_align_set(pNormalView->pScreenShot, EVAS_HINT_FILL, EVAS_HINT_FILL);
-                               evas_object_show(pNormalView->pScreenShot);
-
-                               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SCREEN_HIDE, "*");
-                               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_ROTATE_HIDE, "*");
-                               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_VOLUME_HIDE, "*");
-                               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_PLAYING_SPEED_HIDE, "*");
-
-                               if (bLandscape) {
-                                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SCREEN_LANDSCAPE_SHOW, "*");
-                                       elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_SCREENSHOT_LANDSCAPE, pNormalView->pScreenShot);
-                               }
-                               else {
-                                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SCREEN_PORTRAIT_SHOW, "*");
-                                       elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_SCREENSHOT_PORTRAIT, pNormalView->pScreenShot);
-                               }
-
-                               VP_EVAS_TIMER_DEL(pNormalView->pScreenShotTimer);
-                               pNormalView->pScreenShotTimer = ecore_timer_add(VP_NORMAL_SCREENSHOT_TIMER_INTERVAL,
-                                                                       __vp_normal_screenshot_timer_cb, (void *)pNormalView);
-                       }
-
-               }
-
-               VP_FREE(szFileName);
-               VP_FREE(szTitle);
-       }
-
-       pNormalView->bCaptureComplete = TRUE;
-}
-
-static void __vp_normal_missed_plugin_cb (vp_mm_player_missed_plugin_t nType, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       VideoLogWarning("nType=%d", nType);
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       VP_EVAS_DEL(pNormalView->pPopup);
-       pNormalView->pPopup = NULL;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-#if 1
-       if (nType == VP_MM_PLAYER_MISSED_PLUGIN_AUDIO) {
-               _vp_play_normal_view_show_video_only_popup(pNormalView);
-       }
-       else if (nType == VP_MM_PLAYER_MISSED_PLUGIN_VIDEO) {
-               _vp_play_normal_view_show_audio_only_popup(pNormalView);
-       }
-#else /* Disabled. please use ecore_pipe if need to use popup. */
-       Evas_Object *pParent = pPlayView->pWin;
-       if (nType == VP_MM_PLAYER_MISSED_PLUGIN_AUDIO) {
-               pNormalView->pPopup = vp_popup_create(pParent,
-                                                       POPUP_STYLE_DEFAULT,
-                                                       NULL,
-                                                       VP_PLAY_STRING_ERROR_UNSUPPORTED_AUDIO,
-                                                       3.0,__vp_normal_popup_time_out_cb,
-                                                       __vp_normal_popup_key_event_cb,
-                                                       __vp_normal_popup_mouse_event_cb,
-                                                       pNormalView);
-
-               evas_object_show(pNormalView->pPopup);
-               pNormalView->bIsPopupShow = TRUE;
-       } else if (nType == VP_MM_PLAYER_MISSED_PLUGIN_VIDEO) {
-               pNormalView->pPopup = vp_popup_create(pParent,
-                                                       POPUP_STYLE_DEFAULT,
-                                                       NULL,
-                                                       VP_PLAY_STRING_ERROR_UNSUPPORTED_VIDEO,
-                                                       3.0, __vp_normal_popup_time_out_cb,
-                                                       __vp_normal_popup_key_event_cb,
-                                                       __vp_normal_popup_mouse_event_cb,
-                                                       pNormalView);
-
-               evas_object_show(pNormalView->pPopup);
-               pNormalView->bIsPopupShow = TRUE;
-               pNormalView->bIsVideoUnsupport = TRUE;
-
-               VP_EVAS_DISABLE_SET(pNormalView->pBookmarkBtn, EINA_TRUE);
-               VP_EVAS_DISABLE_SET(pNormalView->pMultiWinBtn, EINA_TRUE);
-       }
-#endif
-}
-
-static void __vp_normal_image_buffer_cb (char *pBuffer, int nSize, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       VideoLogWarning("%p, %d", pBuffer, nSize);
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       if (pNormalView->pImageBufferObj) {
-               elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_IMAGE_BUFFER);
-               VP_EVAS_DEL(pNormalView->pImageBufferObj);
-       }
-       vp_play_util_save_file(VP_PLAY_IMAGE_BUFFER_PATH, pBuffer, nSize);
-
-       pNormalView->pImageBufferObj = elm_image_add(pNormalView->pMainLayout);
-       elm_image_file_set(pNormalView->pImageBufferObj, VP_PLAY_IMAGE_BUFFER_PATH, NULL);
-
-       evas_object_size_hint_weight_set(pNormalView->pImageBufferObj, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-       evas_object_size_hint_align_set(pNormalView->pImageBufferObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
-
-       elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_IMAGE_BUFFER, pNormalView->pImageBufferObj);
-       evas_object_show(pNormalView->pImageBufferObj);
-}
-#if 1
-static void _vp_normal_set_audio_only_image(NormalView *pNormalView, bool bAudioOnly)
-{
-       if (pNormalView->pImageBufferObj) {
-               elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_IMAGE_BUFFER);
-               VP_EVAS_DEL(pNormalView->pImageBufferObj);
-       }
-
-       if (bAudioOnly == TRUE) {
-               pNormalView->pImageBufferObj = vp_button_create_image(pNormalView->pMainLayout,
-                                                                                                                               VP_PLAY_RESROUCE_EDJ_PATH,
-                                                                                                                               VP_PLAY_NORMAL_AUDIO_ERROR_IMG);
-               evas_object_size_hint_weight_set(pNormalView->pImageBufferObj, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-               evas_object_size_hint_align_set(pNormalView->pImageBufferObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
-               evas_object_color_set(pNormalView->pImageBufferObj, 255, 255, 255, 255);
-               elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_ERROR_IMAGE, pNormalView->pImageBufferObj);
-               evas_object_show(pNormalView->pImageBufferObj);
-               /*double dImageAspectRatio = (double)270/214;
-
-               pNormalView->pImageBufferObj = vp_button_create_image(pNormalView->pMainLayout,
-                                                                                                                               VP_PLAY_RESROUCE_EDJ_PATH,
-                                                                                                                               VP_PLAY_NORMAL_AUDIO_ONLY_IMG);
-               evas_object_size_hint_weight_set(pNormalView->pImageBufferObj, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-               evas_object_size_hint_align_set(pNormalView->pImageBufferObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
-
-               evas_object_size_hint_max_set(pNormalView->pImageBufferObj, 720, 720/dImageAspectRatio);
-               elm_image_aspect_fixed_set(pNormalView->pImageBufferObj, EINA_TRUE);
-
-               elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_IMAGE_BUFFER, pNormalView->pImageBufferObj);
-               evas_object_show(pNormalView->pImageBufferObj);*/
-       }
-}
-#endif
-
-static void __vp_normal_ctx_popup_dismiss_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pObj) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pCtxPopup);
-
-       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-}
-
-static void __vp_normal_ctx_popup_share_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("[ERR]No have pUserData");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pCtxPopup);
-       if (pNormalView->bSharepopup) {
-               VideoLogWarning("Share popup is creating, ignore this event");
-               return;
-       }
-
-       _vp_play_normal_view_on_share_popup(pNormalView);
-}
-
-static void __vp_normal_ctx_popup_subtitle_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("[ERR]No have pUserData");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pCtxPopup);
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       /*If it is playing video, pause video*/
-       if (pNormalView->bVideoOnlyMode == FALSE && nState == VP_MM_PLAYER_STATE_PLAYING) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogError("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-       }
-
-       _vp_play_normal_view_set_play_state(pNormalView);
-
-       _vp_play_normal_view_on_subtitle_select_popup(pNormalView);
-}
-
-
-static void __vp_normal_del_popup_cancel_cb(void *data, Evas_Object *obj, void *event_info)
-{
-       NormalView      *pNormalView    = (NormalView*)data;
-
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       VP_EVAS_DEL(pNormalView->pPopup);
-
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }
-}
-
-static void __vp_normal_del_popup_delete_cb(void *data, Evas_Object *obj, void *event_info)
-{
-       NormalView      *pNormalView    = (NormalView*)data;
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       if (pNormalView->szMediaURL) {
-               char *szPreviewURL = NULL;
-               vp_play_config_get_preview_url_videos(&szPreviewURL);
-
-               if (szPreviewURL) {
-                       if (!g_strcmp0(szPreviewURL, pNormalView->szMediaURL))
-                       {
-                               VideoLogInfo("Erase preview url.");
-                               vp_play_config_set_preview_url_videos("");
-                       }
-               }
-               VP_FREE(szPreviewURL);
-
-               vp_media_contents_del_video(pNormalView->szMediaURL);
-
-               VP_EVAS_DEL(pNormalView->pPopup);
-               pNormalView->bIsPopupShow = FALSE;
-
-
-               PlayView *pPlayView = pNormalView->pPlayView;
-               if (!pPlayView) {
-                       VideoLogError("pPlayView is NULL");
-                       return;
-               }
-               if (!pPlayView->pFunc) {
-                       VideoLogError("pPlayView pFunc is NULL");
-                       return;
-               }
-
-               if (!pPlayView->pFunc->vp_play_func_exit) {
-                       VideoLogError("pPlayView exit Func is NULL");
-                       return;
-               }
-               vp_device_set_screen_off(FALSE);
-               vp_play_util_set_unlock_power_key();
-
-               pPlayView->pFunc->vp_play_func_exit(pPlayView);
-
-       }
-}
-
-static void __vp_normal_ctx_popup_delete_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("[ERR]No have pUserData");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pCtxPopup);
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (pNormalView->bVideoOnlyMode == FALSE && nState == VP_MM_PLAYER_STATE_PLAYING) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogError("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-       }
-
-       VP_EVAS_DEL(pNormalView->pPopup);
-       pNormalView->pPopup     = vp_two_button_popup_create(   pPlayView->pWin,
-                                                                                                               VP_PLAY_STRING_POPUP_DELETE,
-                                                                                                               VP_PLAY_STRING_POPUP_DELETE_CONTENT,
-                                                                                                               VP_PLAY_STRING_CANCEL,
-                                                                                                               __vp_normal_del_popup_cancel_cb,
-                                                                                                               VP_PLAY_STRING_POPUP_DELETE,
-                                                                                                               __vp_normal_del_popup_delete_cb,
-                                                                                                               (const void*)pNormalView        );
-
-       pNormalView->bIsPopupShow = TRUE;
-       eext_object_event_callback_add(pNormalView->pPopup, EEXT_CALLBACK_BACK, __vp_normal_del_popup_cancel_cb, (void*)pNormalView);
-
-}
-
-/*
-static void __vp_normal_ctx_popup_repeat_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("[ERR]No have pUserData");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pCtxPopup);
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (pNormalView->bVideoOnlyMode == FALSE && nState == VP_MM_PLAYER_STATE_PLAYING) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogError("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-       }
-
-       pNormalView->pRepeatHandle = vp_repeat_create(pPlayView->pWin,
-                                                       pNormalView->szMediaURL,
-                                                       __vp_normal_repeat_popup_close_cb);
-
-
-       if (!pNormalView->pRepeatHandle) {
-               VideoLogError("vp_repeat_create fail");
-               return;
-       }
-       if (!vp_repeat_set_user_data(pNormalView->pRepeatHandle, (void *)pNormalView)) {
-               VideoLogWarning("vp_repeat_set_user_data is fail");
-       }
-
-       if (!vp_repeat_realize(pNormalView->pRepeatHandle)) {
-               VideoLogWarning("vp_repeat_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-*/
-
-static void __vp_normal_ctx_popup_setting_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("[ERR]No have pUserData");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pCtxPopup);
-
-       _vp_play_normal_view_on_setting_popup(pNormalView);
-}
-
-/*
-static void __vp_normal_ctx_popup_sound_alive_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("[ERR]No have pUserData");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pCtxPopup);
-
-       _vp_play_normal_view_on_sound_alive_popup(pNormalView);
-}*/
-
-static void __vp_normal_ctx_popup_play_speed_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       VideoLogInfo("");
-       if (!pUserData) {
-               VideoLogError("[ERR]No have pUserData");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pCtxPopup);
-
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (pNormalView->bVideoOnlyMode == FALSE && nState == VP_MM_PLAYER_STATE_PLAYING) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogError("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-       }
-
-       _vp_play_normal_view_on_play_speed_popup(pNormalView);
-}
-
-static void __vp_normal_ctx_popup_detail_cb(void *pUserData, Evas_Object *pObj, void *pEventInfo)
-{
-       if (!pUserData) {
-               VideoLogError("[ERR]No have pUserData");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       VP_EVAS_DEL(pNormalView->pCtxPopup);
-
-       _vp_play_normal_view_on_detail_popup(pNormalView);
-}
-
-static bool _vp_play_normal_view_show_lock_screen(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       if (pNormalView->bLockScreen == FALSE) {
-               return FALSE;
-       }
-
-       VP_EVAS_TIMER_DEL(pNormalView->pLockScreenTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_LOCKSCREEN_SHOW, "*");
-
-       pNormalView->pLockScreenTimer =
-               ecore_timer_add(VP_NORMAL_HIDE_SCREEN_LOCK_TIMER_INTERVAL,
-               __vp_normal_lockscreen_timer_cb, (void *)pNormalView);
-
-       return TRUE;
-}
-
-static void __vp_normal_more_btn_clicked_cb(void *pUserData, Evas_Object *pObj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pUserData;
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       VideoLogInfo("");
-
-       VP_EVAS_DEL(pNormalView->pCtxPopup);
-
-       if (pNormalView->bLockScreen) {
-               VideoLogError("Skip for bLockScreen");
-               _vp_play_normal_view_show_lock_screen(pNormalView);
-               return;
-       }
-
-       if (pNormalView->bIsRealize == FALSE) {
-               VideoLogWarning("Skip for not realized");
-               return;
-       }
-
-       if (!vp_play_volume_unrealize(pNormalView->pVolumeHandle)) {
-               VideoLogWarning("vp_play_volume_unrealize is fail");
-       }
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-               VideoLogWarning("Skip for VIDEO_PLAY_TYPE_MULTI_PATH mode.");
-               if (vp_play_util_check_streaming(pNormalView->szMediaURL)) {
-                       VideoLogWarning("url is streaming. don't need to show detail");
-                       return;
-               }
-       }
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
-               VideoLogInfo("current launching type not support menu.");
-               return;
-       }
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB) {
-               VideoLogInfo("current launching type not support menu.");
-               return;
-       }
-       if (strstr(pPlayView->szMediaURL,"/.") != NULL) {
-               VideoLogInfo("hidden file not suport menu.");
-               return;
-       }
-       pNormalView->pCtxPopup = elm_ctxpopup_add(pPlayView->pWin);
-
-       if (!pNormalView->pCtxPopup) {
-               VideoLogError("pNormalView->pCtxPopup is NULL");
-               return;
-       }
-       eext_object_event_callback_add(pNormalView->pCtxPopup, EEXT_CALLBACK_BACK, __vp_normal_ctx_popup_dismiss_cb, (void *)pNormalView);
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-       elm_object_style_set(pNormalView->pCtxPopup , "more/default");
-       evas_object_smart_callback_add(pNormalView->pCtxPopup , "dismissed", __vp_normal_ctx_popup_dismiss_cb, (void *)pNormalView);
-       elm_ctxpopup_auto_hide_disabled_set(pNormalView->pCtxPopup, EINA_TRUE);
-
-#ifdef ENABLE_DRM_FEATURE
-       bool bDRMLock = FALSE;
-       bool bPlayReady = FALSE;
-#endif
-       char *szMediaID = NULL;
-
-       if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
-               vp_media_contents_get_video_id(pNormalView->szMediaURL, &szMediaID);
-               if (!szMediaID) {
-               }
-       }
-       VP_FREE(szMediaID);
-#ifdef ENABLE_DRM_FEATURE
-       _vp_play_normal_view_check_drm_lock(pNormalView, &bDRMLock);
-
-       vp_drm_is_playready_drm_file(pNormalView->szMediaURL, &bPlayReady);
-#endif
-       //bool bIsPersonal = FALSE;
-
-       switch (pNormalView->nLaunchingType)
-       {
-               case VIDEO_PLAY_TYPE_STORE:
-               case VIDEO_PLAY_TYPE_LIST:
-               case VIDEO_PLAY_TYPE_GALLERY:
-               case VIDEO_PLAY_TYPE_MYFILE:
-               case VIDEO_PLAY_TYPE_OTHER:
-
-                       /* Share via */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SHARE, NULL, __vp_normal_ctx_popup_share_cb, (void *)pNormalView);
-
-                       /* delete */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_DELETE, NULL, __vp_normal_ctx_popup_delete_cb, (void *)pNormalView);
-
-                       /* Play speed */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_PLAY_SPEED, NULL, __vp_normal_ctx_popup_play_speed_cb, (void *)pNormalView);
-
-                       /* subtitles */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SUBTITLE, NULL, __vp_normal_ctx_popup_subtitle_cb, (void *)pNormalView);
-
-                       /* repeat mode */
-                       //elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_REPEAT_SETTING, NULL, __vp_normal_ctx_popup_repeat_cb, (void *)pNormalView);
-
-                       /* Sound alive */
-                       //elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SOUND_ALIVE, NULL, __vp_normal_ctx_popup_sound_alive_cb, (void *)pNormalView);
-
-                       /* Details */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_COM_DETAILS, NULL, __vp_normal_ctx_popup_detail_cb, (void *)pNormalView);
-                       break;
-
-               case VIDEO_PLAY_TYPE_MESSAGE:
-               case VIDEO_PLAY_TYPE_EMAIL:
-
-                       /* Play speed */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_PLAY_SPEED, NULL, __vp_normal_ctx_popup_play_speed_cb, (void *)pNormalView);
-
-                       /* subtitles */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SUBTITLE, NULL, __vp_normal_ctx_popup_subtitle_cb, (void *)pNormalView);
-                       break;
-
-               case VIDEO_PLAY_TYPE_WEB:
-
-                       /* Settings */
-                       if (FALSE) {
-                               elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_POPUP_SETTINGS, NULL, __vp_normal_ctx_popup_setting_cb, (void *)pNormalView);
-                       }
-                       break;
-
-               case VIDEO_PLAY_TYPE_MULTI_PATH:
-                       /* Details */
-                       elm_ctxpopup_item_append(pNormalView->pCtxPopup, VP_PLAY_STRING_COM_DETAILS, NULL, __vp_normal_ctx_popup_detail_cb, (void *)pNormalView);
-                       break;
-
-               case VIDEO_PLAY_TYPE_PREVIEW:
-                       break;
-       }
-
-       int nW = 0;
-       int nH = 0;
-
-       Evas_Coord_Rectangle rect = {0,};
-       elm_win_screen_size_get(pPlayView->pWin,  &rect.x, &rect.y, &rect.w, &rect.h);
-       if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_NONE) {
-               nW = rect.w/2;
-               nH = rect.h;
-       }
-       else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90) {
-               nW = rect.h/2;
-               nH = rect.w;
-       }
-       else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_180) {
-               nW = rect.w/2;
-               nH = rect.h;
-       }
-       else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-               nW = rect.h/2;
-               nH = rect.w;
-       }
-
-       evas_object_move(pNormalView->pCtxPopup, nW, nH);
-
-
-       evas_object_show(pNormalView->pCtxPopup);
-}
-
-void vp_play_normal_view_pause_player(void *pPlayview)
-{
-       if (!pPlayview)
-               return;
-       PlayView *vPlayview = (PlayView *)pPlayview;
-       NormalView *pNormalView = vPlayview->pNormalView;
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-       if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-               vp_mm_player_pause(pNormalView->pPlayerHandle);
-               pNormalView->bManualPause = TRUE;
-       }
-       _vp_play_normal_view_set_play_state(pNormalView);
-       _vp_play_normal_view_on_capture_mode(pNormalView);
-}
-
-void vp_play_normal_view_show_volume_popup(void *pPlayview)
-{
-       if (!pPlayview)
-               return;
-       PlayView *vPlayview = (PlayView *)pPlayview;
-       NormalView *pNormalView = vPlayview->pNormalView;
-       pNormalView->pVolumePopupHandle = NULL;
-       vp_play_volume_update_value(pNormalView->pVolumeHandle);
-       _vp_play_normal_view_on_volume_popup(pNormalView, FALSE);
-       vp_play_volume_set_focus_in(pNormalView->pVolumeHandle);
-}
-
-static void __vp_normal_function_btn_clicked_cb(void *pUserData, Evas_Object *pObj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pUserData;
-
-       if (pObj != pNormalView->pVolumeBtn && pObj != pNormalView->pScreenSizeBtn && pObj != pNormalView->pLockBtn) {
-               return;
-       }
-
-       if (pObj == pNormalView->pVolumeBtn) {
-               VideoLogWarning("pVolumeBtn button");
-               vp_play_volume_update_value(pNormalView->pVolumeHandle);
-               _vp_play_normal_view_on_volume_popup(pNormalView, TRUE);
-               vp_play_volume_set_focus_in(pNormalView->pVolumeHandle);
-       }
-       else if (pObj == pNormalView->pBookmarkBtn) {
-               VideoLogWarning("pBookmarkBtn button");
-
-               bool bIsRealize = FALSE;
-               if (!vp_play_bookmark_is_realize(pNormalView->pBookmarkHandle, &bIsRealize)) {
-                       VideoLogWarning("vp_play_bookmark_is_realize fail");
-                       return;
-               }
-               if (bIsRealize) {
-                       _vp_play_normal_view_on_bookmark_mode(pNormalView, FALSE);
-               }
-               else {
-                       _vp_play_normal_view_on_bookmark_mode(pNormalView, TRUE);
-               }
-       }
-       else if (pObj == pNormalView->pShareBtn) {
-               VideoLogWarning("pShareBtn button");
-               _vp_play_normal_view_on_share_popup(pNormalView);
-       }
-       else if (pObj == pNormalView->pLockBtn) {
-               VideoLogWarning("pLockBtn button");
-               if (!pNormalView->bLockScreen) {
-               pNormalView->bLockScreen = TRUE;
-               vp_play_normal_view_set_lock_screen(pNormalView, pNormalView->bLockScreen);
-               }
-               else {
-               pNormalView->bLockScreen = FALSE;
-               vp_play_normal_view_set_lock_screen(pNormalView, pNormalView->bLockScreen);
-               }
-       }
-       else if (pObj == pNormalView->pSoundAliveBtn) {
-               VideoLogWarning("pSoundAliveBtn button");
-               _vp_play_normal_view_on_sound_alive_popup(pNormalView);
-       }
-       else if (pObj == pNormalView->pRepeatBtn) {
-               VideoLogWarning("pRepeatBtn button");
-               if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_NONE) {
-                       pNormalView->nRepeatMode = VIDEO_PLAY_REPEAT_ONE;
-
-                       Evas_Object *pIcon = NULL;
-                       pIcon = elm_object_part_content_get(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-                       pIcon = elm_object_part_content_get(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-                       pIcon = elm_object_part_content_get(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-
-                       pIcon = vp_button_create_icon(pNormalView->pRepeatBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_REPEAT_ONE);
-                       elm_object_part_content_set(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pRepeatBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_REPEAT_ONE_PRESS);
-                       elm_object_part_content_set(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pRepeatBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_REPEAT_ONE_DIM);
-                       elm_object_part_content_set(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-               }
-               else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE) {
-                       pNormalView->nRepeatMode = VIDEO_PLAY_REPEAT_ALL;
-
-                       Evas_Object *pIcon = NULL;
-                       pIcon = elm_object_part_content_get(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-                       pIcon = elm_object_part_content_get(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-                       pIcon = elm_object_part_content_get(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-
-                       pIcon = vp_button_create_icon(pNormalView->pRepeatBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_REPEAT_ALL);
-                       elm_object_part_content_set(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pRepeatBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_REPEAT_ALL_PRESS);
-                       elm_object_part_content_set(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pRepeatBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_REPEAT_ALL_DIM);
-                       elm_object_part_content_set(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-
-               }
-               else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
-                       pNormalView->nRepeatMode = VIDEO_PLAY_REPEAT_NONE;
-                       Evas_Object *pIcon = NULL;
-                       pIcon = elm_object_part_content_get(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-                       pIcon = elm_object_part_content_get(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-                       pIcon = elm_object_part_content_get(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-
-                       pIcon = vp_button_create_icon(pNormalView->pRepeatBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_REPEAT_OFF);
-                       elm_object_part_content_set(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pRepeatBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_REPEAT_OFF_PRESS);
-                       elm_object_part_content_set(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pRepeatBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_REPEAT_OFF_DIM);
-                       elm_object_part_content_set(pNormalView->pRepeatBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-               }
-       }
-       else if (pObj == pNormalView->pScreenSizeBtn) {
-               VideoLogWarning("pScreenSizeBtn button");
-
-               if (pNormalView->nDisplayMode == VP_MM_PLAYER_DISPLAY_FULL_SCREEN) {
-                       VideoLogWarning(" VP_MM_PLAYER_DISPLAY_LETTER_BOX");
-                       pNormalView->nDisplayMode = VP_MM_PLAYER_DISPLAY_LETTER_BOX;
-                       vp_play_preference_set_screen_mode_key(pNormalView->nDisplayMode);
-
-                       vp_mm_player_set_display_mode(pNormalView->pPlayerHandle, pNormalView->nDisplayMode);
-
-                       Evas_Object *pIcon = NULL;
-                       pIcon = elm_object_part_content_get(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-                       pIcon = elm_object_part_content_get(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-                       pIcon = elm_object_part_content_get(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-
-                       pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_1_MODE);
-                       elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_1_MODE);
-                       elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-                       //pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_1_MODE_DIM);
-                       //elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-
-                       return;
-               }
-               else if (pNormalView->nDisplayMode == VP_MM_PLAYER_DISPLAY_LETTER_BOX) {
-                       VideoLogWarning("VP_MM_PLAYER_DISPLAY_FULL_SCREEN");
-                       pNormalView->nDisplayMode = VP_MM_PLAYER_DISPLAY_FULL_SCREEN;
-                       vp_play_preference_set_screen_mode_key(pNormalView->nDisplayMode);
-
-                       vp_mm_player_set_display_mode(pNormalView->pPlayerHandle, pNormalView->nDisplayMode);
-
-                       Evas_Object *pIcon = NULL;
-                       pIcon = elm_object_part_content_get(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-                       pIcon = elm_object_part_content_get(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-                       pIcon = elm_object_part_content_get(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON);
-                       if (pIcon) {
-                               evas_object_del(pIcon);
-                               pIcon = NULL;
-                       }
-
-                       pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_2_MODE);
-                       elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_2_MODE_PRESS);
-                       elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-                       //pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_2_MODE_DIM);
-                       //elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-
-                       return;
-               }
-       }
-}
-
-static void __vp_normal_control_btn_clicked_cb(void *pUserData, Evas_Object *pObj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pUserData;
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView handle is NULL");
-               return;
-       }
-
-       if (pNormalView->bIsRealize == FALSE) {
-               VideoLogWarning("Skip for not realized");
-               return;
-       }
-
-       if (pObj == pNormalView->pPauseBtn) {
-               VideoLogWarning("Pause button");
-               vp_util_release_cpu();
-
-               if (pNormalView->bBufferingComplete == FALSE) {
-                       VideoLogWarning("Bufferring is not completed. ignore pause signal");
-               } else {
-                       if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                               VideoLogWarning("Pause Fail");
-                       }
-               }
-
-               VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
-               pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
-
-               pNormalView->bManualPause = TRUE;
-       }
-       else if (pObj == pNormalView->pResumeBtn) {
-               VideoLogWarning("Resume button");
-               vp_util_lock_cpu();
-               _vp_play_normal_view_check_during_call(pNormalView);
-
-               VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-               pNormalView->nSpeedValue = 1;
-               pNormalView->bSpeedDown = TRUE;
-
-               if (pNormalView->bBufferingComplete == FALSE) {
-                       VideoLogWarning("Bufferring is not completed. ignore pause signal");
-               } else {
-                       if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                               VideoLogWarning("Resume Fail");
-                       }
-               }
-
-               VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
-               pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
-
-               pNormalView->bManualPause = FALSE;
-       }
-       else if (pObj == pNormalView->pPlayFocusBtn) {
-               VideoLogWarning("pPlayFocusBtn click");
-               Evas_Object *pObj = elm_object_part_content_get(pNormalView->pControlLayout, VP_PLAY_SWALLOW_NORMAL_PLAY);
-               if (pNormalView->pPauseBtn == pObj) {
-
-                       if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                               VideoLogWarning("Pause Fail");
-                       }
-
-                       VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
-                       pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
-
-                       pNormalView->bManualPause = TRUE;
-               } else {
-                       _vp_play_normal_view_check_during_call(pNormalView);
-
-                       if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                               VideoLogWarning("Resume Fail");
-                       }
-                       VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
-                       pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
-
-                       pNormalView->bManualPause = FALSE;
-               }
-       }
-       else if (pObj == pNormalView->pPrevBtn) {
-               VideoLogWarning("Prev button");
-               if (pNormalView->bHLSMode == FALSE) {
-                       if (pNormalView->nSpeedValue < 2) {
-                               VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-                               _vp_play_normal_view_on_prev_play(pNormalView, TRUE, FALSE);
-                       }
-               }
-       }
-       else if (pObj == pNormalView->pNextBtn) {
-               VideoLogWarning("Next button");
-               if (pNormalView->bHLSMode == FALSE) {
-                       if (pNormalView->nSpeedValue < 2 && strstr (pPlayView->szMediaURL,"/.") == NULL) {
-                               VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-                               _vp_play_normal_view_on_next_play(pNormalView, TRUE);
-                       }
-               }
-       }
-       else if (pObj == pNormalView->pRotateBtn) {
-               VideoLogWarning("Rotate button");
-
-               bool bLandscape = vp_play_util_get_landscape_check(pNormalView->nRotate);
-               PlayView *pPlayView = pNormalView->pPlayView;
-
-               if (!pPlayView) {
-                       VideoLogError("pPlayView is NULL");
-                       return;
-               }
-
-               if (bLandscape) {
-                       pPlayView->nRotate = VIDEO_PLAY_ROTATE_NONE;
-                       elm_win_wm_rotation_preferred_rotation_set(pPlayView->pWin, 0);
-                       vp_play_normal_view_set_rotate((normal_view_handle) pNormalView, VIDEO_PLAY_ROTATE_NONE, TRUE);
-               } else {
-                       pPlayView->nRotate = VIDEO_PLAY_ROTATE_270;
-                       elm_win_wm_rotation_preferred_rotation_set(pPlayView->pWin, 270);
-                       vp_play_normal_view_set_rotate((normal_view_handle) pNormalView, VIDEO_PLAY_ROTATE_270, TRUE);
-               }
-       } else if (pObj == pNormalView->pSoundPathBtn) {
-               VideoLogWarning("SoundPath button");
-               _vp_play_normal_view_on_sound_path_popup(pNormalView);
-
-       } else if (pObj == pNormalView->pCaptureBtn) {
-               bool bDRMLock = FALSE;
-
-               _vp_play_normal_view_check_drm_lock(pNormalView, &bDRMLock);
-               if (bDRMLock) {
-                       PlayView *pPlayView = pNormalView->pPlayView;
-
-                       if (!pPlayView) {
-                               VideoLogError("pPlayView is NULL");
-                               return;
-                       }
-
-                       pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_WITH_CANCEL_BTN,
-                                                               NULL,
-                                                               VP_PLAY_STRING_ERROR_UNABLE_CAPTURE_DRM_CONTENT,
-                                                               0.0, NULL,
-                                                               __vp_normal_popup_key_event_cb,
-                                                               __vp_normal_popup_mouse_event_cb,
-                                                               pNormalView);
-
-                       Evas_Object *pBtn = NULL;
-                       pBtn = elm_button_add(pNormalView->pPopup);
-                       elm_object_style_set (pBtn, "popup_button/default");
-                       elm_object_domain_translatable_text_set(pBtn, VP_SYS_STR_PREFIX, VP_PLAY_STRING_COM_OK_IDS);
-                       elm_object_part_content_set(pNormalView->pPopup, "button1", pBtn);
-                       evas_object_smart_callback_add(pBtn, "clicked", __vp_normal_popup_key_event_cb, (void*)pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-
-                       return;
-               }
-
-               if (pNormalView->bIsVideoUnsupport) {
-                       PlayView *pPlayView = pNormalView->pPlayView;
-
-                       if (!pPlayView) {
-                               VideoLogError("pPlayView is NULL");
-                               return;
-                       }
-
-                       pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_WITH_CANCEL_BTN,
-                                                               NULL,
-                                                               VP_PLAY_STRING_ERROR_UNSUPPORTED_FORMAT,
-                                                               0.0, NULL,
-                                                               __vp_normal_popup_key_event_cb,
-                                                               __vp_normal_popup_mouse_event_cb,
-                                                               pNormalView);
-
-                       Evas_Object *pBtn = NULL;
-                       pBtn = elm_button_add(pNormalView->pPopup);
-                       elm_object_style_set (pBtn, "popup_button/default");
-                       elm_object_domain_translatable_text_set(pBtn, VP_SYS_STR_PREFIX, VP_PLAY_STRING_COM_OK_IDS);
-                       elm_object_part_content_set(pNormalView->pPopup, "button1", pBtn);
-                       evas_object_smart_callback_add(pBtn, "clicked", __vp_normal_popup_key_event_cb, (void*)pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-
-                       return;
-               }
-               unsigned long long lAvailableSpace = vp_play_util_get_disk_available_space(VP_PLAY_DATA_DIR);
-
-               if (lAvailableSpace < VP_MB(100)) {
-                       VideoLogWarning("Skip for not enough memory");
-                       PlayView *pPlayView = pNormalView->pPlayView;
-                       if (!pPlayView) {
-                               VideoLogError("pPlayView is NULL");
-                               return;
-                       }
-
-                       VP_EVAS_DEL(pNormalView->pPopup);
-                       pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
-                                                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                                       VP_PLAY_STRING_COM_ERROR,
-                                                                       VP_PLAY_STRING_COM_ENOUGH_MEMORY,
-                                                                       3.0, __vp_normal_popup_time_out_cb,
-                                                                       NULL, NULL,
-                                                                       pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-
-                       return;
-               }
-
-               _vp_play_normal_view_hide_layout(pNormalView, TRUE);
-               _vp_play_normal_view_screen_capture(pNormalView);
-       }
-       else if (pObj == pNormalView->pCaptureRewBtn) {
-               _vp_play_normal_view_screen_move(pNormalView, FALSE);
-       }
-       else if (pObj == pNormalView->pCaptureFFBtn) {
-               _vp_play_normal_view_screen_move(pNormalView, TRUE);
-       }
-       else {
-               VideoLogWarning("Unknown button");
-       }
-}
-
-static void __vp_normal_control_btn_press_cb(void *pUserData, Evas_Object *pObj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       if (!pObj) {
-               VideoLogError("pObj is NULL");
-               return;
-       }
-       bool bSpeedMode = FALSE;
-       NormalView      *pNormalView = (NormalView *)pUserData;
-       if (pNormalView->bKeyPressed == TRUE) {
-               VideoLogInfo("Key has been pressed");
-               return;
-       }
-       pNormalView->bKeyPressed = TRUE;
-
-       if (pNormalView->pSpeedTimer) {
-               bSpeedMode = TRUE;
-       }
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-
-       if (pObj == pNormalView->pNextBtn) {
-               VideoLogInfo("pNextBtn Press");
-               if (pNormalView->bHLSMode == FALSE) {
-                       pNormalView->bSpeedFF = TRUE;
-                       pNormalView->nSpeedValue = 1;
-                       pNormalView->bSpeedDown = TRUE;
-                       pNormalView->pSpeedTimer = ecore_timer_add(VP_NORMAL_LONG_PRESS_TIMER_INTERVAL,
-                                                               __vp_normal_speed_timer_cb,
-                                                               (void *)pNormalView);
-               }
-               else {
-                       pNormalView->pSpeedTimer = ecore_timer_add(VP_NORMAL_LONG_PRESS_TIMER_INTERVAL,
-                                                               __vp_normal_dlna_speed_timer_cb,
-                                                               (void *)pNormalView);
-               }
-
-       }
-       else if (pObj == pNormalView->pPrevBtn) {
-               VideoLogInfo("pPrevBtn Press");
-               if (pNormalView->bHLSMode == FALSE) {
-                       pNormalView->bSpeedFF = FALSE;
-                       pNormalView->nSpeedValue = 1;
-                       pNormalView->bSpeedDown = TRUE;
-                       pNormalView->pSpeedTimer = ecore_timer_add(VP_NORMAL_LONG_PRESS_TIMER_INTERVAL,
-                                                               __vp_normal_speed_timer_cb,
-                                                               (void *)pNormalView);
-               }
-               else {
-                       pNormalView->pSpeedTimer = ecore_timer_add(VP_NORMAL_LONG_PRESS_TIMER_INTERVAL,
-                                                               __vp_normal_dlna_speed_timer_cb,
-                                                               (void *)pNormalView);
-               }
-       }
-       else if (pObj == pNormalView->pResumeBtn) {
-               if (bSpeedMode) {
-                       int nPosition = 0;
-                       if (vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-                               VideoLogDebug("nPosition[%d], curPosition[%d]", nPosition, pNormalView->nCurPosition);
-
-                               if (vp_mm_player_set_position(pNormalView->pPlayerHandle, pNormalView->nCurPosition)) {
-                                       pNormalView->bSeekComplete = FALSE;
-                                       pNormalView->nWaitPos = -1;
-                               }else {
-                                       pNormalView->nWaitPos = nPosition;
-                               }
-                       }
-               }
-       }
-       else if (pObj == pNormalView->pPlayFocusBtn) {
-               VideoLogInfo("pPlayFocusBtn Press");
-               Evas_Object *pObj = elm_object_part_content_get(pNormalView->pControlLayout, VP_PLAY_SWALLOW_NORMAL_PLAY);
-               if (pNormalView->pResumeBtn == pObj) {
-                       if (bSpeedMode) {
-                               int nPosition = 0;
-                               if (vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-                                       if (vp_mm_player_set_position(pNormalView->pPlayerHandle, pNormalView->nCurPosition)) {
-                                               pNormalView->bSeekComplete = FALSE;
-                                               pNormalView->nWaitPos = -1;
-                                       }else {
-                                               pNormalView->nWaitPos = nPosition;
-                                       }
-                               }
-                       }
-               }
-       }
-}
-
-static void __vp_normal_control_btn_unpress_cb(void *pUserData, Evas_Object *pObj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       if (!pObj) {
-               VideoLogError("pObj is NULL");
-               return;
-       }
-       VideoLogInfo("");
-
-       NormalView      *pNormalView = (NormalView *)pUserData;
-
-       pNormalView->bKeyPressed = FALSE;
-
-       if (pObj == pNormalView->pPauseBtn) {
-       }
-       else if (pObj == pNormalView->pResumeBtn) {
-       }
-       else if (pObj == pNormalView->pNextBtn) {
-               pNormalView->bSpeedDown = FALSE;
-               VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-               if (!pNormalView->pProgressTimer) {
-                       _vp_play_normal_view_create_progress_timer(pNormalView);
-               }
-       }
-       else if (pObj == pNormalView->pPrevBtn) {
-               pNormalView->bSpeedDown = FALSE;
-               VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-               if (!pNormalView->pProgressTimer) {
-                       _vp_play_normal_view_create_progress_timer(pNormalView);
-               }
-       }
-       else if (pObj == pNormalView->pAllsharBtn) {
-               VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
-               pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
-       }
-       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-}
-
-static void __vp_normal_media_key_event_cb(vp_media_key_event_t nKey, bool bRelease, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       if (pNormalView->bSharepopup) {
-               VideoLogWarning("bSharepopup is TRUE");
-               return;
-       }
-
-       switch (nKey)
-       {
-       case VP_MEDIA_KEY_PLAY:
-       case VP_MEDIA_KEY_PAUSE:
-       case VP_MEDIA_KEY_PLAYPAUSE:
-               if (bRelease) {
-                       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-
-                       if (pNormalView->pDetailHandle) {
-                               vp_detail_destroy(pNormalView->pDetailHandle);
-                               pNormalView->pDetailHandle = NULL;
-                       }
-
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-
-                       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-                       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                               VideoLogWarning("vp_mm_player_get_state is fail");
-                       }
-
-                       if (nState != VP_MM_PLAYER_STATE_PLAYING) {
-                               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                                       VideoLogError("Pause Fail");
-                               }
-                               pNormalView->bManualPause = FALSE;
-                       }
-                       else {
-                               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                                       VideoLogError("Pause Fail");
-                               }
-                               pNormalView->bManualPause = TRUE;
-                       }
-
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-               }
-               break;
-
-       case VP_MEDIA_KEY_PREVIOUS:
-               if (bRelease) {
-                       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-                       _vp_play_normal_view_on_prev_play(pNormalView, TRUE, FALSE);
-               }
-               break;
-       case VP_MEDIA_KEY_NEXT:
-               if (bRelease) {
-                       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-                       _vp_play_normal_view_on_next_play(pNormalView, TRUE);
-               }
-               break;
-       case VP_MEDIA_KEY_REWIND:
-               if (bRelease) {
-                       pNormalView->bSpeedDown = FALSE;
-
-                       if (pNormalView->nSpeedValue < 2) {
-                               VideoLogInfo("speed up");
-                               _vp_normal_view_speed_for_steps(pNormalView, FALSE);
-                       }
-
-                       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-                       if (pNormalView->pDetailHandle) {
-                               vp_detail_destroy(pNormalView->pDetailHandle);
-                               pNormalView->pDetailHandle = NULL;
-                       }
-
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-
-                       if (pNormalView->bManualPause == FALSE) {
-                               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                                       VideoLogError("play Fail");
-                               }
-                               pNormalView->bManualPause = FALSE;
-                       }
-
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-               }
-               else {
-                       if (pNormalView->pDetailHandle) {
-                               vp_detail_destroy(pNormalView->pDetailHandle);
-                               pNormalView->pDetailHandle = NULL;
-                       }
-                       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-                       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-                       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-
-                       pNormalView->bSpeedFF = FALSE;
-                       pNormalView->nSpeedValue = 1;
-                       pNormalView->bSpeedDown = TRUE;
-                       pNormalView->pSpeedTimer = ecore_timer_add(VP_NORMAL_LONG_PRESS_TIMER_INTERVAL,
-                                                               __vp_normal_speed_timer_cb,
-                                                               (void *)pNormalView);
-               }
-               break;
-       case VP_MEDIA_KEY_FASTFORWARD:
-               if (bRelease) {
-                       pNormalView->bSpeedDown = FALSE;
-
-                       if (pNormalView->nSpeedValue < 2) {
-                               VideoLogInfo("speed up");
-                               _vp_normal_view_speed_for_steps(pNormalView, TRUE);
-                       }
-
-                       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-                       if (pNormalView->pDetailHandle) {
-                               vp_detail_destroy(pNormalView->pDetailHandle);
-                               pNormalView->pDetailHandle = NULL;
-                       }
-
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-
-                       if (pNormalView->bManualPause == FALSE) {
-                               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                                       VideoLogError("play Fail");
-                               }
-                               pNormalView->bManualPause = FALSE;
-                       }
-
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-               }
-               else {
-                       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-                       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-                       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-
-                       if (pNormalView->pDetailHandle) {
-                               vp_detail_destroy(pNormalView->pDetailHandle);
-                               pNormalView->pDetailHandle = NULL;
-                       }
-
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-
-                       pNormalView->bSpeedFF = TRUE;
-                       pNormalView->nSpeedValue = 1;
-                       pNormalView->bSpeedDown = TRUE;
-                       pNormalView->pSpeedTimer = ecore_timer_add(VP_NORMAL_LONG_PRESS_TIMER_INTERVAL,
-                                                               __vp_normal_speed_timer_cb,
-                                                               (void *)pNormalView);
-               }
-               break;
-       case VP_MEDIA_KEY_STOP:
-               if (bRelease) {
-                       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-                       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-                       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                               VideoLogWarning("vp_mm_player_get_state is fail");
-                       }
-
-                       if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-                               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                                       VideoLogError("Pause Fail");
-                               }
-                       }
-                       pNormalView->bManualPause = TRUE;
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-               }
-               break;
-       default:
-               VideoLogWarning("Undefined key : %d", nKey);
-               break;
-       }
-
-}
-
-/*
-   this function is for only for keyboard FF/REW key longpress case
-   because of different FF/REW long press scenario in keyboard
-       video -> play a file -> pause -> key down FF button(long press) -> move seek -> key up FF button -> seek stop -> stay pause
-       video -> play a file -> playing -> key down FF button(long press) -> move seek -> key up FF button -> seek stop -> resume
-*/
-void vp_play_normal_view_ff_rew_keyboard_longpress_event_cb(normal_view_handle pViewHandle, bool bRelease, bool bFFseek)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       if (pNormalView->pSpeedTimer== NULL && bRelease == FALSE) {
-               if (bFFseek)
-                       __vp_normal_media_key_event_cb(VP_MEDIA_KEY_FASTFORWARD, bRelease, pNormalView);
-               else
-                       __vp_normal_media_key_event_cb(VP_MEDIA_KEY_REWIND, bRelease, pNormalView);
-       } else if (pNormalView->pSpeedTimer && bRelease == TRUE) {
-               if (pNormalView->nSpeedValue < 2) {
-                       VideoLogInfo("speed up");
-                       _vp_normal_view_speed_for_steps(pNormalView, bFFseek);
-               } else {
-                       int nPosition = 0;
-                       if (vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-                               if (vp_mm_player_set_position(pNormalView->pPlayerHandle, pNormalView->nCurPosition)) {
-                                       pNormalView->bSeekComplete = FALSE;
-                                       pNormalView->nWaitPos = -1;
-                               } else {
-                                       pNormalView->nWaitPos = nPosition;
-                               }
-                       }
-               }
-
-               VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-               if (pNormalView->pDetailHandle) {
-                       vp_detail_destroy(pNormalView->pDetailHandle);
-                       pNormalView->pDetailHandle = NULL;
-               }
-
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-
-               if (pNormalView->bManualPause == FALSE) {
-                       if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                               VideoLogError("play Fail");
-                       }
-                       pNormalView->bManualPause = FALSE;
-               }
-
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-}
-
-static void _vp_normal_view_speed_for_steps(NormalView *pNormalView, bool bSpeedFF)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       VideoLogInfo("");
-
-       if (pNormalView->bSeekComplete == FALSE) {
-               VideoLogError("bSeekComplete is fail");
-               return;
-       }
-
-       int nSetPosition = 0;
-       int nCurPosition = 0;
-
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nCurPosition)) {
-               VideoLogError("vp_mm_player_get_position is fail");
-               return;
-       }
-
-       if (pNormalView->nDuration <= nCurPosition) {
-               _vp_play_normal_view_on_next_play(pNormalView, FALSE);
-               return;
-       }
-
-       VideoLogInfo("pNormalView->nDuration %d", pNormalView->nDuration);
-       if (bSpeedFF) {
-               nSetPosition = nCurPosition  + (15 * 1000);//15 sec
-       }
-       else {
-               nSetPosition = nCurPosition  - (15 * 1000);
-       }
-
-       if (pNormalView->nDuration < nSetPosition) {
-               nSetPosition = pNormalView->nDuration;
-       }
-
-       if (nSetPosition < 0) {
-               nSetPosition = 0;
-       }
-
-#if 1
-       if (vp_mm_player_set_position(pNormalView->pPlayerHandle, nSetPosition)) {
-#else
-       if (vp_mm_player_set_position_by_key_frame(pNormalView->pPlayerHandle, nSetPosition)) {
-#endif
-               pNormalView->bSeekComplete = FALSE;
-               pNormalView->nCurPosition = nSetPosition;
-               vp_play_progressbar_set_position(pNormalView->pProgressbar, nSetPosition);
-       }
-
-       return;
-}
-
-//Focus UI
-void vp_play_normal_view_set_main_layout_focus_out(normal_view_handle *pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return;
-       }
-
-       VideoLogInfo("");
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       pNormalView->bMainFocusState = FALSE;
-
-       elm_object_focus_set(pNormalView->pNaviFrame, EINA_FALSE);
-       elm_object_tree_focus_allow_set(pNormalView->pNaviFrame, EINA_FALSE);
-       elm_object_focus_allow_set(pNormalView->pNaviFrame, EINA_FALSE);
-
-       elm_object_focus_set(pNormalView->pMainLayout, EINA_FALSE);
-       elm_object_tree_focus_allow_set(pNormalView->pMainLayout, EINA_FALSE);
-       elm_object_focus_allow_set(pNormalView->pMainLayout, EINA_FALSE);
-}
-
-void vp_play_normal_view_set_main_layout_focus_in(normal_view_handle *pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return;
-       }
-
-       VideoLogInfo("");
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       if (pNormalView->bMainFocusState == TRUE) {
-               VideoLogInfo("Already Focus In");
-               return;
-       }
-       pNormalView->bMainFocusState = TRUE;
-
-       elm_object_focus_allow_set(pNormalView->pNaviFrame, EINA_TRUE);
-       elm_object_tree_focus_allow_set(pNormalView->pNaviFrame, EINA_TRUE);
-       elm_object_focus_set(pNormalView->pNaviFrame, EINA_TRUE);
-
-       elm_object_focus_allow_set(pNormalView->pMainLayout, EINA_TRUE);
-       elm_object_tree_focus_allow_set(pNormalView->pMainLayout, EINA_TRUE);
-       elm_object_focus_set(pNormalView->pMainLayout, EINA_TRUE);
-
-       elm_object_focus_set(pNormalView->pAllsharBtn, EINA_TRUE);
-}
-
-void vp_play_normal_view_set_resume_or_pause(normal_view_handle *pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-       if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-               vp_mm_player_pause(pNormalView->pPlayerHandle);
-               pNormalView->bManualPause = TRUE;
-       } else {
-               vp_mm_player_play(pNormalView->pPlayerHandle);
-               pNormalView->bManualPause = FALSE;
-       }
-       _vp_play_normal_view_set_play_state(pNormalView);
-       _vp_play_normal_view_on_capture_mode(pNormalView);
-}
-
-void vp_play_normal_view_show_main_layout(normal_view_handle *pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       _vp_play_normal_view_show_layout(pNormalView);
-}
-
-void vp_play_normal_view_create_main_layout_hide_timer(normal_view_handle *pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-}
-
-static void _vp_play_normal_view_set_button_focus_sequence(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       bool bLandscape = vp_play_util_get_landscape_check(pNormalView->nRotate);
-
-       elm_object_focus_set(pNormalView->pVolumeBtn, EINA_TRUE);
-
-       vp_play_util_focus_next_object_set(pNormalView->pPrevBtn, pNormalView->pPlayFocusBtn, ELM_FOCUS_RIGHT);
-       vp_play_util_focus_next_object_set(pNormalView->pPlayFocusBtn, pNormalView->pPrevBtn, ELM_FOCUS_LEFT);
-
-       vp_play_util_focus_next_object_set(pNormalView->pPlayFocusBtn, pNormalView->pNextBtn, ELM_FOCUS_RIGHT);
-       vp_play_util_focus_next_object_set(pNormalView->pNextBtn, pNormalView->pPlayFocusBtn, ELM_FOCUS_LEFT);
-
-       vp_play_util_focus_next_object_set(pNormalView->pAllsharBtn, pNormalView->pPlayFocusBtn, ELM_FOCUS_DOWN);
-       if (pNormalView->pSoundPathBtn) {
-               vp_play_util_focus_next_object_set(pNormalView->pAllsharBtn, pNormalView->pSoundPathBtn, ELM_FOCUS_NEXT);
-       } else {
-               vp_play_util_focus_next_object_set(pNormalView->pAllsharBtn, pNormalView->pPlayFocusBtn, ELM_FOCUS_NEXT);
-       }
-       vp_play_util_focus_next_object_set(pNormalView->pSoundPathBtn, pNormalView->pPlayFocusBtn, ELM_FOCUS_DOWN);
-       vp_play_util_focus_next_object_set(pNormalView->pSoundPathBtn, pNormalView->pPlayFocusBtn, ELM_FOCUS_NEXT);
-
-       if (bLandscape == TRUE) {
-               vp_play_util_focus_next_object_set(pNormalView->pVolumeBtn, pNormalView->pBookmarkBtn, ELM_FOCUS_RIGHT);
-               vp_play_util_focus_next_object_set(pNormalView->pBookmarkBtn, pNormalView->pVolumeBtn, ELM_FOCUS_LEFT);
-
-               vp_play_util_focus_next_object_set(pNormalView->pBookmarkBtn, pNormalView->pPrevBtn, ELM_FOCUS_RIGHT);
-               vp_play_util_focus_next_object_set(pNormalView->pPrevBtn, pNormalView->pBookmarkBtn, ELM_FOCUS_LEFT);
-
-               vp_play_util_focus_next_object_set(pNormalView->pNextBtn, pNormalView->pMultiWinBtn, ELM_FOCUS_RIGHT);
-               vp_play_util_focus_next_object_set(pNormalView->pMultiWinBtn, pNormalView->pNextBtn, ELM_FOCUS_LEFT);
-
-               vp_play_util_focus_next_object_set(pNormalView->pMultiWinBtn, pNormalView->pScreenSizeBtn, ELM_FOCUS_RIGHT);
-               vp_play_util_focus_next_object_set(pNormalView->pScreenSizeBtn, pNormalView->pMultiWinBtn, ELM_FOCUS_LEFT);
-       } else {
-               vp_play_util_focus_next_object_set(pNormalView->pBookmarkBtn, pNormalView->pMultiWinBtn, ELM_FOCUS_RIGHT);
-               vp_play_util_focus_next_object_set(pNormalView->pMultiWinBtn, pNormalView->pBookmarkBtn, ELM_FOCUS_LEFT);
-
-               vp_play_util_focus_next_object_set(pNormalView->pVolumeBtn, pNormalView->pPrevBtn, ELM_FOCUS_RIGHT);
-               vp_play_util_focus_next_object_set(pNormalView->pPrevBtn, pNormalView->pVolumeBtn, ELM_FOCUS_LEFT);
-
-               vp_play_util_focus_next_object_set(pNormalView->pNextBtn, pNormalView->pScreenSizeBtn, ELM_FOCUS_RIGHT);
-               vp_play_util_focus_next_object_set(pNormalView->pScreenSizeBtn, pNormalView->pNextBtn, ELM_FOCUS_LEFT);
-
-               vp_play_util_focus_next_object_set(pNormalView->pVolumeBtn, pNormalView->pBookmarkBtn, ELM_FOCUS_UP);
-               vp_play_util_focus_next_object_set(pNormalView->pBookmarkBtn, pNormalView->pVolumeBtn, ELM_FOCUS_DOWN);
-       }
-}
-
-bool  vp_play_normal_view_get_volume_state(normal_view_handle *pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       bool bIsRealize = FALSE;
-
-       if (pNormalView->pVolumeHandle) {
-               if (!vp_play_volume_is_realize(pNormalView->pVolumeHandle, &bIsRealize)) {
-                       VideoLogWarning("vp_play_volume_is_realize is fail");
-               }
-       }
-
-       return bIsRealize;
-}
-
-bool vp_play_normal_view_get_main_layout_focus_state(normal_view_handle *pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       return pNormalView->bMainFocusState;
-}
-
-bool vp_play_normal_view_get_main_layout_show_state(normal_view_handle *pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       return pNormalView->bShowLayout;
-}
-
-vp_normalview_popup_style_e vp_play_normal_view_get_popup_show_state(normal_view_handle *pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return VP_PLAY_NORMAL_VIEW_POPUP_NONE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       vp_normalview_popup_style_e nPopUpShow = VP_PLAY_NORMAL_VIEW_POPUP_NONE;
-
-       if (pNormalView->pCtxPopup) {
-               nPopUpShow = VP_PLAY_NORMAL_VIEW_CTX_POPUP;
-       } else if (pNormalView->bIsPopupShow || pNormalView->bIsSubtitleShow) {
-               nPopUpShow = VP_PLAY_NORMAL_VIEW_OTHER_POPUP;
-       }
-
-       return nPopUpShow;
-}
-
-static void __vp_normal_naviframe_back_btn_cb(void *pUserData, Evas_Object *obj, void *event_info)
-{
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       _vp_play_normal_view_set_played_time(pNormalView);
-       vp_play_view_destroy(pNormalView);
-
-       return;
-}
-
-static Eina_Bool __vp_normal_naviframe_pop_cb(void *pUserData, Elm_Object_Item *pItem)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return EINA_FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pUserData;
-
-       if (pNormalView->bLockScreen) {
-               VideoLogError("Skip for bLockScreen");
-               _vp_play_normal_view_show_lock_screen(pNormalView);
-               return EINA_FALSE;
-       }
-
-       if (pNormalView->bIsActive) {
-               if (pNormalView->pExitWaitTimer) {
-                       _vp_play_normal_view_set_played_time(pNormalView);
-
-                       PlayView *pPlayView = pNormalView->pPlayView;
-
-                       if (!pPlayView) {
-                               VideoLogError("pPlayView is NULL");
-                               return EINA_FALSE;
-                       }
-
-                       if (!pPlayView->pFunc) {
-                               VideoLogError("pPlayView pFunc is NULL");
-                               return EINA_FALSE;
-                       }
-
-                       if (!pPlayView->pFunc->vp_play_func_exit) {
-                               VideoLogError("pPlayView exit Func is NULL");
-                               return EINA_FALSE;
-                       }
-
-                       vp_device_set_screen_off(FALSE);
-                       vp_play_util_set_unlock_power_key();
-
-                       VideoLogWarning("== BACK ==");
-                       pPlayView->pFunc->vp_play_func_exit(pPlayView);
-
-                       return EINA_FALSE;
-               }
-               else {
-                       PlayView *pPlayView = pNormalView->pPlayView;
-
-                       if (!pPlayView) {
-                               VideoLogError("pPlayView is NULL");
-                               return EINA_FALSE;
-                       }
-
-                       if (pPlayView->bDestroy) {
-                               pNormalView->pNaviFrame = NULL; // it will be deleted when return TRUE
-                               return EINA_TRUE;
-                       }
-
-                       vp_play_util_status_noti_show(VP_PLAY_STRING_COM_WAIT_BACK);
-
-                       pNormalView->pExitWaitTimer = ecore_timer_add(VP_NORMAL_EXIT_WAIT_TIMER_INTERVAL,
-                                                               __vp_normal_exit_wait_timer_cb, (void *)pNormalView);
-
-                       return EINA_FALSE;
-               }
-       }
-
-       if (pNormalView->bDestroyNavi) {
-               VideoLogWarning("bDestroyNavi is TRUE.");
-               pNormalView->pNaviFrame = NULL; // it will be deleted when return TRUE
-
-               return EINA_TRUE;
-       }
-
-       return EINA_FALSE;
-}
-
-static void __vp_normal_sdp_download_state_change_cb(VppDownloadHandle pDownloadHandle, VppDownloadState eState, const char *szPath, void *pUserData)
-{
-       VideoLogWarning("eState : [%d]", eState);
-
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       if (!pDownloadHandle) {
-               VideoLogError("pDownloadHandle == NULL!!!");
-               return;
-       }
-
-       if (eState == VPP_DOWNLOAD_STATE_COMPLETED) {
-               char *szDownloadedFilePath = VppDownloadGetDownloadedFilePath(pDownloadHandle);
-
-               if (szDownloadedFilePath) {
-                       VideoLogWarning("szDownloadedFilePath : %s", szDownloadedFilePath);
-                       VP_FREE(pNormalView->szMediaURL);
-                       pNormalView->szMediaURL =  g_strdup(szDownloadedFilePath);
-               }
-
-               VP_FREE(szDownloadedFilePath);
-               if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle,pNormalView->szMediaURL)) {
-                       VideoLogError("vp_mm_player_realize_async fail");
-                       VppDownloadDestroyItem(pNormalView->pDownloadHandle);
-                       pNormalView->pDownloadHandle = NULL;
-                       return;
-               }
-
-               VppDownloadDestroyItem(pNormalView->pDownloadHandle);
-               pNormalView->pDownloadHandle = NULL;
-       } else if (eState == VPP_DOWNLOAD_STATE_FAILED || eState == VPP_DOWNLOAD_STATE_CANCELED) {
-               if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle,pNormalView->szMediaURL)) {
-
-                       VppDownloadDestroyItem(pNormalView->pDownloadHandle);
-                       pNormalView->pDownloadHandle = NULL;
-
-                       VideoLogError("vp_mm_player_realize_async fail");
-                       return;
-               }
-               VppDownloadDestroyItem(pNormalView->pDownloadHandle);
-               pNormalView->pDownloadHandle = NULL;
-       }
-}
-
-static void __vp_normal_main_layout_resize_cb(void *pUserData, Evas *pEvas, Evas_Object *pObj, void *pEvent)
-{
-       if (!pUserData) {
-               VideoLogError("[ERR] No Exist pUserData.");
-               return;
-       }
-       //if needed, to do
-}
-
-/*szColorHex:#RGBA ---> nColor:ARGB*/
-static unsigned int _vp_play_normal_view_convert_color_to_argb(char *szColorHex)
-{
-       unsigned int nColor = 0;
-       char *szColor = g_strdup_printf("%s%6.6s", (szColorHex+7), (szColorHex+1));
-       nColor = strtoul(szColor, NULL, 16);
-       VideoLogInfo("szColorHex:%s, szColor: %s, nColor:%0x", szColorHex, szColor, nColor);
-       VP_FREE(szColor);
-
-       return nColor;
-}
-
-/* internal functions */
-static bool _vp_play_normal_view_set_subtitle_font_config(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-       if (!pNormalView->pPlayerHandle) {
-               VideoLogError("pNormalView pPlayerHandle is NULL");
-               return FALSE;
-       }
-
-       /* set subtitle option */
-       char *szFontFamilyName = NULL;
-       int nSubtitleSize = VIDEO_SUBTITLE_SIZE_MEDIUM;
-       int nSubtitleSizeValue = VP_SUBTITLE_SIZE_MEDIUM_VALUE;
-       unsigned int nFontColor = 0;
-       unsigned int nBGColor = 0;
-       int nAlignment = VIDEO_SUBTITLE_ALIGNMENT_CENTER;
-
-       vp_play_preference_get_subtitle_font_name_key(&szFontFamilyName);
-       vp_play_preference_get_subtitle_size_key(&nSubtitleSize);
-
-       if (nSubtitleSize == VIDEO_SUBTITLE_SIZE_SMALL) {
-               nSubtitleSizeValue = VP_SUBTITLE_SIZE_SMALL_VALUE;
-       }
-       else if (nSubtitleSize == VIDEO_SUBTITLE_SIZE_MEDIUM) {
-               nSubtitleSizeValue = VP_SUBTITLE_SIZE_MEDIUM_VALUE;
-       }
-       else if (nSubtitleSize == VIDEO_SUBTITLE_SIZE_LARGE) {
-               nSubtitleSizeValue = VP_SUBTITLE_SIZE_LARGE_VALUE;
-       }
-#ifndef SUBTITLE_K_FEATURE
-       int nFontColorKey = VP_SUBTITLE_COLOR_BLACK;
-       int nBGColorKey = VP_SUBTITLE_COLOR_BLACK;
-
-       vp_play_preference_get_subtitle_font_color_key(&nFontColorKey);
-
-       if (nFontColorKey == VIDEO_SUBTITLE_COLOR_BLACK) {
-               nFontColor = 0xff000000;
-       }
-       else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_BLUE) {
-               nFontColor = 0xff0000ff;
-       }
-       else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_GREEN) {
-               nFontColor = 0xff00ff00;
-       }
-       else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_WHITE) {
-               nFontColor = 0xffffffff;
-       }
-
-       vp_play_preference_get_subtitle_bg_color_key(&nBGColorKey);
-
-       if (nBGColorKey == VIDEO_SUBTITLE_COLOR_BLACK) {
-               nBGColor = 0xff000000;
-       }
-       else if (nBGColorKey == VIDEO_SUBTITLE_COLOR_WHITE) {
-               nBGColor = 0xffffffff;
-       }
-       else if (nBGColorKey == VIDEO_SUBTITLE_COLOR_NONE) {
-               nBGColor = 0x00000000;
-       }
-
-#else
-       char *szColorHex = NULL;
-       vp_play_preference_get_subtitle_font_color_hex_key(&szColorHex);
-       if (szColorHex != NULL) {
-               nFontColor = _vp_play_normal_view_convert_color_to_argb(szColorHex);
-       }
-
-       char *szBGColorHex = NULL;
-       vp_play_preference_get_subtitle_bg_color_hex_key(&szBGColorHex);
-       if (szBGColorHex != NULL)  {
-               nBGColor = _vp_play_normal_view_convert_color_to_argb(szBGColorHex);
-
-       }
-
-       vp_play_preference_get_subtitle_alignment_key(&nAlignment);
-
-#endif
-       if (!vp_mm_player_set_subtitle_font(pNormalView->pPlayerHandle, szFontFamilyName, NULL, nSubtitleSizeValue)) {
-               VideoLogError("vp_mm_player_set_subtitle_font fail");
-       }
-       if (!vp_mm_player_set_subtitle_font_color(pNormalView->pPlayerHandle, nFontColor, nBGColor)) {
-               VideoLogError("vp_mm_player_set_subtitle_font_color fail");
-       }
-       VP_FREE(szFontFamilyName);
-
-       if (!vp_mm_player_subtitle_ignore_markup_tags(pNormalView->pPlayerHandle, FALSE)) {
-               VideoLogError("vp_mm_player_subtitle_ignore_markup_tags fail");
-       }
-
-       if (!vp_mm_player_subtitle_set_alignment_in_line(pNormalView->pPlayerHandle, nAlignment)) {
-               VideoLogError("vp_mm_player_subtitle_set_alignment_in_line fail");
-       }
-
-       if (!vp_mm_player_subtitle_set_alignment_horizontal(pNormalView->pPlayerHandle, nAlignment)) {
-               VideoLogError("vp_mm_player_subtitle_set_alignment_horizontal fail");
-       }
-
-       if (!vp_mm_player_subtitle_apply_alignment_right_away(pNormalView->pPlayerHandle)) {
-               VideoLogError("vp_mm_player_subtitle_apply_alignment_right_away fail");
-       }
-
-       return TRUE;
-}
-
-static bool _vp_play_normal_view_update_progress_value(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-       int nPosition = 0;
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (pNormalView->bHLSMode) {
-               VideoLogWarning("Skip for HLS");
-               VP_EVAS_TIMER_DEL(pNormalView->pProgressTimer);
-               return FALSE;
-       }
-
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-               VideoLogError("vp_mm_player_get_position is fail");
-       }
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB) {
-               int nBufferingPosition = 0;
-               vp_mm_player_get_buffering_position(pNormalView->pPlayerHandle, &nBufferingPosition);
-               vp_play_progressbar_set_buffering_position(pNormalView->pProgressbar, nBufferingPosition);
-       }
-       if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-               nPosition += 1000;
-       }
-       if (nPosition > pNormalView->nDuration) {
-               nPosition = pNormalView->nDuration;
-       }
-       vp_play_progressbar_set_position(pNormalView->pProgressbar, nPosition);
-
-       pNormalView->nCurPosition = nPosition;
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB) {
-               PlayView *pPlayView = pNormalView->pPlayView;
-               pPlayView->nStartPosition = nPosition;
-       }
-
-       return TRUE;
-
-}
-
-static bool _vp_play_normal_view_check_during_call(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-       bool bCallOn = FALSE;
-       vp_play_config_get_call_state(&bCallOn);
-       if (bCallOn) {
-               PlayView *pPlayView = pNormalView->pPlayView;
-
-               VP_EVAS_DEL(pNormalView->pPopup);
-               pNormalView->pPopup = NULL;
-
-               if (!pPlayView) {
-                       VideoLogError("pPlayView is NULL");
-                       return FALSE;
-               }
-               pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
-                                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                       NULL,
-                                                       VP_PLAY_STRING_UNABLE_TO_PLAY_VIDEO_DURING_CALL,
-                                                       3.0, __vp_normal_popup_time_out_cb,
-                                                       __vp_normal_popup_key_event_cb,
-                                                       __vp_normal_popup_mouse_event_cb,
-                                                       pNormalView);
-
-               evas_object_show(pNormalView->pPopup);
-               pNormalView->bIsPopupShow = TRUE;
-       }
-
-       return TRUE;
-}
-
-static void _vp_play_normal_view_show_audio_only_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       VideoLogInfo("Show toast popup: Only audio data supported by this file. Now playing video.");
-       _vp_normal_set_audio_only_image(pNormalView, TRUE);
-       vp_play_util_status_noti_show(VP_PLAY_STRING_ERROR_ONLY_AUDIO_DATA_SUPPORTED);
-}
-
-static void _vp_play_normal_view_show_video_only_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       VideoLogInfo("Show toast popup: Only video data supported by this file. Now playing video.");
-       _vp_normal_set_audio_only_image(pNormalView, FALSE);
-       vp_play_util_status_noti_show(VP_PLAY_STRING_ERROR_ONLY_VIDEO_DATA_SUPPORTED);
-}
-
-static bool _vp_play_normal_view_check_audio_only(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-       /* Audio only */
-       char *audio_codec = NULL;
-       char *video_codec = NULL;
-       bool b_audio_only = FALSE;
-       bool b_video_only = FALSE;
-       if (vp_mm_player_get_codecinfo(pNormalView->pPlayerHandle, &audio_codec, &video_codec)) {
-               VideoLogWarning("audio_codec=%s, video_codec=%s", audio_codec, video_codec);
-               if (video_codec == NULL || strlen(video_codec) <= 1) {
-                       if (audio_codec != NULL && strlen(audio_codec) > 1) {
-                               b_audio_only = TRUE;
-                       }
-               }
-
-               if (audio_codec == NULL || strlen(audio_codec) <= 1) {
-                       if (video_codec != NULL && strlen(video_codec) > 1) {
-                               b_video_only = TRUE;
-                       }
-               }
-
-               VP_FREE(audio_codec);
-               VP_FREE(video_codec);
-       }
-
-       VideoLogWarning("b_audio_only=%d, b_video_only=%d", b_audio_only, b_video_only);
-
-       if (b_audio_only) {
-               VideoLogInfo("Only audio data supported.");
-               _vp_play_normal_view_show_audio_only_popup(pNormalView);
-       } else {
-               _vp_normal_set_audio_only_image(pNormalView, FALSE);
-       }
-
-       if (b_video_only) {
-               VideoLogInfo("Only video data supported.");
-               _vp_play_normal_view_show_video_only_popup(pNormalView);
-       }
-
-       return TRUE;
-}
-
-
-static bool _vp_play_normal_view_check_drm_lock(NormalView *pNormalView, bool *bLock)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-
-       if (!pNormalView->szMediaURL) {
-               return FALSE;
-       }
-
-       *bLock = FALSE;
-#ifdef ENABLE_DRM_FEATURE
-       bool bIsDrm = FALSE;
-
-       if (vp_drm_is_drm_file(pNormalView->szMediaURL, &bIsDrm)) {
-               if (bIsDrm) {
-                       bool bIsFWLock = FALSE;
-                       bool bIsDivX = FALSE;
-                       bool bIsPlayReadyDRM = FALSE;
-
-                       if (vp_drm_is_check_forward_lock(pNormalView->szMediaURL, &bIsFWLock)) {
-                               if (bIsFWLock) {
-                                       *bLock = TRUE;
-                               }
-                       }
-                       if (vp_drm_is_divx_drm_file(pNormalView->szMediaURL, &bIsDivX)) {
-                               if (bIsDivX) {
-                                       *bLock = TRUE;
-                               }
-                       }
-
-                       if (vp_drm_is_playready_drm_file(pNormalView->szMediaURL, &bIsPlayReadyDRM)) {
-                               if (bIsPlayReadyDRM) {
-                                       *bLock = TRUE;
-                               }
-                       }
-               }
-       }
-#endif
-       return TRUE;
-}
-
-#ifdef ENABLE_DRM_FEATURE
-static bool _vp_play_normal_view_check_drm(NormalView *pNormalView, bool *bIsAvailablePlay)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return FALSE;
-       }
-
-       *bIsAvailablePlay = TRUE;
-
-       bool bIsDrm = FALSE;
-       //bool bIsLicense = FALSE;
-       bool bIsDivXDRM = FALSE;
-
-       if (!vp_drm_is_drm_file(pNormalView->szMediaURL, &bIsDrm)) {
-               VideoLogError("vp_drm_is_drm_file is fail");
-               return FALSE;
-       }
-
-       if (bIsDrm == FALSE) {
-               VideoLogWarning("Not DRM File");
-               return TRUE;
-       }
-       else {
-               VideoLogWarning("== IS DRM FILE ================================");
-       }
-
-       if (pNormalView->pPlayView->bStoreDownload == TRUE)
-       {
-               bool    bCheckLicense   = FALSE;
-               if (!vp_drm_is_check_license(pNormalView->szMediaURL, &bCheckLicense))
-               {
-                       VideoLogError("vp_drm_is_check_license is fail");
-
-                       *bIsAvailablePlay = FALSE;
-
-                       return FALSE;
-               }
-
-               if (bCheckLicense == FALSE)
-               {
-                       if (!vp_store_license_acquisition(      pNormalView->szMediaURL,
-                                                                                               pNormalView->pPlayView->pStoreAppId,
-                                                                                               pNormalView->pPlayView->pStoreOrderId,
-                                                                                               pNormalView->pPlayView->pStoreMvId,
-                                                                                               pNormalView->pPlayView->pStoreServerId,
-                                                                                               _vp_play_normal_view_store_la_cb,
-                                                                                               (const void*)pNormalView        ))
-                       {
-                               VideoLogError("vp_store_license_acquisition is fail");
-
-                               *bIsAvailablePlay = FALSE;
-
-                               return FALSE;
-                       }
-
-                       return FALSE;
-               }
-       }
-
-       if (!vp_drm_is_divx_drm_file(pNormalView->szMediaURL, &bIsDivXDRM)) {
-               VideoLogError("vp_drm_is_divx_drm_file is fail");
-               return FALSE;
-       }
-
-       if (bIsDivXDRM == FALSE) {
-               return TRUE;
-
-               if (!vp_drm_is_check_license(pNormalView->szMediaURL, &bIsLicense)) {
-                       VideoLogError("vp_drm_is_check_license is fail");
-                       *bIsAvailablePlay = FALSE;
-                       return FALSE;
-               }
-
-
-               if (bIsLicense == FALSE) {
-                       VideoLogWarning("bIsLicense is Invalid");
-
-                       *bIsAvailablePlay = FALSE;
-
-
-                       VP_EVAS_DEL(pNormalView->pPopup);
-                       pNormalView->pPopup = NULL;
-
-                       char *szMessage = NULL;
-                       char *szTitleTemp = NULL;
-
-                       szTitleTemp = vp_play_util_get_title_from_path(pNormalView->szMediaURL);
-                       szMessage = g_strdup_printf(VP_PLAY_STRING_DRM_CURRENTLY_LOCKED_UNLOCK_Q, szTitleTemp);
-
-                       pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               szMessage,
-                                                               3.0,__vp_normal_error_popup_time_out_cb,
-                                                               NULL, NULL, pNormalView);
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-
-                       VP_FREE(szMessage);
-                       VP_FREE(szTitleTemp);
-
-                       return TRUE;
-               }
-       }
-
-       vp_drm_constraint_info stConstraintInfo = {0,};
-
-       if (!vp_drm_get_constarint_info(pNormalView->szMediaURL, &stConstraintInfo)) {
-               VideoLogError("vp_drm_get_constarint_info is fail");
-               return FALSE;
-       }
-
-       char *szMsg = NULL;
-       char *szTitle = NULL;
-       szTitle = vp_play_util_get_title_from_path(pNormalView->szMediaURL);
-
-       if (bIsDivXDRM) {
-               if (stConstraintInfo.status == VP_DRM_CONSTRAINT_TYPE_NOT_AUTHORIZED) {
-                       VP_EVAS_DEL(pNormalView->pPopup);
-                       pNormalView->pPopup = NULL;
-                       pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_DIVX_DRM_AUTHORIZATION_ERROR,
-                                                               3.0,__vp_normal_error_popup_time_out_cb,
-                                                               NULL, NULL, pNormalView);
-
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-
-                       VP_FREE(szTitle);
-
-                       return TRUE;
-               }
-
-               while (stConstraintInfo.constraints)
-               {
-                       if (stConstraintInfo.constraints & VP_DRM_CONSTRAINT_COUNT) {
-                               if (stConstraintInfo.remaining_count == 0) {
-                                       szMsg = g_strdup_printf(VP_PLAY_STRING_DIVX_DRM_RENTAL_EXPIRED_ERROR, stConstraintInfo.original_count - stConstraintInfo.remaining_count, stConstraintInfo.original_count);
-                               }
-                               else {
-                                       szMsg = g_strdup_printf(VP_PLAY_STRING_DIVX_DRM_RENTAL_CONFIRMATION_CHOICE, stConstraintInfo.original_count - stConstraintInfo.remaining_count, stConstraintInfo.original_count);
-                               }
-                               break;
-                       }
-               }
-       }
-       else {
-               bool bNotiPopup = FALSE;
-
-               while (stConstraintInfo.constraints)
-               {
-                       if (stConstraintInfo.constraints & VP_DRM_CONSTRAINT_COUNT) {
-                               if (stConstraintInfo.remaining_count == 2) {
-                                       szMsg = g_strdup_printf(VP_PLAY_STRING_DRM_PS_2_MORE_TIME_START_NOW_Q, szTitle);
-                               }
-                               else if (stConstraintInfo.remaining_count == 1) {
-                                       szMsg = g_strdup_printf(VP_PLAY_STRING_DRM_PS_1_MORE_TIME_START_NOW_Q, szTitle);
-                               }
-                               else if (stConstraintInfo.remaining_count == 0) {
-                                       bNotiPopup = TRUE;
-                               }
-                               break;
-                       }
-
-                       if (stConstraintInfo.constraints & VP_DRM_CONSTRAINT_DATE_TIME) {
-                               if (stConstraintInfo.date_time_expired) {
-                                       bNotiPopup = TRUE;
-                               }
-                               break;
-                       }
-
-                       if (stConstraintInfo.constraints & VP_DRM_CONSTRAINT_INTERVAL) {
-                               if (stConstraintInfo.remaining_interval_sec == 0) {
-                                       bNotiPopup = TRUE;
-                               }
-                               else {
-                                       int nDays = stConstraintInfo.remaining_interval_sec / VP_ACCUMULATED_DATE + 1;
-                                       szMsg = g_strdup_printf(VP_PLAY_STRING_DRM_PS_FOR_PD_DAYS_START_NOW_Q, szTitle, nDays);
-                               }
-                               break;
-                       }
-
-                       if (stConstraintInfo.constraints & VP_DRM_CONSTRAINT_TIMED_COUNT) {
-                               if (stConstraintInfo.remaining_timed_count == 2) {
-                                       szMsg = g_strdup_printf(VP_PLAY_STRING_DRM_PS_2_MORE_TIME_START_NOW_Q, szTitle);
-                               } else if (stConstraintInfo.remaining_timed_count == 1) {
-                                       szMsg = g_strdup_printf(VP_PLAY_STRING_DRM_PS_1_MORE_TIME_START_NOW_Q, szTitle);
-                               } else if (stConstraintInfo.remaining_timed_count == 0) {
-                                       bNotiPopup = TRUE;
-                               }
-                               break;
-                       }
-
-                       if (stConstraintInfo.constraints & VP_DRM_CONSTRAINT_ACCUMLATED_TIME) {
-                               if (stConstraintInfo.remaining_acc_sec == 0) {
-                                       bNotiPopup = TRUE;
-                               }
-                               break;
-                       }
-               }
-       }
-
-       VP_FREE(szMsg);
-       VP_FREE(szTitle);
-
-       return TRUE;
-}
-#endif
-
-#ifndef ENABLE_SUBTITLE
-
-static void _vp_play_normal_view_free_subtitle_list(GList *pSubtitleList)
-{
-       if (pSubtitleList) {
-               int nCount = 0;
-               int i = 0;
-               nCount = g_list_length(pSubtitleList);
-               for (i = 0; i < nCount ; i++)
-               {
-                       char *szName = NULL;
-                       szName = (char *)g_list_nth_data(pSubtitleList, i);
-                       VP_FREE(szName);
-               }
-
-               g_list_free(pSubtitleList);
-       }
-}
-#endif
-
-#ifdef _NATIVE_BUFFER_SYNC
-static Evas_Object *_vp_play_normal_view_create_image_sink(void *pParent, void *pUserData)
-{
-
-       if (!pUserData) {
-               VideoLogError("[ERR] No Exist pUserData.");
-               return NULL;
-       }
-
-//     NormalView *pNormalView = (NormalView *)pUserData;
-       Evas *pEvas = NULL;
-       Evas_Object *pObj = NULL;
-
-       pEvas = evas_object_evas_get(pParent);
-
-       pObj = evas_object_image_add(pEvas);
-       if (NULL == pObj) {
-               VideoLogError("pObj is NULL");
-               return NULL;
-       }
-
-       evas_object_image_size_set(pObj, VP_NORMAL_DEFAULT_WIDTH, VP_NORMAL_DEFAULT_HEIGHT);
-       evas_object_image_fill_set(pObj, 0, 0, VP_NORMAL_DEFAULT_WIDTH, VP_NORMAL_DEFAULT_HEIGHT);
-       evas_object_resize(pObj, VP_NORMAL_DEFAULT_WIDTH, VP_NORMAL_DEFAULT_HEIGHT);
-
-       void *pImageBuf = evas_object_image_data_get(pObj, EINA_TRUE);
-       if (NULL == pImageBuf) {
-               VideoLogError("pImageBuf is NULL");
-               VP_EVAS_DEL(pObj);
-               return NULL;
-       }
-
-       int nBufSize = VP_NORMAL_DEFAULT_WIDTH * VP_NORMAL_DEFAULT_HEIGHT * 4;
-
-       memset(pImageBuf, 0, nBufSize);
-       evas_object_image_data_set(pObj,pImageBuf);
-
-//     evas_object_event_callback_add(pObj, EVAS_CALLBACK_RESIZE,
-//                                     __vp_play_multi_view_imagesink_resize_cb, (void *)pNormalView);
-
-       elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_SINK, pObj);
-
-       return pObj;
-
-}
-#endif
-
-static bool _vp_play_normal_view_play_start(NormalView *pNormalView, bool bCheckDRM)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-       VideoLogWarning(">>");
-
-       if (pNormalView->bIsActive == FALSE) {
-               VideoLogError("pNormalView is NOT realized. skip");
-               return FALSE;
-       }
-
-
-       VP_EVAS_TIMER_DEL(pNormalView->pSubtitleTimer);
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogWarning("pPlayView is NULL");
-               return FALSE;
-       }
-       if (pNormalView->pZoomGuide) {
-               vp_zoom_guide_destroy(pNormalView->pZoomGuide);
-               pNormalView->pZoomGuide = NULL;
-       }
-
-       if (pNormalView->pImageBufferObj) {
-               elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_IMAGE_BUFFER);
-               VP_EVAS_DEL(pNormalView->pImageBufferObj);
-       }
-
-       pNormalView->fZoomValue = 1.0;
-       pNormalView->bIsVideoUnsupport = FALSE;
-       pNormalView->bBufferingComplete = TRUE;
-       pNormalView->bCaptureComplete = TRUE;
-       pNormalView->bDeviceRemoveInterrupt = FALSE;
-
-       _vp_play_normal_view_all_close_popup(pNormalView);
-
-       VP_FREE(pPlayView->szMediaURL);
-       VP_STRDUP(pPlayView->szMediaURL, pNormalView->szMediaURL);
-       VideoSecureLogInfo("== PLAY START : %s ==", pNormalView->szMediaURL);
-
-#ifdef _NATIVE_BUFFER_SYNC
-       VP_EVAS_DEL(pNormalView->pVideoSink);
-       pNormalView->pVideoSink = _vp_play_normal_view_create_image_sink(pNormalView->pMainLayout, (void *)pNormalView);
-       if (!pNormalView->pVideoSink) {
-               VideoLogError("_vp_play_normal_view_create_image_sink handle is null");
-               return FALSE;
-       }
-#endif
-
-       pNormalView->pSubtitleTimer = NULL;
-       pNormalView->bIsExistSubtitle = FALSE;
-       pNormalView->fPlaySpeed = pNormalView->pPlayView->fPlaySpeed;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-
-       if (pNormalView->pDetailHandle) {
-               vp_detail_destroy(pNormalView->pDetailHandle);
-               pNormalView->pDetailHandle = NULL;
-       }
-
-       if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
-
-               if (!vp_play_util_local_file_check(pNormalView->szMediaURL)) {
-                       /* popup show */
-                       VP_EVAS_DEL(pNormalView->pPopup);
-                       pNormalView->pPopup = NULL;
-                       PlayView *pPlayView = pNormalView->pPlayView;
-                       if (!pPlayView) {
-                               VideoLogError("pPlayView is NULL");
-                               return FALSE;
-                       }
-                       pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                               VP_PLAY_STRING_COM_ERROR,
-                                                               VP_PLAY_STRING_ERROR_FILE_NOT_EXIST,
-                                                               3.0, __vp_normal_error_popup_time_out_cb,
-                                                               NULL, NULL, pNormalView);
-
-                       evas_object_show(pNormalView->pPopup);
-                       pNormalView->bIsPopupShow = TRUE;
-
-                       return TRUE;
-               }
-       }
-
-       if (bCheckDRM) {
-               if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
-                       bool bIsAvailablePlay = TRUE;
-#ifdef ENABLE_DRM_FEATURE
-                       if (_vp_play_normal_view_check_drm(pNormalView, &bIsAvailablePlay)) {
-                               if (bIsAvailablePlay == FALSE) {
-                                       VideoLogWarning("Wait Drm popup result");
-                                       return TRUE;
-                               }
-                       }
-                       else
-#endif
-                       {
-                               if (pNormalView->pPlayView->bStoreDownload == TRUE)
-                               {
-                                       if (bIsAvailablePlay == FALSE)
-                                       {
-                                               VideoLogWarning("license acquisition failed!!!");
-
-                                               Evas_Object *pPopup = NULL;
-                                               pPopup = vp_popup_create(pNormalView->pPlayView->pWin,
-                                                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                                       VP_PLAY_STRING_COM_ERROR,
-                                                                       VP_PLAY_STRING_ERROR_UNABLE_PLAY,
-                                                                       3.0, __vp_normal_prepare_error_popup_time_out_cb,
-                                                                       NULL, NULL, pNormalView);
-
-                                               evas_object_show(pPopup);
-
-                                               pNormalView->bIsPopupShow = TRUE;
-
-                                               return FALSE;
-                                       }
-                                       else
-                                       {
-                                               VideoLogWarning("need license acquisition");
-                                               return FALSE;
-                                       }
-                               }
-                       }
-               }
-       }
-
-       if (pNormalView->nStartPosition == 0) {
-               if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_STORE ||
-                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
-                       pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
-                       int nStartPos = 0;
-                       if (vp_media_contents_get_played_position(pNormalView->szMediaURL, &nStartPos)) {
-                               pNormalView->nStartPosition = nStartPos;
-                       }
-               }
-       }
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_STORE ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
-               vp_media_contents_set_played_time(pNormalView->szMediaURL);
-       }
-
-       vp_play_subtitle_set_text(pNormalView->pSubtitle, NULL);
-
-       if (bCheckDRM) {
-               if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
-
-                       bool bDRMLock = FALSE;
-                       _vp_play_normal_view_check_drm_lock(pNormalView, &bDRMLock);
-                       if (bDRMLock) {
-                               VP_EVAS_DISABLE_SET(pNormalView->pBookmarkBtn, EINA_TRUE);
-                               VP_EVAS_DISABLE_SET(pNormalView->pMultiWinBtn, EINA_TRUE);
-                       } else {
-                               VP_EVAS_DISABLE_SET(pNormalView->pBookmarkBtn, EINA_FALSE);
-                               VP_EVAS_DISABLE_SET(pNormalView->pMultiWinBtn, EINA_FALSE);
-                       }
-               } else {
-                       if (pNormalView->bVideoOnlyMode == FALSE) {
-                               VP_EVAS_DISABLE_SET(pNormalView->pMultiWinBtn, EINA_FALSE);
-                       } else {
-                               VP_EVAS_DISABLE_SET(pNormalView->pMultiWinBtn, EINA_TRUE);
-                       }
-               }
-       }
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL) {
-               char *szMediaID = NULL;
-               bool bReturn = FALSE;
-               bReturn = vp_media_contents_get_video_id(pNormalView->szMediaURL, &szMediaID);
-               if (!szMediaID || bReturn == FALSE) {
-                       VP_EVAS_DISABLE_SET(pNormalView->pTrimBtn, EINA_TRUE);
-               } else {
-                       VP_EVAS_DISABLE_SET(pNormalView->pTrimBtn, EINA_FALSE);
-               }
-               VP_FREE(szMediaID);
-       }
-       if (pNormalView->pPlayerHandle) {
-               vp_mm_player_destroy(pNormalView->pPlayerHandle);
-               pNormalView->pPlayerHandle = NULL;
-       }
-
-       if (pNormalView->pLoadingAni) {
-               VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-               VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-       }
-
-       /* mm_player create */
-       if (!vp_mm_player_set_hw_decoder(TRUE)) {
-               VideoLogError("vp_mm_player_set_user_param fail");
-               _vp_play_normal_view_destroy_handle(pNormalView);
-               return FALSE;
-       }
-
-       pNormalView->pPlayerHandle = vp_mm_player_create();
-       if (!pNormalView->pPlayerHandle) {
-               VideoLogError("vp_mm_player_create fail");
-               return FALSE;
-       }
-
-       if (!vp_mm_player_set_user_param(pNormalView->pPlayerHandle, (void *) pNormalView)) {
-               VideoLogError("vp_mm_player_set_user_param fail");
-               return FALSE;
-       }
-
-       if (!vp_mm_player_set_callback(pNormalView->pPlayerHandle, VP_MM_PLAYER_REALIZE_ASYNC_CB, (void *)__vp_normal_prepare_cb)) {
-               VideoLogError("vp_mm_player_set_callback fail");
-               return FALSE;
-       }
-       if (!vp_mm_player_set_callback(pNormalView->pPlayerHandle, VP_MM_PLAYER_SEEK_COMPLETE_CB, (void *)__vp_normal_seek_completed_cb)) {
-               VideoLogError("vp_mm_player_set_callback fail");
-               return FALSE;
-       }
-       if (!vp_mm_player_set_callback(pNormalView->pPlayerHandle, VP_MM_PLAYER_END_OF_STREAM_CB, (void *)__vp_normal_completed_cb)) {
-               VideoLogError("vp_mm_player_set_callback fail");
-               return FALSE;
-       }
-       if (!vp_mm_player_set_callback(pNormalView->pPlayerHandle, VP_MM_PLAYER_INTERRUPT_CB, (void *)__vp_normal_interrupted_cb)) {
-               VideoLogError("vp_mm_player_set_callback fail");
-               return FALSE;
-       }
-       if (!vp_mm_player_set_callback(pNormalView->pPlayerHandle, VP_MM_PLAYER_ERROR_CB, (void *)__vp_normal_error_cb)) {
-               VideoLogError("vp_mm_player_set_callback fail");
-               return FALSE;
-       }
-       if (!vp_mm_player_set_callback(pNormalView->pPlayerHandle, VP_MM_PLAYER_BUFFERING_CB, (void *)__vp_normal_buffering_cb)) {
-               VideoLogError("vp_mm_player_set_callback fail");
-               return FALSE;
-       }
-       if (!vp_mm_player_set_callback(pNormalView->pPlayerHandle, VP_MM_PLAYER_SUBTITLE_UPDATE_CB, (void *)__vp_normal_subtitle_updated_cb)) {
-               VideoLogError("vp_mm_player_set_callback fail");
-               return FALSE;
-       }
-       if (!vp_mm_player_set_callback(pNormalView->pPlayerHandle, VP_MM_PLAYER_PD_MESSAGE_CB, (void *)__vp_normal_pd_message_cb)) {
-               VideoLogError("vp_mm_player_set_callback fail");
-               return FALSE;
-       }
-       if (!vp_mm_player_set_callback(pNormalView->pPlayerHandle, VP_MM_PLAYER_CAPTURE_VIDEO_CB, (void *)__vp_normal_video_captured_cb)) {
-               VideoLogError("vp_mm_player_set_callback fail");
-               return FALSE;
-       }
-       if (!vp_mm_player_set_callback(pNormalView->pPlayerHandle, VP_MM_PLAYER_MISSED_PLUGIN_CB, (void *)__vp_normal_missed_plugin_cb)) {
-               VideoLogError("vp_mm_player_set_callback fail");
-               return FALSE;
-       }
-
-       if (!vp_mm_player_set_callback(pNormalView->pPlayerHandle, VP_MM_PLAYER_IMAGE_BUFFER_CB, (void *)__vp_normal_image_buffer_cb)) {
-               VideoLogError("vp_mm_player_set_callback fail");
-               return FALSE;
-       }
-
-       if (pNormalView->pBookmarkHandle) {
-               vp_play_bookmark_set_media_url(pNormalView->pBookmarkHandle, pNormalView->szMediaURL);
-       }
-
-#ifdef _NATIVE_BUFFER_SYNC
-       if (!vp_mm_player_set_video_sink(pNormalView->pPlayerHandle,
-                                       VP_MM_PLAYER_VIDEO_TYPE_EVAS,
-                                       (void *)pNormalView->pVideoSink)) {
-               VideoLogError("vp_mm_player_set_video_sink fail");
-               _vp_play_normal_view_destroy_handle(pNormalView);
-               return FALSE;
-       }
-#else
-       //if (!vp_mm_player_set_video_sink(pNormalView->pPlayerHandle, VP_MM_PLAYER_VIDEO_TYPE_X11, (void *)GET_DISPLAY(pNormalView->pPlayView->pWin))) {
-       if (!vp_mm_player_set_video_sink(pNormalView->pPlayerHandle, VP_MM_PLAYER_VIDEO_TYPE_X11, (void *)(pNormalView->pPlayView->pWin))) {
-               VideoLogError("vp_mm_player_set_video_sink fail");
-               return FALSE;
-       }
-#endif
-
-       if (!vp_mm_player_set_hub_download_mode(pNormalView->pPlayerHandle, pPlayView->bStoreDownload)) {
-               VideoLogError("vp_mm_player_set_hub_download_mode fail");
-       }
-
-       if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_NONE) {
-               vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_0);
-       }
-       else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90) {
-               vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_90);
-       }
-       else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_180) {
-               vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_180);
-       }
-       else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-               vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_270);
-       }
-
-       vp_mm_player_sound_filter_t nSoundFilter = VP_MM_PLAYER_FILTER_NONE;
-
-       if (pNormalView->nSoundAlive == VIDEO_SA_NORMAL) {
-               nSoundFilter = VP_MM_PLAYER_FILTER_NONE;
-       }
-       else if (pNormalView->nSoundAlive == VIDEO_SA_VOICE) {
-               nSoundFilter = VP_MM_PLAYER_FILTER_VOICE;
-       }
-       else if (pNormalView->nSoundAlive == VIDEO_SA_MOVIE) {
-               nSoundFilter = VP_MM_PLAYER_FILTER_MOVIE;
-       }
-       else if (pNormalView->nSoundAlive == VIDEO_SA_7_1_CH) {
-               nSoundFilter = VP_MM_PLAYER_FILTER_VITUAL_71;
-
-               video_sound_device_type_t nSoundDevType = VP_SOUND_DEVICE_NONE;
-               vp_sound_get_active_device(&nSoundDevType);
-
-               if (nSoundDevType != VP_SOUND_DEVICE_EARJACK) {
-                       nSoundFilter = VP_MM_PLAYER_FILTER_NONE;
-               }
-       }
-
-       vp_mm_player_set_display_mode(pNormalView->pPlayerHandle, pNormalView->nDisplayMode);
-
-       if (nSoundFilter != VP_MM_PLAYER_FILTER_NONE) {
-               if (!vp_mm_player_set_sound_filter(pNormalView->pPlayerHandle, nSoundFilter)) {
-                       VideoLogWarning("vp_mm_player_set_sound_filter is fail");
-               }
-       }
-
-       if (pNormalView->nDefaultAudioTrackIndex > 0) {
-               vp_mm_player_set_audio_track(pNormalView->pPlayerHandle, pNormalView->nDefaultAudioTrackIndex);
-       }
-
-       if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
-               if (pPlayView->szMediaTitle) {
-                       elm_object_item_text_set(pNormalView->pNaviItem, pPlayView->szMediaTitle);
-               } else {
-                       char *szTitle = NULL;
-                       szTitle = vp_play_util_get_title_from_path(pNormalView->szMediaURL);
-                       if (szTitle) {
-                               elm_object_item_text_set(pNormalView->pNaviItem, szTitle);
-                       }
-                       VP_FREE(szTitle);
-               }
-               if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle,pNormalView->szMediaURL)) {
-                       VideoLogError("vp_mm_player_realize_async fail");
-
-                       //_vp_play_normal_view_show_layout(pNormalView);
-                       Evas_Object *pPopup = NULL;
-                       pPopup = vp_popup_create(pPlayView->pWin,
-                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                               VP_PLAY_STRING_COM_ERROR,
-                                               VP_PLAY_STRING_ERROR_UNABLE_PLAY,
-                                               3.0, __vp_normal_prepare_error_popup_time_out_cb,
-                                               NULL, NULL, pNormalView);
-
-
-                       evas_object_show(pPopup);
-
-                       pNormalView->bIsPopupShow = TRUE;
-
-                       return TRUE;
-               }
-       }
-       else {
-               if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB) {
-                       VideoLogInfo("VIDEO_PLAY_TYPE_WEB:%s", pNormalView->szMediaURL);
-                       if (pPlayView->szMediaTitle) {
-                               elm_object_item_text_set(pNormalView->pNaviItem, pPlayView->szMediaTitle);
-                       } else {
-                               elm_object_item_text_set(pNormalView->pNaviItem, VP_PLAY_STRING_STREAMING_PLAYER);
-                       }
-                       if (pPlayView->szCookie) {
-                               if (!vp_mm_player_set_cookie(pNormalView->pPlayerHandle, pPlayView->szCookie)) {
-                                       VideoLogError("vp_mm_player_set_cookie fail");
-                               }
-                       }
-                       if (pPlayView->szProxy) {
-                               if (!vp_mm_player_set_proxy(pNormalView->pPlayerHandle, pPlayView->szProxy)) {
-                                       VideoLogError("vp_mm_player_set_proxy fail");
-                               }
-                       }
-                       char *szSdpPath = NULL;
-                       szSdpPath = vp_play_util_get_sdp_url((const char *)pNormalView->szMediaURL);
-                       if (vp_play_util_check_sdp_url((const char *)szSdpPath))
-                       {
-                               _vp_play_normal_view_download_sdp(pNormalView, pNormalView->szMediaURL);
-                               //_vp_play_normal_view_show_layout(pNormalView);
-
-                               return TRUE;
-                       }
-                       VP_FREE(szSdpPath);
-
-                       if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle,pNormalView->szMediaURL)) {
-                               VideoLogError("vp_mm_player_realize_async fail");
-                               //_vp_play_normal_view_show_layout(pNormalView);
-                               Evas_Object *pPopup = NULL;
-                               pPopup = vp_popup_create(pPlayView->pWin,
-                                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                       VP_PLAY_STRING_COM_ERROR,
-                                                       VP_PLAY_STRING_ERROR_UNABLE_PLAY,
-                                                       3.0, __vp_normal_prepare_error_popup_time_out_cb,
-                                                       NULL, NULL, pNormalView);
-
-                               evas_object_show(pPopup);
-
-                               pNormalView->bIsPopupShow = TRUE;
-
-                               return TRUE;
-                       }
-               }
-               else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-
-                       char *szTitle = NULL;
-                       char *szMultiPathURL = NULL;
-                       char *szSubtitleForMultiPath = NULL;
-                       int nMultiPathPosition = 0;
-                       int nMultiPathDuration = 0;
-                       bool bIsSameAP = TRUE;
-
-
-                       vp_multi_path_get_current_item(pNormalView->szMediaURL, &szMultiPathURL, &szTitle, &szSubtitleForMultiPath, &nMultiPathPosition, &nMultiPathDuration, &bIsSameAP, pPlayView->pMultiPathList);
-                       if (szSubtitleForMultiPath) {
-                               if (strlen(szSubtitleForMultiPath) > 0) {
-                                       if (vp_file_exists(szSubtitleForMultiPath)) {
-                                               pNormalView->bIsExistSubtitle = TRUE;
-                                               VideoSecureLogInfo("SUBTITLE : %s", szSubtitleForMultiPath);
-                                               vp_mm_player_set_subtitle_url(pNormalView->pPlayerHandle,szSubtitleForMultiPath);
-                                               VP_FREE(pNormalView->szSubtitleURL);
-                                       } else {
-                                               pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
-                                                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                                       VP_PLAY_STRING_COM_ERROR,
-                                                                       VP_PLAY_STRING_ERROR_SUBTITLE_FAIL,
-                                                                       3.0, __vp_normal_error_popup_time_out_cb,
-                                                                       __vp_normal_error_popup_key_event_cb,
-                                                                       __vp_normal_error_popup_mouse_event_cb,
-                                                                       pNormalView);
-                                               evas_object_show(pNormalView->pPopup);
-                                               pNormalView->bIsPopupShow = TRUE;
-                                       }
-                               }
-                       }
-
-                       if (!szTitle) {
-                               szTitle = vp_play_util_get_title_from_path(pNormalView->szMediaURL);
-                       }
-
-                       if (szTitle) {
-                               elm_object_item_text_set(pNormalView->pNaviItem, szTitle);
-                       }
-                       else {
-                               elm_object_item_text_set(pNormalView->pNaviItem, VP_PLAY_STRING_NO_TITLE);
-                       }
-
-                       if (pNormalView->nStartPosition == 0)
-                               pNormalView->nStartPosition = nMultiPathPosition;
-
-                       if (nMultiPathDuration>0)
-                               pNormalView->nDuration = nMultiPathDuration;
-
-                       VP_FREE(szMultiPathURL);
-                       VP_FREE(szSubtitleForMultiPath);
-                       VP_FREE(szTitle);
-
-                       if (!vp_mm_player_realize_async(pNormalView->pPlayerHandle,pNormalView->szMediaURL)) {
-                               VideoLogError("vp_mm_player_realize_async fail");
-                               Evas_Object *pPopup = NULL;
-                               pPopup = vp_popup_create(pPlayView->pWin,
-                                                       POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                                       VP_PLAY_STRING_COM_ERROR,
-                                                       VP_PLAY_STRING_ERROR_UNABLE_PLAY,
-                                                       3.0, __vp_normal_prepare_error_popup_time_out_cb,
-                                                       NULL, NULL, pNormalView);
-
-                               evas_object_show(pPopup);
-
-                               pNormalView->bIsPopupShow = TRUE;
-
-                               return TRUE;
-                       }
-               }
-       }
-       //_vp_play_normal_view_show_layout(pNormalView);
-       vp_play_util_set_lock_power_key();
-
-       VideoLogWarning("<<");
-
-       return TRUE;
-}
-
-
-static void _vp_play_normal_view_on_next_play(NormalView *pNormalView, bool bManual)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MESSAGE ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW) {
-               return;
-       }
-
-       bool bIsExit = FALSE;
-
-       pNormalView->nStartPosition = 0;
-       pNormalView->nDefaultAudioTrackIndex = 0;
-       pNormalView->nSpeedValue = 1;
-
-       _vp_play_normal_view_on_bookmark_mode(pNormalView, FALSE);
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB) {
-               if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_NONE) {
-                       if (bManual) {
-                               return;
-                       }
-                       else {
-                               bIsExit = TRUE;
-                       }
-               }
-               else {
-                       _vp_play_normal_view_play_start(pNormalView, FALSE);
-               }
-       }
-       else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-               PlayView *pPlayView = pNormalView->pPlayView;
-
-               if (!pPlayView) {
-                       VideoLogError("pPlayView is NULL");
-                       bIsExit = TRUE;
-               }
-               else if (!pPlayView->pMultiPathList) {
-                       VideoLogError("pMultiPathList is NULL");
-                       bIsExit = TRUE;
-               } else {
-                       if (bManual) {
-                               _vp_play_normal_view_set_played_time(pNormalView);
-
-                               char *szNextURL = NULL;
-                               char *szSubtitle = NULL;
-                               int nPosition = 0;
-                               int nDuration = 0;
-                               vp_multi_path_get_next_item(pNormalView->szMediaURL, &szNextURL, &szSubtitle, &nPosition, &nDuration, TRUE, pPlayView->pMultiPathList);
-                               VP_FREE(szSubtitle);
-                               if (szNextURL) {
-                                       VP_FREE(pNormalView->szMediaURL);
-                                       VP_STRDUP(pNormalView->szMediaURL, szNextURL);
-                                       VP_FREE(szNextURL);
-                                       pNormalView->nStartPosition = nPosition;
-                                       pNormalView->nDuration = nDuration;
-                                       _vp_play_normal_view_play_start(pNormalView, TRUE);
-                               }
-                               else {
-                                       _vp_play_normal_view_play_start(pNormalView, TRUE);
-                               }
-                               return;
-                       }
-
-                       if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_NONE) {
-                               bIsExit = TRUE;
-                       }
-                       else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_OFF) {
-                               bIsExit = TRUE;
-                       }
-                       else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL_STOP) {
-                               char *szNextURL = NULL;
-                               char *szSubtitle = NULL;
-                               int nPosition = 0;
-                               int nDuration = 0;
-                               vp_multi_path_get_next_item(pNormalView->szMediaURL, &szNextURL, &szSubtitle, &nPosition, &nDuration, FALSE, pPlayView->pMultiPathList);
-
-                               VP_FREE(szSubtitle);
-
-                               if (!szNextURL) {
-                                       bIsExit = TRUE;
-                               }
-                               else {
-                                       VP_FREE(pNormalView->szMediaURL);
-                                       VP_STRDUP(pNormalView->szMediaURL, szNextURL);
-                                       VP_FREE(szNextURL);
-                                       pNormalView->nDuration = nDuration;
-                                       _vp_play_normal_view_play_start(pNormalView, TRUE);
-                               }
-                       }
-                       else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE) {
-                               _vp_play_normal_view_play_start(pNormalView, TRUE);
-                       }
-                       else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
-                               char *szNextURL = NULL;
-                               char *szSubtitle = NULL;
-                               int nPosition = 0;
-                               int nDuration = 0;
-                               vp_multi_path_get_next_item(pNormalView->szMediaURL, &szNextURL, &szSubtitle, &nPosition, &nDuration, TRUE, pPlayView->pMultiPathList);
-                               VP_FREE(szSubtitle);
-                               if (!szNextURL) {
-                                       bIsExit = TRUE;
-                               }
-                               else {
-                                       VP_FREE(pNormalView->szMediaURL);
-                                       VP_STRDUP(pNormalView->szMediaURL, szNextURL);
-                                       VP_FREE(szNextURL);
-                                       pNormalView->nDuration = nDuration;
-                                       _vp_play_normal_view_play_start(pNormalView, TRUE);
-                               }
-                       }
-               }
-       }
-       else {
-               if (bManual) {
-                       _vp_play_normal_view_set_played_time(pNormalView);
-                       char *szNextURL = NULL;
-                       vp_media_contents_get_next_file_path(pNormalView->szMediaURL, &szNextURL, TRUE, pNormalView->pMediaItemList);
-
-                       VideoSecureLogInfo("pNormalView->szMediaURL is %s", pNormalView->szMediaURL);
-                       if (szNextURL) {
-                               VP_FREE(pNormalView->szMediaURL);
-                               VP_STRDUP(pNormalView->szMediaURL, szNextURL);
-                               VP_FREE(szNextURL);
-                               _vp_play_normal_view_play_start(pNormalView, TRUE);
-                               vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-                               if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                                       VideoLogWarning("vp_mm_player_get_state is fail");
-                               }
-                               if (nState != VP_MM_PLAYER_STATE_PLAYING) {
-                                       vp_mm_player_play(pNormalView->pPlayerHandle);
-                                       pNormalView->bManualPause = FALSE;
-                               }
-                               _vp_play_normal_view_set_play_state(pNormalView);
-                               _vp_play_normal_view_on_capture_mode(pNormalView);
-                       }
-                       else {
-                               _vp_play_normal_view_play_start(pNormalView, TRUE);
-                       }
-                       return;
-               }
-
-               if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_NONE) {
-                       bIsExit = TRUE;
-               }
-               else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_OFF) {
-                       bIsExit = TRUE;
-               }
-               else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL_STOP) {
-                       char *szNextURL = NULL;
-                       vp_media_contents_get_next_file_path(pNormalView->szMediaURL, &szNextURL, FALSE, pNormalView->pMediaItemList);
-                       if (!szNextURL) {
-                               bIsExit = TRUE;
-                       }
-                       else {
-                               VP_FREE(pNormalView->szMediaURL);
-                               VP_STRDUP(pNormalView->szMediaURL, szNextURL);
-                               VP_FREE(szNextURL);
-                               _vp_play_normal_view_play_start(pNormalView, TRUE);
-                       }
-               }
-               else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE) {
-                       _vp_play_normal_view_play_start(pNormalView, TRUE);
-               }
-               else if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
-                       char *szNextURL = NULL;
-                       vp_media_contents_get_next_file_path(pNormalView->szMediaURL, &szNextURL, TRUE, pNormalView->pMediaItemList);
-                       if (!szNextURL) {
-                               bIsExit = TRUE;
-                       }
-                       else {
-                               VP_FREE(pNormalView->szMediaURL);
-                               VP_STRDUP(pNormalView->szMediaURL, szNextURL);
-                               VP_FREE(szNextURL);
-                               _vp_play_normal_view_play_start(pNormalView, TRUE);
-                       }
-               }
-       }
-
-       if (bIsExit) {
-               if (!pPlayView->pFunc) {
-                       VideoLogError("pPlayView pFunc is NULL");
-                       return;
-               }
-
-               if (!pPlayView->pFunc->vp_play_func_exit) {
-                       VideoLogError("pPlayView exit Func is NULL");
-                       return;
-               }
-               vp_device_set_screen_off(FALSE);
-               vp_play_util_set_unlock_power_key();
-
-               pPlayView->pFunc->vp_play_func_exit(pPlayView);
-       }
-}
-
-static void _vp_play_normal_view_on_prev_play(NormalView *pNormalView, bool bManual, bool bVoice)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       pNormalView->nDefaultAudioTrackIndex = 0;
-       pNormalView->nSpeedValue = 1;
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB) {
-               _vp_play_normal_view_play_start(pNormalView, FALSE);
-               return;
-       }
-
-       int nPosition = 0;
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-               VideoLogError("vp_mm_player_get_position is fail");
-       }
-
-       pNormalView->nStartPosition = 0;
-       if (bVoice == FALSE) {
-               if (nPosition > 2000) {
-                       vp_mm_player_set_position(pNormalView->pPlayerHandle, 0);
-
-                       if (pNormalView->bManualPause) {
-                               vp_play_progressbar_set_position(pNormalView->pProgressbar, 0);
-                       }
-                       return;
-               }
-       }
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MESSAGE ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_PREVIEW ||
-               (pPlayView && (strstr(pPlayView->szMediaURL,"/.") != NULL))) {
-               return;
-       }
-
-       if (bManual) {
-               _vp_play_normal_view_set_played_time(pNormalView);
-       }
-
-       char *szPrevURL = NULL;
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-               if (!pPlayView) {
-                       _vp_play_normal_view_play_start(pNormalView, TRUE);
-                       return;
-               }
-               else if (pPlayView->pMultiPathList== NULL) {
-                       _vp_play_normal_view_play_start(pNormalView, TRUE);
-                       return;
-               }
-               else {
-                       char *szSubtitle = NULL;
-                       int nPosition = 0;
-                       int nDuration = 0;
-                       vp_multi_path_get_next_item(pNormalView->szMediaURL, &szPrevURL, &szSubtitle, &nPosition, &nDuration, TRUE, pPlayView->pMultiPathList);
-                       VP_FREE(szSubtitle);
-
-                       if (szPrevURL) {
-                               VP_FREE(pNormalView->szMediaURL);
-                               VP_STRDUP(pNormalView->szMediaURL, szPrevURL);
-                               VP_FREE(szPrevURL);
-                               pNormalView->nDuration = nDuration;
-                       }
-
-                       _vp_play_normal_view_play_start(pNormalView, TRUE);
-               }
-
-       }
-       else {
-               vp_media_contents_get_prev_file_path(pNormalView->szMediaURL, &szPrevURL, TRUE, pNormalView->pMediaItemList);
-               VideoSecureLogInfo("pNormalView->szMediaURL pre is %s", pNormalView->szMediaURL);
-               if (szPrevURL) {
-                       VP_FREE(pNormalView->szMediaURL);
-                       VP_STRDUP(pNormalView->szMediaURL, szPrevURL);
-                       VP_FREE(szPrevURL);
-               }
-
-               _vp_play_normal_view_on_bookmark_mode(pNormalView, FALSE);
-               _vp_play_normal_view_play_start(pNormalView, TRUE);
-               vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-               if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                       VideoLogWarning("vp_mm_player_get_state is fail");
-                       }
-               if (nState != VP_MM_PLAYER_STATE_PLAYING) {
-                       vp_mm_player_play(pNormalView->pPlayerHandle);
-                       pNormalView->bManualPause = FALSE;
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-}
-
-static void _vp_play_normal_view_set_played_time(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       //PlayView *pPlayView = pNormalView->pPlayView;
-       int nPosition = 0;
-       if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL &&
-               pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
-               if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-                       VideoLogError("vp_mm_player_get_position is fail");
-               } else {
-                       if (nPosition == pNormalView->nDuration) {
-                               vp_media_contents_set_played_position(pNormalView->szMediaURL, 0);
-
-                       } else {
-                               vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-                               if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                                       VideoLogWarning("vp_mm_player_get_state is fail");
-                               }
-
-                               if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-                                       nPosition -= 5000;
-                               }
-
-                               if (nPosition < 0) {
-                                       nPosition = 0;
-                               }
-                               vp_media_contents_set_played_position(pNormalView->szMediaURL, nPosition);
-                       }
-               }
-       }
-       else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-               if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-                       VideoLogError("vp_mm_player_get_position is fail");
-               }
-               else {
-                       PlayView *pPlayView = pNormalView->pPlayView;
-                       if (!pPlayView) {
-                               VideoLogError("pPlayView is NULL");
-                               return;
-                       }
-                       if (!pPlayView->pMultiPathList) {
-                               VideoLogError("pMultiPathList is NULL");
-                               return;
-                       }
-                       if (nPosition >= pNormalView->nDuration) {
-                               nPosition = 0;
-                       }
-                       vp_multi_path_set_item_position(pNormalView->szMediaURL, nPosition, pPlayView->pMultiPathList);
-               }
-
-       }
-       if (pNormalView->nLaunchingType== VIDEO_PLAY_TYPE_LIST ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER) {
-               bool bIsCloud = FALSE;
-               vp_media_contents_get_cloud_attribute(pNormalView->szMediaURL, &bIsCloud);
-               if (!bIsCloud)
-               {
-                       PlayView *pPlayView = pNormalView->pPlayView;
-                       if (!pPlayView) {
-                               VideoLogError("pPlayView is NULL");
-                               return;
-                       }
-                       if (pPlayView->bViewChange == FALSE) {
-                               if (vp_file_exists(pNormalView->szMediaURL)) {
-                                       vp_play_config_set_preview_url_videos(pNormalView->szMediaURL);
-                               }
-                       }
-                       vp_play_preference_set_preview_audio_track(pNormalView->nDefaultAudioTrackIndex);
-               }
-       }
-}
-
-static void _vp_play_normal_view_screen_capture(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       vp_mm_player_get_position(pNormalView->pPlayerHandle, &(pNormalView->nCapturePosition));
-
-       if (pNormalView->bCaptureComplete == FALSE) {
-               VideoLogWarning("Not Complete capture");
-               return;
-       }
-
-       pNormalView->bCaptureComplete = FALSE;
-       pNormalView->bCaptureBookmark = FALSE;
-
-       if (!vp_mm_player_capture_start(pNormalView->pPlayerHandle)) {
-               pNormalView->bCaptureComplete = TRUE;
-               VideoLogError("vp_mm_player_capture_start fail");
-       }
-
-}
-
-
-static void _vp_play_normal_view_screen_move(NormalView *pNormalView, bool bFoward)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       int nSetPosition = 0;
-       int nCurPosition = 0;
-
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nCurPosition)) {
-               VideoLogError("vp_mm_player_get_position is fail");
-               return;
-       }
-
-
-       if (bFoward) {
-               nSetPosition = nCurPosition  + 1000;
-       }
-       else {
-               nSetPosition = nCurPosition  - 1000;
-       }
-
-       if (pNormalView->nDuration < nSetPosition) {
-               nSetPosition = pNormalView->nDuration;
-       }
-
-       if (nSetPosition < 0) {
-               nSetPosition = 0;
-       }
-
-       if (vp_mm_player_set_position(pNormalView->pPlayerHandle, nSetPosition)) {
-               pNormalView->nWaitPos = -1;
-               pNormalView->bSeekComplete = FALSE;
-               vp_play_progressbar_set_position(pNormalView->pProgressbar, nSetPosition);
-       }
-}
-
-#ifdef ENABLE_GESTURE_ZOOM_FEATURE
-static void _vp_play_normal_view_on_zoom_mode(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       if (!pNormalView->pPlayerHandle) {
-               VideoLogWarning("Player Handle is NULL");
-               return;
-       }
-
-       if (vp_play_util_check_streaming(pNormalView->szMediaURL)) {
-               VideoLogWarning("Skip for streaming");
-               return;
-       }
-
-       if (pNormalView->fZoomValue > 1.0) {
-               pNormalView->bZoomEnable = TRUE;
-               if (!pNormalView->pZoomGuide) {
-                       VP_EVAS_TIMER_DEL(pNormalView->pMomentTimer);
-
-                       VP_EVAS_JOB_DEL(pNormalView->pVolumeJob);
-                       VP_EVAS_JOB_DEL(pNormalView->pBrightnessJob);
-
-                       if (!vp_play_brightness_unrealize(pNormalView->pBrightnessHandle)) {
-                               VideoLogWarning("vp_play_brightness_unrealize is fail");
-                       }
-
-                       if (!vp_play_volume_popup_unrealize(pNormalView->pVolumePopupHandle)) {
-                               VideoLogWarning("vp_play_volume_popup_unrealize is fail");
-                       }
-
-                       pNormalView->pZoomGuide = vp_zoom_guide_create(pNormalView->pMainLayout);
-                       vp_zoom_guide_realize(pNormalView->pZoomGuide);
-                       Evas_Object *pZoomGuideLayout = vp_zoom_guide_get_object(pNormalView->pZoomGuide);
-                       if (pZoomGuideLayout) {
-                               elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_ZOOM_GUIDE, pZoomGuideLayout);
-                       }
-                       else {
-                               VideoLogError("pZoomGuideLayout is NULL");
-                       }
-
-                       Evas_Coord_Rectangle rtSrc = {0,};
-                       Evas_Coord_Rectangle rtDst = {0,};
-                       Evas_Coord_Rectangle rtResult = {0,};
-                       int nWidth = 0;
-                       int nHeight = 0;
-
-                       elm_win_screen_size_get(pNormalView->pPlayView->pWin, NULL, NULL, &nWidth, &nHeight);
-
-                       if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-                               rtDst.w = nHeight;
-                               rtDst.h = nWidth;
-                       }
-                       else {
-                               rtDst.w = nWidth;
-                               rtDst.h = nHeight;
-                       }
-                       vp_mm_player_get_resolution(pNormalView->pPlayerHandle, &(rtSrc.w), &(rtSrc.h));
-                       vp_play_util_calculator_position(rtSrc, rtDst, &rtResult, pNormalView->nDisplayMode);
-                       vp_zoom_guide_set_move_position(pNormalView->pZoomGuide, (double)pNormalView->nZoomPosX/rtDst.w, (double)pNormalView->nZoomPosY/rtDst.h);
-                       float fPosX = pNormalView->nZoomPosX/rtResult.w;
-                       float fPosY = pNormalView->nZoomPosY/rtResult.h;
-                       if (fPosX > 1.0) {
-                               fPosX = 1.0;
-                       }
-
-                       if (fPosY > 1.0) {
-                               fPosY = 1.0;
-                       }
-
-                       if (fPosX < 0.0) {
-                               fPosX = 0.0;
-                       }
-
-                       if (fPosY < 0.0) {
-                               fPosY = 0.0;
-                       }
-               }
-               // event filtering
-               bool bLandscape = FALSE;
-               if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90 || pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-                       bLandscape = TRUE;
-               }
-               if (bLandscape && fabs(pNormalView->fPrevZoomValue - pNormalView->fZoomValue)< 0.05) {
-//                     VideoLogWarning("same ZoomValue. skip it");
-                       return;
-               }
-
-               vp_zoom_guide_set_zoom_value(pNormalView->pZoomGuide, pNormalView->fZoomValue);
-               pNormalView->fPrevZoomValue = pNormalView->fZoomValue;
-       }
-       else {
-               pNormalView->fZoomValue = 1.0;
-               pNormalView->bZoomEnable = FALSE;
-               vp_zoom_guide_set_zoom_value(pNormalView->pZoomGuide, pNormalView->fZoomValue);
-               elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_ZOOM_GUIDE);
-
-               //VideoLogError("ZoomValue : [%f], offset_x : [%d], offset_y : [%d]", pNormalView->fZoomValue, 0, 0);
-               vp_mm_player_set_zoom(pNormalView->pPlayerHandle, pNormalView->fZoomValue, 0, 0);
-
-               vp_zoom_guide_destroy(pNormalView->pZoomGuide);
-               pNormalView->pZoomGuide = NULL;
-       }
-}
-#endif
-
-
-static void _vp_play_normal_view_on_capture_mode(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-       Evas_Object *pParent = NULL;
-       pParent = pNormalView->pTopControlLayout;
-       if (!pParent) {
-               VideoLogError("pParent is NULL");
-               return;
-       }
-       vp_play_preference_get_capture_on_key(&pNormalView->bCaptureMode);
-
-       elm_object_part_content_unset(pParent, VP_PLAY_SWALLOW_NORMAL_TOP_CAPTURE);
-       elm_object_part_content_unset(pParent, VP_PLAY_SWALLOW_NORMAL_TOP_CAPTURE_REW);
-       elm_object_part_content_unset(pParent, VP_PLAY_SWALLOW_NORMAL_TOP_CAPTURE_FF);
-
-       VP_EVAS_DEL(pNormalView->pCaptureBtn);
-       VP_EVAS_DEL(pNormalView->pCaptureRewBtn);
-       VP_EVAS_DEL(pNormalView->pCaptureFFBtn);
-
-       if (!pNormalView->szMediaURL) {
-               return;
-       }
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB) {
-               return;
-       }
-
-       if (pNormalView->bCaptureMode) {
-               pNormalView->pCaptureBtn = vp_button_create(
-                                               pNormalView->pNaviFrame, "playview/custom/flat_63_63/default",
-                                               NULL,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                               (void *)pNormalView);
-               Evas_Object *pIcon = NULL;
-               pIcon = vp_button_create_icon(pNormalView->pCaptureBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_CAPTURE);
-               elm_object_part_content_set(pNormalView->pCaptureBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-               pIcon = vp_button_create_icon(pNormalView->pCaptureBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_CAPTURE_PRESS);
-               elm_object_part_content_set(pNormalView->pCaptureBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-               pIcon = vp_button_create_icon(pNormalView->pCaptureBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_CAPTURE_DIM);
-               elm_object_part_content_set(pNormalView->pCaptureBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-
-               elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_TOP_CAPTURE, pNormalView->pCaptureBtn);
-
-               evas_object_show(pNormalView->pCaptureBtn);
-
-               vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-               if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                       VideoLogWarning("vp_mm_player_get_state is fail");
-               }
-               if (nState == VP_MM_PLAYER_STATE_PAUSED ||
-                       (nState != VP_MM_PLAYER_STATE_PLAYING && pNormalView->bManualPause)) {
-                       pNormalView->pCaptureRewBtn = vp_button_create(
-                                                       pNormalView->pNaviFrame, "playview/custom/flat_63_63/default",
-                                                       NULL,
-                                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                                       (void *)pNormalView);
-
-                       pNormalView->pCaptureFFBtn = vp_button_create(
-                                                       pNormalView->pNaviFrame, "playview/custom/flat_63_63/default",
-                                                       NULL,
-                                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                                       (void *)pNormalView);
-
-                       pIcon = vp_button_create_icon(pNormalView->pCaptureRewBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_CAPTURE_REW);
-                       elm_object_part_content_set(pNormalView->pCaptureRewBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pCaptureRewBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_CAPTURE_REW_PRESS);
-                       elm_object_part_content_set(pNormalView->pCaptureRewBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pCaptureRewBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_CAPTURE_REW_DIM);
-                       elm_object_part_content_set(pNormalView->pCaptureRewBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-
-
-                       pIcon = vp_button_create_icon(pNormalView->pCaptureFFBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_CAPTURE_FF);
-                       elm_object_part_content_set(pNormalView->pCaptureFFBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pCaptureFFBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_CAPTURE_FF_PRESS);
-                       elm_object_part_content_set(pNormalView->pCaptureFFBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pCaptureFFBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_CAPTURE_FF_DIM);
-                       elm_object_part_content_set(pNormalView->pCaptureFFBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-
-                       elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_TOP_CAPTURE_REW, pNormalView->pCaptureRewBtn);
-                       elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_TOP_CAPTURE_FF, pNormalView->pCaptureFFBtn);
-
-                       evas_object_show(pNormalView->pCaptureRewBtn);
-                       evas_object_show(pNormalView->pCaptureFFBtn);
-               }
-
-       }
-}
-
-static void _vp_play_normal_view_on_share_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-       bool bDRMLock = FALSE;
-
-       _vp_play_normal_view_check_drm_lock(pNormalView, &bDRMLock);
-       if (bDRMLock) {
-               VP_EVAS_DEL(pNormalView->pPopup);
-               pNormalView->pPopup = NULL;
-
-               pNormalView->pPopup = vp_popup_create(pPlayView->pWin,
-                                               POPUP_STYLE_DEFAULT_NO_CANCEL_BTN,
-                                               VP_PLAY_STRING_COM_ERROR,
-                                               VP_PLAY_STRING_DRM_UNABLE_TO_SHARE_DRM_FILE,
-                                               3.0, __vp_normal_popup_time_out_cb,
-                                               NULL, NULL, pNormalView);
-
-               evas_object_show(pNormalView->pPopup);
-               pNormalView->bIsPopupShow = TRUE;
-               return;
-       }
-
-       if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-               VideoLogWarning("Pause Fail");
-       }
-       _vp_play_normal_view_set_play_state(pNormalView);
-
-       pNormalView->bSharePanelPause = FALSE;
-       pNormalView->bSharePanelFocusIn = FALSE;
-       VideoLogInfo("share popup: bSharePanelPause = %d", pNormalView->bManualPause);
-       if (!pNormalView->bManualPause) {
-               pNormalView->bSharePanelPause = TRUE;
-               //pNormalView->bManualPause = TRUE;
-       }
-
-       if (vp_play_app_launch_share_panel(pPlayView->pWin, pNormalView->szMediaURL, (void *)pNormalView)) {
-               pNormalView->bSharepopup = TRUE;
-
-       } else {
-               pNormalView->bSharepopup = FALSE;
-               VideoLogError("Launch share app failed");
-       }
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-
-static void _vp_play_normal_view_on_sound_alive_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (pNormalView->bVideoOnlyMode == FALSE && nState == VP_MM_PLAYER_STATE_PLAYING) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogError("Pause Fail");
-               }
-
-               _vp_play_normal_view_set_play_state(pNormalView);
-       }
-
-       vp_sound_alive_destroy(pNormalView->pSAHandle);
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       pNormalView->pSAHandle = vp_sound_alive_create(pPlayView->pWin,
-                                                       pNormalView->szMediaURL,
-                                                       __vp_normal_sound_alive_popup_close_cb,
-                                                       pNormalView->nSoundAlive);
-       if (!pNormalView->pSAHandle) {
-               VideoLogError("vp_sound_alive_create fail");
-               return;
-       }
-       if (!vp_sound_alive_set_user_data(pNormalView->pSAHandle, (void *)pNormalView)) {
-               VideoLogWarning("vp_share_set_user_data is fail");
-       }
-
-       if (!vp_sound_alive_realize(pNormalView->pSAHandle)) {
-               VideoLogWarning("vp_share_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-
-
-static void _vp_play_normal_view_on_sound_path_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       vp_sound_path_destroy(pNormalView->pSoundPathHandle);
-       pNormalView->pSoundPathHandle = NULL;
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (pNormalView->bVideoOnlyMode == FALSE && nState == VP_MM_PLAYER_STATE_PLAYING) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogError("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-       }
-
-       pNormalView->pSoundPathHandle = vp_sound_path_create(pPlayView->pWin,
-                                                       __vp_normal_sound_path_popup_close_cb);
-       if (!pNormalView->pSoundPathHandle) {
-               VideoLogError("vp_sound_path_create fail");
-               return;
-       }
-       if (!vp_sound_path_set_user_data(pNormalView->pSoundPathHandle, (void *)pNormalView)) {
-               VideoLogWarning("vp_sound_path_set_user_data is fail");
-       }
-
-       if (!vp_sound_path_realize(pNormalView->pSoundPathHandle)) {
-               VideoLogWarning("vp_sound_path_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-
-static void _vp_play_normal_view_on_audio_track_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (pNormalView->bVideoOnlyMode == FALSE && nState == VP_MM_PLAYER_STATE_PLAYING) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogError("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-
-       }
-
-       vp_audio_track_destroy(pNormalView->pAudioTrackHandle);
-       pNormalView->pAudioTrackHandle = NULL;
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-       pNormalView->pAudioTrackHandle = vp_audio_track_create(pPlayView->pWin,
-                                                       __vp_normal_audio_track_popup_close_cb,
-                                                       pNormalView->nDefaultAudioTrackIndex);
-       if (!pNormalView->pAudioTrackHandle) {
-               VideoLogError("vp_audio_track_create fail");
-               return;
-       }
-
-       if (!vp_audio_track_set_user_data(pNormalView->pAudioTrackHandle, (void *)pNormalView)) {
-               VideoLogWarning("vp_audio_track_set_user_data is fail");
-       }
-
-       int nCount = 0;
-       if (vp_mm_player_get_audio_track_count(pNormalView->pPlayerHandle, &nCount)) {
-               if (nCount > 1) {
-                       int nIdx = 0;
-                       for (nIdx = 0; nIdx < nCount; nIdx++)
-                       {       char *szCode = NULL;
-
-                               if (vp_mm_player_get_audio_track_language_code(pNormalView->pPlayerHandle, nIdx, &szCode)) {
-                                       vp_audio_track_add_Item(pNormalView->pAudioTrackHandle, szCode, nIdx);
-                               }
-                               else {
-                                       vp_audio_track_add_Item(pNormalView->pAudioTrackHandle, VP_PLAY_STRING_COM_UNKNOWN, nIdx);
-                               }
-                               VP_FREE(szCode);
-                       }
-               }
-               else {
-                       char *szTrack = g_strdup_printf("%s %d", VP_PLAY_STRING_AUDIO_TRACK, 0);
-                       vp_audio_track_add_Item(pNormalView->pAudioTrackHandle, szTrack, 0);
-                       VP_FREE(szTrack);
-               }
-       }
-       else {
-               char *szTrack = g_strdup_printf("%s %d", VP_PLAY_STRING_AUDIO_TRACK, 0);
-               vp_audio_track_add_Item(pNormalView->pAudioTrackHandle, szTrack, 0);
-               VP_FREE(szTrack);
-       }
-
-       if (!vp_audio_track_realize(pNormalView->pAudioTrackHandle)) {
-               VideoLogWarning("vp_audio_track_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-
-static void _vp_play_normal_view_on_subtitle_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       SubtitleInfo *pSubtitleInfo = NULL;
-       pSubtitleInfo = calloc(1, sizeof(SubtitleInfo));
-       if (!pSubtitleInfo) {
-               VideoLogError("pSubtitleInfo alloc fail");
-               return;
-       }
-       bool bIsClosedCaption = FALSE;
-       bIsClosedCaption = vp_mm_player_is_closed_caption_exist(pNormalView->pPlayerHandle);
-
-       pSubtitleInfo->bClosedCaption = bIsClosedCaption;
-       pSubtitleInfo->fSync = pNormalView->fSubtitleSyncValue;
-       int nCount = 0;
-       char *szSubtitle = NULL;
-
-       if (vp_mm_player_get_subtitle_track_count(pNormalView->pPlayerHandle, &nCount)) {
-               if (nCount > 0) {
-                       char *szCode = NULL;
-                       #ifdef _SUBTITLE_MULTI_LANGUAGE
-                       if (pNormalView->pSelectedSubtitleLanguage && nCount == pNormalView->nSubtitleLanguageCount) {
-                               int index = 0;
-                               VP_FREE(pSubtitleInfo->szLanguage);
-                               for (; index < nCount; ++index) {
-                                       if (pNormalView->pSelectedSubtitleLanguage[index]) {
-                                               char *szName = NULL;
-                                               vp_mm_player_get_subtitle_track_language_code(pNormalView->pPlayerHandle, index, &szCode);
-                                               vp_subtitle_track_get_name(szCode, &szName);
-                                               if (!pSubtitleInfo->szLanguage) {
-                                                       pSubtitleInfo->szLanguage = g_strdup(szName);
-                                               } else {
-                                                       char *szTmp =  g_strdup(pSubtitleInfo->szLanguage);
-                                                       VP_FREE(pSubtitleInfo->szLanguage);
-                                                       pSubtitleInfo->szLanguage = g_strdup_printf("%s,%s", szTmp, szName);
-                                                       VP_FREE(szTmp);
-                                               }
-                                               VP_FREE(szName);
-                                               VP_FREE(szCode);
-                                       }
-                               }
-                       }
-                       else
-                       #endif
-                       {
-                               vp_mm_player_get_subtitle_track_language_code(pNormalView->pPlayerHandle, pNormalView->nDefaultSubtitleTrackIndex, &szCode);
-                               vp_subtitle_track_get_name(szCode, &(pSubtitleInfo->szLanguage));
-                               VP_FREE(szCode);
-                       }
-               }
-               else {
-                       pSubtitleInfo->szLanguage = g_strdup_printf("%s", VP_PLAY_STRING_COM_UNKNOWN);
-               }
-       }
-
-       if (!pSubtitleInfo->szLanguage) {
-               pSubtitleInfo->szLanguage = g_strdup_printf("%s", VP_PLAY_STRING_COM_UNKNOWN);
-       }
-
-       vp_play_preference_get_subtitle_font_name_key(&(pSubtitleInfo->szFontName));
-       if (pSubtitleInfo->szFontName) {
-               if (strcmp(pSubtitleInfo->szFontName, "Tizen") == 0) {
-                       VP_FREE(pSubtitleInfo->szFontName);
-                       pSubtitleInfo->szFontName = g_strdup_printf("%s", VP_PLAY_STRING_FONT_DEFAULT);
-               }
-       }
-       vp_play_preference_get_subtitle_size_key(&(pSubtitleInfo->nFontSize));
-       vp_play_preference_get_subtitle_edge_key(&(pSubtitleInfo->nEdge));
-
-#ifndef SUBTITLE_K_FEATURE
-       vp_play_preference_get_subtitle_font_color_key(&(pSubtitleInfo->nTextColor));
-       vp_play_preference_get_subtitle_bg_color_key(&(pSubtitleInfo->nBGColor));
-#else
-       vp_play_preference_get_subtitle_font_color_hex_key(&(pSubtitleInfo->pTextColorHex));
-       vp_play_preference_get_subtitle_bg_color_hex_key(&(pSubtitleInfo->pBGColorHex));
-       vp_play_preference_get_subtitle_caption_win_color_hex_key(&(pSubtitleInfo->pCaptionWinColorHex));
-
-       int nAlignment = VIDEO_SUBTITLE_ALIGNMENT_CENTER;
-       vp_play_preference_get_subtitle_alignment_key(&nAlignment);
-       pSubtitleInfo->eAlignment = nAlignment;
-#endif
-       vp_mm_player_get_subtitle_url(pNormalView->pPlayerHandle, &szSubtitle);
-       if (szSubtitle) {
-               VP_STRDUP(pSubtitleInfo->szURL, szSubtitle);
-       }
-
-       VP_FREE(szSubtitle);
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB) {
-               pSubtitleInfo->bSupportSelect = FALSE;
-       }
-       else {
-               pSubtitleInfo->bSupportSelect = TRUE;
-       }
-       vp_play_subtitle_get_text(pNormalView->pSubtitle, &pSubtitleInfo->szText);
-       vp_play_subtitle_get_size_zoom(pNormalView->pSubtitle, &pSubtitleInfo->fZoom);
-
-       if (pNormalView->pSubtitlePopup) {
-               VideoLogWarning("pSubtitlePopup has been created");
-               vp_subtitle_update(pNormalView->pSubtitlePopup, pSubtitleInfo);
-       } else {
-               pNormalView->pSubtitlePopup = vp_subtitle_create(pPlayView->pWin, pSubtitleInfo,
-                                                               __vp_normal_subtitle_popup_close_cb);
-
-               if (!pNormalView->pSubtitlePopup) {
-                       VideoLogError("vp_subtitle_create fail");
-
-                       VP_FREE(pSubtitleInfo->szURL);
-                       VP_FREE(pSubtitleInfo->szText);
-                       VP_FREE(pSubtitleInfo->szLanguage);
-                       VP_FREE(pSubtitleInfo->szFontName);
-
-                       VP_FREE(pSubtitleInfo);
-                       return;
-               }
-               if (!vp_subtitle_set_user_data(pNormalView->pSubtitlePopup, (void *)pNormalView)) {
-                       VideoLogWarning("vp_subtitle_set_user_data is fail");
-               }
-
-               if (!vp_subtitle_realize(pNormalView->pSubtitlePopup)) {
-                       VideoLogWarning("vp_subtitle_realize is fail");
-               }
-       }
-
-       VP_FREE(pSubtitleInfo->szLanguage);
-       VP_FREE(pSubtitleInfo->szFontName);
-       VP_FREE(pSubtitleInfo->szText);
-       VP_FREE(pSubtitleInfo->szURL);
-       VP_FREE(pSubtitleInfo);
-
-       pNormalView->bIsSubtitleShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-
-static void _vp_play_normal_view_on_subtitle_sync_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       pNormalView->pSubtitleSyncPopup = vp_subtitle_sync_popup_create(pPlayView->pWin,
-                                                               pNormalView->fSubtitleSyncValue,
-                                                               __vp_normal_subtitle_sync_popup_update_cb,
-                                                               __vp_normal_subtitle_sync_popup_done_cb);
-
-       if (!pNormalView->pSubtitleSyncPopup) {
-               VideoLogError("vp_subtitle_sync_popup_create fail");
-               return;
-       }
-       if (!vp_subtitle_sync_popup_set_user_data(pNormalView->pSubtitleSyncPopup, (void *)pNormalView)) {
-               VideoLogWarning("vp_subtitle_sync_popup_set_user_data is fail");
-       }
-
-       if (!vp_subtitle_sync_popup_realize(pNormalView->pSubtitleSyncPopup)) {
-               VideoLogWarning("vp_subtitle_sync_popup_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-#ifdef _SUBTITLE_MULTI_LANGUAGE
-/*static bool _vp_play_normal_view_selected_subtitle_language_cb(int nTrackNum, void *pUserData)
-{
-       VideoLogInfo("nTrackNum is %d", nTrackNum);
-       NormalView *pNormalView = (NormalView *)pUserData;
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-       if (!pNormalView->pPlayerHandle) {
-               VideoLogError("pPlayerHandle is NULL");
-               return FALSE;
-       }
-
-       if (nTrackNum >= 0)
-               pNormalView->pSelectedSubtitleLanguage[nTrackNum] = true;
-
-       return TRUE;
-}*/
-
-static void _vp_play_normal_view_selected_subtitle_language(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       if (!pNormalView->pPlayerHandle) {
-               VideoLogError("pPlayerHandle is NULL");
-               return;
-       }
-
-       VP_FREE(pNormalView->pSelectedSubtitleLanguage);
-       pNormalView->pSelectedSubtitleLanguage = calloc(pNormalView->nSubtitleLanguageCount, sizeof(int));
-
-//     if (!vp_mm_player_track_foreach_selected_subtitle_language(pNormalView->pPlayerHandle,
-//                                                             _vp_play_normal_view_selected_subtitle_language_cb,
-//                                                             pNormalView)) {
-//             VideoLogError("vp_mm_player_track_foreach_selected_subtitle_language failed");
-//             return;
-//     }
-}
-
-static void _vp_play_normal_view_subtitle_add_language_cb(int index, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       if (!pNormalView->pPlayerHandle) {
-               VideoLogError("pPlayerHandle is NULL");
-               return;
-       }
-
-       if (!pNormalView->pSelectedSubtitleLanguage) {
-               VideoLogError("pSelectedSubtitleLanguage is NULL");
-               return;
-       }
-
-       if (index < 0 || index > pNormalView->nSubtitleLanguageCount) {
-               VideoLogError("Invalid index");
-               return;
-       }
-
-       if (pNormalView->pSelectedSubtitleLanguage[index]) {
-               VideoLogWarning("index:%d has been added", index);
-       } else {
-               if (!vp_mm_player_add_subtitle_language(pNormalView->pPlayerHandle, index)) {
-                       VideoLogError("vp_mm_player_add_subtitle_language:%d failed", index);
-               } else {
-                       VideoLogInfo("vp_mm_player_add_subtitle_language:%d successed", index);
-                       pNormalView->pSelectedSubtitleLanguage[index] = true;
-               }
-       }
-}
-
-static void _vp_play_normal_view_subtitle_remove_language_cb(int index, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pUserData;
-       if (!pNormalView->pPlayerHandle) {
-               VideoLogError("pPlayerHandle is NULL");
-               return;
-       }
-
-       if (!pNormalView->pSelectedSubtitleLanguage) {
-               VideoLogError("pSelectedSubtitleLanguage is NULL");
-               return;
-       }
-
-       if (index < 0 || index > pNormalView->nSubtitleLanguageCount) {
-               VideoLogError("Invalid index");
-               return;
-       }
-
-       if (pNormalView->pSelectedSubtitleLanguage[index]) {
-               if (!vp_mm_player_remove_subtitle_language(pNormalView->pPlayerHandle, index)) {
-                       VideoLogError("vp_mm_player_remove_subtitle_language:%d failed", index);
-               } else {
-                       VideoLogInfo("vp_mm_player_remove_subtitle_language:%d successed", index);
-                       pNormalView->pSelectedSubtitleLanguage[index] = false;
-               }
-       } else {
-               VideoLogWarning("index:%d has not been selected", index);
-       }
-}
-
-#endif
-static void _vp_play_normal_view_on_subtitle_language_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogError("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-
-       }
-
-       vp_subtitle_track_destroy(pNormalView->pSubtitleTrackHandle);
-       pNormalView->pSubtitleTrackHandle = NULL;
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-#ifdef _SUBTITLE_MULTI_LANGUAGE
-       pNormalView->pSubtitleTrackHandle = vp_subtitle_track_create(pPlayView->pWin,
-                                                       __vp_normal_subtitle_track_popup_close_cb);
-#else
-       pNormalView->pSubtitleTrackHandle = vp_subtitle_track_create(pPlayView->pWin,
-                                                       __vp_normal_subtitle_track_popup_close_cb,
-                                                       pNormalView->nDefaultSubtitleTrackIndex);
-#endif
-       if (!pNormalView->pSubtitleTrackHandle) {
-               VideoLogError("vp_subtitle_track_create fail");
-               return;
-       }
-
-       if (!vp_subtitle_track_set_user_data(pNormalView->pSubtitleTrackHandle, (void *)pNormalView)) {
-               VideoLogWarning("vp_subtitle_track_set_user_data is fail");
-       }
-
-       int nCount = 0;
-       if (vp_mm_player_get_subtitle_track_count(pNormalView->pPlayerHandle, &nCount)) {
-               VideoLogInfo("== TRACK : %d ==", nCount);
-               if (nCount > 0) {
-                       #ifdef _SUBTITLE_MULTI_LANGUAGE
-                       pNormalView->nSubtitleLanguageCount = nCount;
-                       _vp_play_normal_view_selected_subtitle_language(pNormalView);
-                       #endif
-                       int nIdx = 0;
-                       for (nIdx = 0; nIdx < nCount; nIdx++)
-                       {       char *szCode = NULL;
-                               if (vp_mm_player_get_subtitle_track_language_code(pNormalView->pPlayerHandle, nIdx, &szCode)) {
-                                       VideoLogWarning("== language : %s ==", szCode);
-                                       #ifdef _SUBTITLE_MULTI_LANGUAGE
-                                       vp_subtitle_track_add_Item(pNormalView->pSubtitleTrackHandle, szCode, nIdx, pNormalView->pSelectedSubtitleLanguage[nIdx]);
-                                       #else
-                                       vp_subtitle_track_add_Item(pNormalView->pSubtitleTrackHandle, szCode, nIdx);
-                                       #endif
-                               }
-                               VP_FREE(szCode);
-                       }
-                       #ifdef _SUBTITLE_MULTI_LANGUAGE
-                       vp_subtitle_track_set_add_language_cb(pNormalView->pSubtitleTrackHandle, _vp_play_normal_view_subtitle_add_language_cb);
-                       vp_subtitle_track_set_remove_language_cb(pNormalView->pSubtitleTrackHandle, _vp_play_normal_view_subtitle_remove_language_cb);
-                       #endif
-               }
-               else {
-                       char *szTrack = g_strdup_printf("%s %d", VP_PLAY_STRING_COM_DEFAULT, 0);
-                       #ifdef _SUBTITLE_MULTI_LANGUAGE
-                       vp_subtitle_track_add_Item(pNormalView->pSubtitleTrackHandle, szTrack, 0, true);
-                       #else
-                       vp_subtitle_track_add_Item(pNormalView->pSubtitleTrackHandle, szTrack, 0);
-                       #endif
-                       VP_FREE(szTrack);
-               }
-       } else {
-               char *szTrack = g_strdup_printf("%s %d", VP_PLAY_STRING_COM_DEFAULT, 0);
-               #ifdef _SUBTITLE_MULTI_LANGUAGE
-               vp_subtitle_track_add_Item(pNormalView->pSubtitleTrackHandle, szTrack, 0, true);
-               #else
-               vp_subtitle_track_add_Item(pNormalView->pSubtitleTrackHandle, szTrack, 0);
-               #endif
-               VP_FREE(szTrack);
-       }
-
-       if (!vp_subtitle_track_realize(pNormalView->pSubtitleTrackHandle)) {
-               VideoLogWarning("vp_subtitle_track_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-}
-
-#ifdef SUBTITLE_K_FEATURE
-static void __vp_normal_subtitle_alignment_popup_done_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       vp_subtitle_alignment_destroy(pNormalView->pSubtitleAlignmentPopup);
-       pNormalView->pSubtitleAlignmentPopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (nType != -1) {
-
-               vp_subtitle_alignment_t nAlignment = VP_SUBTITLE_ALIGNMENT_CENTER;
-               if (nType == VIDEO_SUBTITLE_ALIGNMENT_LEFT) {
-                       nAlignment = VP_SUBTITLE_ALIGNMENT_LEFT;
-               }
-               else if (nType == VIDEO_SUBTITLE_ALIGNMENT_CENTER) {
-                       nAlignment = VP_SUBTITLE_ALIGNMENT_CENTER;
-               }
-               else if (nType == VIDEO_SUBTITLE_ALIGNMENT_RIGHT) {
-                       nAlignment = VP_SUBTITLE_ALIGNMENT_RIGHT;
-               }
-
-               vp_play_subtitle_set_alignment(pNormalView->pSubtitle, nAlignment);
-
-               vp_play_preference_set_subtitle_alignment_key(nType);
-
-               _vp_play_normal_view_set_subtitle_font_config(pNormalView);
-
-               /*Set caption window: size, rel1, color*/
-               __vp_normal_subtitle_set_caption_window(pNormalView);
-       }
-
-       _vp_play_normal_view_on_subtitle_popup(pNormalView);
-
-       /*if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }*/
-}
-
-static void _vp_play_normal_view_on_subtitle_alignment_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-       int nAlignment = 0;
-       vp_play_preference_get_subtitle_alignment_key(&nAlignment);
-
-       pNormalView->pSubtitleAlignmentPopup = vp_subtitle_alignment_create(pPlayView->pWin,
-                                                               __vp_normal_subtitle_alignment_popup_done_cb,
-                                                               nAlignment);
-
-       if (!pNormalView->pSubtitleAlignmentPopup) {
-               VideoLogError("vp_subtitle_alignment_create fail");
-               return;
-       }
-       if (!vp_subtitle_alignment_set_user_data(pNormalView->pSubtitleAlignmentPopup, (void *)pNormalView)) {
-               VideoLogWarning("vp_subtitle_alignment_set_user_data is fail");
-       }
-
-       if (!vp_subtitle_alignment_realize(pNormalView->pSubtitleAlignmentPopup)) {
-               VideoLogWarning("vp_subtitle_alignment_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-}
-#endif
-
-static void _vp_play_normal_view_on_subtitle_select_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-       char *szSubtitle = NULL;
-       GList *pItemList = NULL;
-       char *szDir = NULL;
-       szDir = vp_play_util_get_folder_from_path(pNormalView->szMediaURL);
-#ifdef ENABLE_SUBTITLE
-       bool bIsExistSubtitlesInFolder = FALSE;
-//     bIsExistSubtitlesInFolder = vp_play_util_is_exist_subtitle_from_path(szDir);
-       bIsExistSubtitlesInFolder = vp_play_util_get_subtitle_path_list(&pItemList);
-       if (bIsExistSubtitlesInFolder && pItemList) {
-
-               if (g_list_length(pItemList) > 0) {
-                       bIsExistSubtitlesInFolder = TRUE;
-               } else {
-                       g_list_free(pItemList);
-                       pItemList = NULL;
-               }
-
-       } else {
-               VideoLogInfo("bIsExistSubtitlesInFolder && pItemList failed");
-               bIsExistSubtitlesInFolder = FALSE;
-       }
-
-       /*if (bIsExistSubtitlesInFolder == FALSE) {
-               VP_EVAS_DEL(pNormalView->pPopup);
-
-               pNormalView->bIsPopupShow = TRUE;
-               pNormalView->pPopup = vp_popup_create(pPlayView->pWin, POPUP_STYLE_DEFAULT_WITH_CANCEL_BTN,
-                                                       NULL,
-                                                       VP_PLAY_STRING_ERROR_NO_SUBTITLE,
-                                                       0.0, NULL,
-                                                       __vp_normal_popup_key_event_cb,
-                                                       __vp_normal_popup_mouse_event_cb,
-                                                       pNormalView);
-
-               Evas_Object *pBtn = NULL;
-               pBtn = elm_button_add(pNormalView->pPopup);
-               elm_object_style_set (pBtn, "popup_button/default");
-               elm_object_domain_translatable_text_set(pBtn, VP_SYS_STR_PREFIX, VP_PLAY_STRING_COM_OK_IDS);
-               elm_object_part_content_set(pNormalView->pPopup, "button1", pBtn);
-               evas_object_smart_callback_add(pBtn, "clicked", __vp_normal_subtitle_popup_key_event_cb, (void*)pNormalView);
-               evas_object_show(pNormalView->pPopup);
-
-               VP_FREE(szDir);
-
-               return;
-       }*/
-#endif
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogError("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-
-       }
-
-#ifdef ENABLE_SUBTITLE
-       //vp_play_util_get_subtitles_from_path(szDir, &pItemList);
-#else
-       vp_play_util_get_subtitle_path_list(&pItemList);
-#endif
-       VP_FREE(szDir);
-       vp_mm_player_get_subtitle_url(pNormalView->pPlayerHandle, &szSubtitle);
-       pNormalView->pSubtitleSelectPopup = vp_subtitle_select_create(pPlayView->pWin, __vp_normal_subtitle_select_popup_done_cb, __vp_normal_subtitle_select_button_popup_done_cb,
-                                                               pItemList, szSubtitle, !(pNormalView->bIsExistSubtitle));
-       VP_FREE(szSubtitle);
-       if (pItemList) {
-
-               int nCount = 0;
-               int i = 0;
-               nCount = g_list_length(pItemList);
-               for (i = 0; i < nCount; i++)
-               {
-                       char *szName = NULL;
-                       szName = (char *)g_list_nth_data(pItemList, i);
-                       VP_FREE(szName);
-               }
-
-               g_list_free(pItemList);
-               pItemList = NULL;
-       }
-
-       if (!pNormalView->pSubtitleSelectPopup) {
-               VideoLogError("vp_subtitle_select_create fail");
-               return;
-       }
-       if (!vp_subtitle_select_set_user_data(pNormalView->pSubtitleSelectPopup, (void *)pNormalView)) {
-               VideoLogWarning("vp_subtitle_select_set_user_data is fail");
-       }
-
-       if (!vp_subtitle_select_realize(pNormalView->pSubtitleSelectPopup)) {
-               VideoLogWarning("vp_subtitle_select_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-
-static void _vp_play_normal_view_on_subtitle_font_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       char *szFont = NULL;
-       vp_play_preference_get_subtitle_font_name_key(&szFont);
-
-       pNormalView->pSubtitleFontPopup = vp_subtitle_font_create(pPlayView->pWin,
-                                                               __vp_normal_subtitle_font_popup_done_cb,
-                                                               szFont);
-       VP_FREE(szFont);
-
-       if (!pNormalView->pSubtitleFontPopup) {
-               VideoLogError("vp_subtitle_font_create fail");
-               return;
-       }
-       if (!vp_subtitle_font_set_user_data(pNormalView->pSubtitleFontPopup, (void *)pNormalView)) {
-               VideoLogWarning("vp_subtitle_font_set_user_data is fail");
-       }
-
-       if (!vp_subtitle_font_realize(pNormalView->pSubtitleFontPopup)) {
-               VideoLogWarning("vp_subtitle_font_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-
-}
-
-
-static void _vp_play_normal_view_on_subtitle_size_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-       int nSize = 0;
-       vp_play_preference_get_subtitle_size_key(&nSize);
-
-       pNormalView->pSubtitleSizePopup = vp_subtitle_size_create(pPlayView->pWin,
-                                                               __vp_normal_subtitle_size_popup_done_cb,
-                                                               nSize);
-
-       if (!pNormalView->pSubtitleSizePopup) {
-               VideoLogError("vp_subtitle_size_create fail");
-               return;
-       }
-       if (!vp_subtitle_size_set_user_data(pNormalView->pSubtitleSizePopup, (void *)pNormalView)) {
-               VideoLogWarning("vp_subtitle_size_set_user_data is fail");
-       }
-
-       if (!vp_subtitle_size_realize(pNormalView->pSubtitleSizePopup)) {
-               VideoLogWarning("vp_subtitle_size_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-
-static void __vp_normal_subtitle_edge_popup_done_cb(int nType, bool bPause, void *pUserData)
-{
-       if (!pUserData) {
-               VideoLogError("pUserData is NULL");
-               return;
-       }
-       // to do
-       NormalView *pNormalView = (NormalView *)pUserData;
-
-       vp_subtitle_edge_destroy(pNormalView->pSubtitleEdgePopup);
-       pNormalView->pSubtitleEdgePopup = NULL;
-       pNormalView->bIsPopupShow = FALSE;
-
-       if (nType != -1) {
-               vp_play_subtitle_set_edge(pNormalView->pSubtitle, nType);
-               vp_play_preference_set_subtitle_edge_key(nType);
-               //_vp_play_normal_view_set_subtitle_font_config(pNormalView);
-               /*Set caption window: size, rel1, color*/
-               __vp_normal_subtitle_set_caption_window(pNormalView);
-       }
-
-       if (bPause) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-       }
-       _vp_play_normal_view_on_subtitle_popup(pNormalView);
-
-       /*if (pNormalView->bManualPause == FALSE) {
-               if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                       VideoLogWarning("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-               _vp_play_normal_view_on_capture_mode(pNormalView);
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-       }*/
-}
-
-static void _vp_play_normal_view_on_subtitle_edge_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-       int nEdge = 0;
-       vp_play_preference_get_subtitle_edge_key(&nEdge);
-
-       pNormalView->pSubtitleEdgePopup = vp_subtitle_edge_create(pPlayView->pWin,
-                                                               __vp_normal_subtitle_edge_popup_done_cb,
-                                                               nEdge);
-
-       if (!pNormalView->pSubtitleEdgePopup) {
-               VideoLogError("vp_subtitle_size_create fail");
-               return;
-       }
-       if (!vp_subtitle_edge_set_user_data(pNormalView->pSubtitleEdgePopup, (void *)pNormalView)) {
-               VideoLogWarning("vp_subtitle_size_set_user_data is fail");
-       }
-
-       if (!vp_subtitle_edge_realize(pNormalView->pSubtitleEdgePopup)) {
-               VideoLogWarning("vp_subtitle_size_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-
-static void _vp_play_normal_view_on_subtitle_font_color_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-       int nColor = 0;
-       vp_play_preference_get_subtitle_font_color_key(&nColor);
-
-#ifndef SUBTITLE_K_FEATURE
-       pNormalView->pSubtitleFontColorPopup = vp_subtitle_color_create(pPlayView->pWin,
-                                                               __vp_normal_subtitle_font_color_popup_done_cb,
-                                                               nColor);
-#else
-       char *szColorHex = NULL;
-       vp_play_preference_get_subtitle_font_color_hex_key(&szColorHex);
-       if (!szColorHex) {
-               VideoLogError("szColorHex is NULL");
-       }
-       else
-       {
-       pNormalView->pSubtitleFontColorPopup = vp_subtitle_color_hex_create(pPlayView->pWin,
-                                                                                                                                       __vp_normal_subtitle_font_color_popup_done_hex_cb,
-                                                                                                                                       szColorHex);
-       }
-       VP_FREE(szColorHex);
-#endif
-
-       if (!pNormalView->pSubtitleFontColorPopup) {
-               VideoLogError("vp_subtitle_color_create fail");
-               return;
-       }
-       if (!vp_subtitle_color_set_user_data(pNormalView->pSubtitleFontColorPopup, (void *)pNormalView)) {
-               VideoLogWarning("vp_subtitle_font_color_set_user_data is fail");
-       }
-
-       if (!vp_subtitle_color_realize(pNormalView->pSubtitleFontColorPopup)) {
-               VideoLogWarning("vp_subtitle_color_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-
-
-static void _vp_play_normal_view_on_subtitle_bg_color_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-#ifndef SUBTITLE_K_FEATURE
-       int nColor = 0;
-       vp_play_preference_get_subtitle_bg_color_key(&nColor);
-
-       pNormalView->pSubtitleBGColorPopup = vp_subtitle_bg_color_create(pPlayView->pWin,
-                                                               __vp_normal_subtitle_bg_color_popup_done_cb,
-                                                               nColor);
-#else
-       char *szColorHex = NULL;
-       vp_play_preference_get_subtitle_bg_color_hex_key(&szColorHex);
-       if (!szColorHex) {
-               VideoLogError("szColorHex is NULL");
-       }
-       else  //prevent issue fix
-       {
-           pNormalView->pSubtitleBGColorPopup = vp_subtitle_color_hex_create(pPlayView->pWin,
-                                                                                                                                       __vp_normal_subtitle_bg_color_popup_done_hex_cb,
-                                                                                                                                       szColorHex);
-           VP_FREE(szColorHex);
-       }
-#endif
-
-       if (!pNormalView->pSubtitleBGColorPopup) {
-               VideoLogError("vp_subtitle_bg_color_create fail");
-               return;
-       }
-       if (!vp_subtitle_color_set_user_data(pNormalView->pSubtitleBGColorPopup, (void *)pNormalView)) {
-               VideoLogWarning("vp_subtitle_color_set_user_data is fail");
-       }
-
-       if (!vp_subtitle_color_realize(pNormalView->pSubtitleBGColorPopup)) {
-               VideoLogWarning("vp_subtitle_color_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-
-static void _vp_play_normal_view_on_subtitle_caption_win_color_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       char *szColorHex = NULL;
-       vp_play_preference_get_subtitle_caption_win_color_hex_key(&szColorHex);
-       if (!szColorHex) {
-               VideoLogError("szColorHex is NULL");
-       }
-       else
-       {
-       pNormalView->pSubtitleCaptionWinColorPopup = vp_subtitle_color_hex_create(pPlayView->pWin,
-                                                                                                                                       __vp_normal_subtitle_caption_win_color_popup_done_hex_cb,
-                                                                                                                                       szColorHex);
-       }
-       VP_FREE(szColorHex);
-
-
-       if (!pNormalView->pSubtitleCaptionWinColorPopup) {
-               VideoLogError("vp_subtitle_color_hex_create fail");
-               return;
-       }
-       if (!vp_subtitle_color_set_user_data(pNormalView->pSubtitleCaptionWinColorPopup, (void *)pNormalView)) {
-               VideoLogWarning("vp_subtitle_color_set_user_data is fail");
-       }
-
-       if (!vp_subtitle_color_realize(pNormalView->pSubtitleCaptionWinColorPopup)) {
-               VideoLogWarning("vp_subtitle_color_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-}
-
-static void _vp_play_normal_view_on_capture_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       vp_capture_popup_destroy(pNormalView->pCapturePopup);
-       pNormalView->pCapturePopup = NULL;
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       vp_play_preference_get_capture_on_key(&pNormalView->bCaptureMode);
-
-       pNormalView->pCapturePopup = vp_capture_popup_create(pPlayView->pWin,
-                                                       pNormalView->bCaptureMode,
-                                                       __vp_normal_capture_popup_close_cb);
-       if (!pNormalView->pCapturePopup) {
-               VideoLogError("vp_capture_popup_create fail");
-               return;
-       }
-       if (!vp_capture_popup_set_user_data(pNormalView->pCapturePopup, (void *)pNormalView)) {
-               VideoLogWarning("vp_capture_popup_set_user_data is fail");
-       }
-
-       if (!vp_capture_popup_realize(pNormalView->pCapturePopup)) {
-               VideoLogWarning("vp_capture_popup_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-
-static void _vp_play_normal_view_on_play_speed_popup_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
-{
-       NormalView *pNormalView = (NormalView *)data;
-       _vp_play_normal_view_on_play_speed_popup(pNormalView);
-}
-
-static void _vp_play_normal_view_on_play_speed_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       vp_play_speed_popup_destroy(pNormalView->pPlaySpeedPopup);
-       pNormalView->pPlaySpeedPopup = NULL;
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       pNormalView->pPlaySpeedPopup = vp_play_speed_popup_create(pPlayView->pWin,
-                                                               pNormalView->fPlaySpeed,
-                                                               __vp_normal_play_speed_popup_update_cb,
-                                                               __vp_normal_play_speed_popup_done_cb);
-
-       if (!pNormalView->pPlaySpeedPopup) {
-               VideoLogError("vp_play_speed_popup_create fail");
-               return;
-       }
-       if (!vp_play_speed_popup_set_user_data(pNormalView->pPlaySpeedPopup, (void *)pNormalView)) {
-               VideoLogWarning("vp_play_speed_popup_set_user_data is fail");
-       }
-
-       if (!vp_play_speed_popup_realize(pNormalView->pPlaySpeedPopup)) {
-               VideoLogWarning("vp_play_speed_popup_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-}
-
-
-static void _vp_play_normal_view_on_setting_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       vp_setting_destroy(pNormalView->pSettingHandle);
-       pNormalView->pSettingHandle = NULL;
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (pNormalView->bVideoOnlyMode == FALSE && nState == VP_MM_PLAYER_STATE_PLAYING) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogError("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-       }
-
-       if (!vp_play_preference_get_sound_alive_status(&pNormalView->nSoundAlive)) {
-               VideoLogError("vp_play_preference_get_sound_alive_status failed");
-       }
-       bool bEarjack = vp_sound_device_is_enable(VP_SOUND_DEVICE_EARJACK, pNormalView->pPlayView);
-       if (bEarjack == FALSE && pNormalView->nSoundAlive == VIDEO_SA_7_1_CH) {
-               pNormalView->nSoundAlive = VIDEO_SA_NORMAL;
-               if (!vp_play_preference_set_sound_alive_status(pNormalView->nSoundAlive)) {
-                       VideoLogError("vp_play_preference_set_sound_alive_status failed");
-               }
-               if (!vp_mm_player_set_sound_filter(pNormalView->pPlayerHandle, VP_MM_PLAYER_FILTER_NONE)) {
-                       VideoLogWarning("vp_mm_player_set_sound_filter is fail");
-               }
-       }
-
-       SettingInfo *pSettingInfo = NULL;
-       pSettingInfo = calloc(1, sizeof(SettingInfo));
-       if (!pSettingInfo) {
-               VideoLogError("failed to allocate memory");
-               return;
-       }
-
-       char *szDir = NULL;
-       szDir = vp_play_util_get_folder_from_path(pNormalView->szMediaURL);
-
-       pSettingInfo->fSpeed = pNormalView->fPlaySpeed;
-       pSettingInfo->nSoundAlive = pNormalView->nSoundAlive;
-       pSettingInfo->nRepeatMode = pNormalView->nRepeatMode;
-       pSettingInfo->bExternalMode = pNormalView->bVideoOnlyMode;
-       if (pNormalView->bIsExistSubtitle == FALSE) {
-               pSettingInfo->bSelectSubtitle = vp_play_util_is_exist_subtitle_from_path(szDir);
-       }
-       else {
-               pSettingInfo->bSelectSubtitle = TRUE;
-       }
-
-       VP_FREE(szDir);
-
-       pSettingInfo->bStreaming = FALSE;
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-               pSettingInfo->bStreaming = TRUE;
-       }
-#ifdef ENABLE_DRM_FEATURE
-       vp_drm_is_drm_file(pNormalView->szMediaURL, &(pSettingInfo->bDrm));
-#endif
-       char *szCode = NULL;
-       int nCount = 0;
-       if (vp_mm_player_get_audio_track_count(pNormalView->pPlayerHandle, &nCount)) {
-               if (nCount > 1) {
-                       if (vp_mm_player_get_audio_track_language_code(pNormalView->pPlayerHandle, pNormalView->nDefaultAudioTrackIndex, &szCode)) {
-                               vp_audio_track_get_name(szCode, &(pSettingInfo->szAudioTrack));
-                       }
-                       else {
-                               pSettingInfo->szAudioTrack = g_strdup_printf("%s",VP_PLAY_STRING_COM_UNKNOWN);
-                       }
-               }
-               else {
-                       pSettingInfo->szAudioTrack = g_strdup_printf("%s %d", VP_PLAY_STRING_AUDIO_TRACK, 0);
-               }
-       }
-       else {
-               pSettingInfo->szAudioTrack = g_strdup_printf("%s %d", VP_PLAY_STRING_AUDIO_TRACK, 0);
-       }
-       VP_FREE(szCode);
-
-       vp_play_preference_get_capture_on_key(&pSettingInfo->bCapture);
-
-       pNormalView->pSettingHandle = vp_setting_create(pPlayView->pWin, pSettingInfo,
-                                                       __vp_normal_setting_popup_close_cb);
-       if (!pNormalView->pSettingHandle) {
-               VideoLogError("vp_setting_create fail");
-
-               VP_FREE(pSettingInfo->szAudioTrack);
-               VP_FREE(pSettingInfo);
-               return;
-       }
-
-       VP_FREE(pSettingInfo->szAudioTrack);
-       VP_FREE(pSettingInfo);
-
-       if (!vp_setting_set_user_data(pNormalView->pSettingHandle, (void *)pNormalView)) {
-               VideoLogWarning("vp_setting_set_user_data is fail");
-       }
-
-       if (!vp_setting_realize(pNormalView->pSettingHandle)) {
-               VideoLogWarning("vp_setting_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-}
-
-static void _vp_play_normal_view_on_detail_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       vp_detail_destroy(pNormalView->pDetailHandle);
-       pNormalView->pDetailHandle = NULL;
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (pNormalView->bVideoOnlyMode == FALSE && nState == VP_MM_PLAYER_STATE_PLAYING) {
-               if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-                       VideoLogError("Pause Fail");
-               }
-               _vp_play_normal_view_set_play_state(pNormalView);
-       }
-
-       _vp_play_normal_view_set_play_state(pNormalView);
-
-       vp_detail_info *pDetailInfo = NULL;
-
-       pDetailInfo = calloc(1, sizeof(vp_detail_info));
-       if (!pDetailInfo) {
-               VideoLogError("pDetailInfo is alloc fail");
-               return;
-       }
-       int nWidth = 0;
-       int nHeight = 0;
-       double dLatitude = 0.0;
-       double dLongitude = 0.0;
-       char *szModifiedTime = NULL;
-       char *szTitle = NULL;
-       char *szFileDate = NULL;
-       int nDuration = 0;
-
-#ifdef ENABLE_DRM_FEATURE
-       vp_drm_is_drm_file(pNormalView->szMediaURL, &(pDetailInfo->bDrm));
-       vp_drm_is_playready_drm_file(pNormalView->szMediaURL, &(pDetailInfo->bPlayready));
-       _vp_play_normal_view_check_drm_lock(pNormalView, &(pDetailInfo->bForwardLock));
-#endif
-       if (pDetailInfo->bPlayready == FALSE) { /* Just check it for performance */
-               vp_media_contents_get_content_info(pNormalView->szMediaURL, &szTitle, &nWidth, &nHeight, &nDuration, &dLatitude, &dLongitude, &szModifiedTime);
-               if (szTitle) {
-                       pDetailInfo->szTitle = vp_play_util_get_title_from_path(szTitle);
-               } else {
-                       pDetailInfo->szTitle = vp_play_util_get_title_from_path(pNormalView->szMediaURL);
-               }
-
-               if (nWidth == 0) {
-                       vp_media_metadata_get_width(pNormalView->szMediaURL, &nWidth);
-               }
-               if (nHeight == 0) {
-                       vp_media_metadata_get_height(pNormalView->szMediaURL, &nHeight);
-               }
-       } else {
-               pDetailInfo->szTitle = vp_play_util_get_title_from_path(pNormalView->szMediaURL);
-       }
-
-       vp_play_util_get_file_info(pNormalView->szMediaURL, &pDetailInfo->szSize, &pDetailInfo->szDate, &pDetailInfo->szFormat);
-
-       VP_FREE(szTitle);
-       VP_FREE(szFileDate);
-       if (!szModifiedTime && pDetailInfo->szDate) {
-               pDetailInfo->szLastModified = g_strdup(pDetailInfo->szDate);
-       } else {
-               pDetailInfo->szLastModified = g_strdup(szModifiedTime);
-       }
-       pDetailInfo->szResolution = g_strdup_printf("%d X %d", nWidth, nHeight);
-       pDetailInfo->szLatitude = g_strdup_printf("%f", dLatitude);
-       pDetailInfo->szLongitude = g_strdup_printf("%f", dLongitude);
-
-       if (vp_file_exists((const char*)pNormalView->szMediaURL)) {
-               pDetailInfo->szLocation = vp_dir_get((const char*)pNormalView->szMediaURL);
-       }
-
-       pNormalView->pDetailHandle = vp_detail_create(pPlayView->pWin, __vp_normal_detail_popup_close_cb, pDetailInfo);
-       if (!pNormalView->pDetailHandle) {
-               VideoLogError("vp_detail_create fail");
-
-               VP_FREE(pDetailInfo->szTitle);
-               VP_FREE(pDetailInfo->szFormat);
-               VP_FREE(pDetailInfo->szDate);
-               VP_FREE(pDetailInfo->szSize);
-               VP_FREE(pDetailInfo->szLastModified);
-               VP_FREE(pDetailInfo->szResolution);
-               VP_FREE(pDetailInfo->szLatitude);
-               VP_FREE(pDetailInfo->szLongitude);
-               VP_FREE(pDetailInfo->szLocation);
-               VP_FREE(pDetailInfo);
-               return;
-       }
-       if (!vp_detail_set_user_data(pNormalView->pDetailHandle, (void *)pNormalView)) {
-               VideoLogWarning("vp_detail_set_user_data is fail");
-       }
-
-       if (!vp_detail_realize(pNormalView->pDetailHandle)) {
-               VideoLogWarning("vp_detail_realize is fail");
-       }
-       pNormalView->bIsPopupShow = TRUE;
-
-       VP_FREE(pDetailInfo->szTitle);
-       VP_FREE(pDetailInfo->szFormat);
-       VP_FREE(pDetailInfo->szDate);
-       VP_FREE(pDetailInfo->szSize);
-       VP_FREE(pDetailInfo->szResolution);
-       VP_FREE(pDetailInfo->szLatitude);
-       VP_FREE(pDetailInfo->szLongitude);
-       VP_FREE(pDetailInfo->szLocation);
-       VP_FREE(pDetailInfo);
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-}
-
-static void _vp_play_normal_view_on_volume_popup(NormalView *pNormalView, bool bToggle)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       bool bLandscape = vp_play_util_get_landscape_check(pNormalView->nRotate);
-       bool bIsRealize = FALSE;
-
-       if (pNormalView->pVolumePopupHandle) {
-               if (!vp_play_volume_popup_unrealize(pNormalView->pVolumePopupHandle)) {
-                       VideoLogWarning("vp_play_volume_popup_unrealize is fail");
-               }
-       }
-       if (!pNormalView->pVolumeHandle) {
-               if (!pNormalView->pPlayView) {
-                       VideoLogError("pNormalView->pPlayView is NULL");
-                       return;
-               }
-
-               Evas_Object *pParent = pNormalView->pPlayView->pWin;
-
-               pNormalView->pVolumeHandle = vp_play_volume_create(pParent, pNormalView->pPlayerHandle, __vp_normal_volume_change_value_cb);
-               if (!pNormalView->pVolumeHandle) {
-                       VideoLogError("pNormalView->pVolumeHandle  is NULL");
-                       return;
-               }
-               if (!vp_play_volume_set_user_data(pNormalView->pVolumeHandle, (void *)pNormalView)) {
-                       VideoLogWarning("vp_play_volume_set_user_data is fail");
-                       return;
-               }
-               if (!pNormalView->bLockScreen) {
-                       vp_play_volume_set_mouse_callbacks(pNormalView->pVolumeHandle, pNormalView->pPlayView->pWin);
-               } else {
-                       vp_play_volume_unset_mouse_callbacks(pNormalView->pVolumeHandle, pNormalView->pPlayView->pWin);
-               }
-       }
-       Evas_Object *pParent = pNormalView->pPlayView->pWin;
-       if (!vp_play_volume_set_landscape_mode(pNormalView->pVolumeHandle, bLandscape, pParent)) {
-               VideoLogWarning("vp_play_volume_set_landscape_mode is fail");
-               return;
-       }
-
-       if (!vp_play_volume_is_realize(pNormalView->pVolumeHandle, &bIsRealize)) {
-               VideoLogWarning("vp_play_volume_is_realize is fail");
-               return;
-       }
-
-       if (bIsRealize && bToggle) {
-               if (!vp_play_volume_unrealize(pNormalView->pVolumeHandle)) {
-                       VideoLogWarning("vp_play_volume_unrealize is fail");
-               }
-       }
-       else {
-               if (!vp_play_volume_update_value(pNormalView->pVolumeHandle)) {
-                       VideoLogWarning("vp_play_volume_update_value is fail");
-               }
-
-               VP_EVAS_DEL(pNormalView->pCtxPopup);
-
-               if (!vp_play_volume_realize(pNormalView->pVolumeHandle, pNormalView->pPlayView->pWin)) {
-                       VideoLogWarning("vp_play_volume_realize is fail");
-               }
-       }
-}
-
-static void _vp_play_normal_view_on_bookmark_mode(NormalView *pNormalView, bool bShow)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       if (bShow) {
-               _vp_play_normal_view_show_layout(pNormalView);
-       }
-
-       if (bShow) {
-               pNormalView->bCaptureComplete = TRUE;
-               vp_play_bookmark_realize(pNormalView->pBookmarkHandle);
-#ifndef SUBTITLE_K_FEATURE
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_BOOKMARK_ON, "*");
-#endif
-               elm_object_part_content_set(pNormalView->pControlLayout, VP_PLAY_SWALLOW_NORMAL_BOOKMARK, pNormalView->pBookmarkObj);
-       }
-       else {
-               pNormalView->bCaptureComplete = TRUE;
-#ifndef SUBTITLE_K_FEATURE
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_BOOKMARK_OFF, "*");
-#endif
-               elm_object_part_content_unset(pNormalView->pControlLayout, VP_PLAY_SWALLOW_NORMAL_BOOKMARK);
-               vp_play_bookmark_unrealize(pNormalView->pBookmarkHandle);
-       }
-}
-
-static void _vp_play_normal_view_download_sdp(NormalView *pNormalView, char *szSdpPath)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       if (!szSdpPath) {
-               VideoLogError("szSubtitlePath is NULL");
-               return;
-       }
-
-       if (pNormalView->pDownloadHandle) {
-               VppDownloadDestroyItem(pNormalView->pDownloadHandle);
-               pNormalView->pDownloadHandle = NULL;
-       }
-
-       VppDownloadCallback pFunc = {0,};
-
-       pFunc.stateChangedCb = __vp_normal_sdp_download_state_change_cb;
-
-       VideoSecureLogDebug(" ############### %s ##########################",szSdpPath);
-       pNormalView->pDownloadHandle = VppDownloadCreateItem(szSdpPath, VP_PLAY_SDP_TEMP_DIR, NULL, VPP_DOWNLOAD_ITEM_TYPE_VIDEO_FILE, pFunc, (void *)pNormalView);
-
-       if (!pNormalView->pDownloadHandle) {
-               VideoLogError("pDownloadHandle is NULL");
-               return;
-       }
-
-       if (!VppDownloadRequestAppend(pNormalView->pDownloadHandle)) {
-               VideoLogError("VppDownloadRequestAppend is fail");
-               return;
-       }
-
-}
-
-static void _vp_play_normal_view_all_close_popup(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       if (pNormalView->pPopup) {
-               VP_EVAS_DEL(pNormalView->pPopup);
-               pNormalView->pPopup = NULL;
-       }
-
-       if (pNormalView->pCtxPopup) {
-               VP_EVAS_DEL(pNormalView->pCtxPopup);
-               pNormalView->pCtxPopup = NULL;
-       }
-
-       if (pNormalView->pDetailHandle) {
-               vp_detail_destroy(pNormalView->pDetailHandle);
-               pNormalView->pDetailHandle = NULL;
-       }
-
-       if (pNormalView->pSubtitlePopup) {
-               vp_subtitle_destroy(pNormalView->pSubtitlePopup);
-               pNormalView->pSubtitlePopup = NULL;
-               pNormalView->bIsSubtitleShow = FALSE;
-       }
-
-       if (pNormalView->pSubtitleSelectPopup) {
-               vp_subtitle_select_destroy(pNormalView->pSubtitleSelectPopup);
-               pNormalView->pSubtitleSelectPopup = NULL;
-       }
-
-       if (pNormalView->pSubtitleFontPopup) {
-               vp_subtitle_font_destroy(pNormalView->pSubtitleFontPopup);
-               pNormalView->pSubtitleFontPopup = NULL;
-       }
-
-       if (pNormalView->pSubtitleFontColorPopup) {
-               vp_subtitle_color_destroy(pNormalView->pSubtitleFontColorPopup);
-               pNormalView->pSubtitleFontColorPopup = NULL;
-       }
-
-       if (pNormalView->pSubtitleBGColorPopup) {
-               vp_subtitle_bg_color_destroy(pNormalView->pSubtitleBGColorPopup);
-               pNormalView->pSubtitleBGColorPopup = NULL;
-       }
-
-       if (pNormalView->pSubtitleEdgePopup) {
-               vp_subtitle_edge_destroy(pNormalView->pSubtitleEdgePopup);
-               pNormalView->pSubtitleEdgePopup = NULL;
-       }
-
-       if (pNormalView->pSubtitleSizePopup) {
-               vp_subtitle_size_destroy(pNormalView->pSubtitleSizePopup);
-               pNormalView->pSubtitleSizePopup = NULL;
-       }
-
-       if (pNormalView->pSubtitleSyncPopup) {
-               vp_subtitle_sync_popup_destroy(pNormalView->pSubtitleSyncPopup);
-               pNormalView->pSubtitleSyncPopup = NULL;
-       }
-
-       if (pNormalView->pRepeatHandle) {
-               vp_repeat_destroy(pNormalView->pRepeatHandle);
-               pNormalView->pRepeatHandle = NULL;
-       }
-
-       if (pNormalView->pSAHandle) {
-               vp_sound_alive_destroy(pNormalView->pSAHandle);
-               pNormalView->pSAHandle = NULL;
-       }
-
-       if (pNormalView->pSoundPathHandle) {
-               vp_sound_path_destroy(pNormalView->pSoundPathHandle);
-               pNormalView->pSoundPathHandle = NULL;
-       }
-
-       if (pNormalView->pAudioTrackHandle) {
-               vp_audio_track_destroy(pNormalView->pAudioTrackHandle);
-               pNormalView->pAudioTrackHandle = NULL;
-       }
-
-       if (pNormalView->pSettingHandle) {
-               vp_setting_destroy(pNormalView->pSettingHandle);
-               pNormalView->pSettingHandle = NULL;
-       }
-
-       if (pNormalView->pCapturePopup) {
-               vp_capture_popup_destroy(pNormalView->pCapturePopup);
-               pNormalView->pCapturePopup = NULL;
-       }
-
-       if (pNormalView->pPlaySpeedPopup) {
-               vp_mm_player_set_rate(pNormalView->pPlayerHandle, (float)pNormalView->fPlaySpeed);
-               vp_play_speed_popup_destroy(pNormalView->pPlaySpeedPopup);
-               pNormalView->pPlaySpeedPopup = NULL;
-       }
-
-       pNormalView->bIsPopupShow = FALSE;
-}
-
-static void _vp_play_normal_view_show_layout(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       if (!pNormalView->pNaviItem) {
-               VideoLogError("pNaviItem is NULL");
-               return;
-       }
-
-       if (pNormalView->bLockScreen) {
-               VideoLogError("bLockScreen is TRUE");
-               vp_play_normal_view_set_lock_screen(pNormalView, pNormalView->bLockScreen);
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-       if (!pPlayView->pWin) {
-               VideoLogError("pPlayView->pWin is NULL");
-               return;
-       }
-
-       vp_device_set_frame_rate(60);
-
-       //_vp_play_normal_view_update_progress_value(pNormalView);
-       _vp_play_normal_view_set_rotate_lock_state(pNormalView);
-
-       VP_EVAS_TIMER_DEL(pNormalView->pScreenShotTimer);
-
-       elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_SCREENSHOT_PORTRAIT);
-       elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_SCREENSHOT_LANDSCAPE);
-
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SCREEN_HIDE, "*");
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_ROTATE_HIDE, "*");
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_VOLUME_HIDE, "*");
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_PLAYING_SPEED_HIDE, "*");
-
-       VP_EVAS_DEL(pNormalView->pScreenShot);
-       pNormalView->pScreenShot = NULL;
-
-       elm_object_item_signal_emit(pNormalView->pNaviItem, VP_NORMAL_SIGNAL_NAVIFRAME_TITLE_SHOW, "elm");
-       _vp_play_normal_view_show_rotate(pNormalView);
-       _vp_play_normal_view_show_volume(pNormalView);
-
-       bool bLandscape = vp_play_util_get_landscape_check(pNormalView->nRotate);
-       if (bLandscape) {
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_LANDSCAPE_SHOW, "*");
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_NO_EFFECT_LANDSCAPE_SHOW, "*");
-               elm_object_signal_emit(pNormalView->pControlLayout, VP_NORMAL_SIGNAL_CONTROL_LANDSCAPE_MODE, "*");
-               elm_object_signal_emit(pNormalView->pFunctionLayout, VP_NORMAL_SIGNAL_FUNCTION_LANDSCAPE_MODE, "*");
-               vp_play_progressbar_set_landscape_mode(pNormalView->pProgressbar, TRUE);
-       }
-       else {
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_PORTRAIT_SHOW, "*");
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_NO_EFFECT_PORTRAIT_SHOW, "*");
-               elm_object_signal_emit(pNormalView->pControlLayout, VP_NORMAL_SIGNAL_CONTROL_PORTRAIT_MODE, "*");
-               elm_object_signal_emit(pNormalView->pFunctionLayout, VP_NORMAL_SIGNAL_FUNCTION_PORTRAIT_MODE, "*");
-               vp_play_progressbar_set_landscape_mode(pNormalView->pProgressbar, FALSE);
-       }
-
-       bool bIsRealize = FALSE;
-       if (pNormalView->pBookmarkHandle) {
-               vp_play_bookmark_is_realize(pNormalView->pBookmarkHandle, &bIsRealize);
-               if (bIsRealize) {
-#ifndef SUBTITLE_K_FEATURE
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_BOOKMARK_ON, "*");
-#endif
-               }
-       }
-
-       _vp_play_normal_view_set_play_state(pNormalView);
-       _vp_play_normal_view_on_capture_mode(pNormalView);
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-       pNormalView->bShowLayout = TRUE;
-       vp_play_normal_view_set_main_layout_focus_out((void *)pPlayView->pNormalView);
-       _vp_play_normal_view_set_button_focus_sequence(pNormalView);
-       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-}
-
-static void _vp_play_normal_view_hide_layout(NormalView *pNormalView, bool bNoEffect)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       if (!pNormalView->pNaviItem) {
-               VideoLogError("pNaviItem is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       if (pNormalView->pBookmarkHandle) {
-               bool bIsRealize = FALSE;
-               bool bEditMode = FALSE;
-               bool bPressed = FALSE;
-               if (!vp_play_bookmark_is_realize(pNormalView->pBookmarkHandle, &bIsRealize)) {
-                       VideoLogWarning("vp_play_bookmark_is_realize fail");
-               }
-               if (bIsRealize) {
-                       if (!vp_play_bookmark_get_edit_mode(pNormalView->pBookmarkHandle, &bEditMode)) {
-                               VideoLogWarning("vp_play_bookmark_get_edit_mode fail");
-                       }
-                       if (bEditMode) {
-                               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-                               return;
-                       }
-
-                       if (!vp_play_bookmark_get_pressed_status(pNormalView->pBookmarkHandle, &bPressed)) {
-                               VideoLogWarning("vp_play_bookmark_get_pressed_status fail");
-                       }
-
-                       if (bPressed) {
-                               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-                               return;
-                       }
-               }
-       }
-
-       VP_EVAS_TIMER_DEL(pNormalView->pScreenShotTimer);
-
-       elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_SCREENSHOT_PORTRAIT);
-       elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_SCREENSHOT_LANDSCAPE);
-
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SCREEN_HIDE, "*");
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_ROTATE_HIDE, "*");
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_VOLUME_HIDE, "*");
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_PLAYING_SPEED_HIDE, "*");
-
-       VP_EVAS_DEL(pNormalView->pScreenShot);
-       pNormalView->pScreenShot = NULL;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pProgressTimer);
-
-       if (bNoEffect) {
-               elm_object_item_signal_emit(pNormalView->pNaviItem, VP_NORMAL_SIGNAL_NAVIFRAME_TITLE_NO_EFFECT_HIDE, "elm");
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_NO_EFFECT_HIDE, "*");
-       }
-       else {
-               elm_object_item_signal_emit(pNormalView->pNaviItem, VP_NORMAL_SIGNAL_NAVIFRAME_TITLE_HIDE, "elm");
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_HIDE, "*");
-       }
-       vp_play_normal_view_set_main_layout_focus_out((void *)pPlayView->pNormalView);
-       pNormalView->bShowLayout = FALSE;
-}
-
-static double _vp_play_normal_view_get_mouse_pos_ratio(Evas_Object *pObj, int nCurX)
-{
-       if (!pObj) {
-               VideoLogError("pObj is NULL");
-               return 0.0;
-       }
-
-       int nWidth = 0;
-       int nCurrent = 0;
-       double dRatio = 0.0;
-
-       evas_object_geometry_get(pObj, NULL, NULL, &nWidth, NULL);
-
-       nCurrent = nCurX - (VP_NORMAL_PROGRESS_BAR_START_TERM);
-       nWidth = nWidth - (VP_NORMAL_PROGRESS_BAR_WIDTH_TERM);
-
-       if (nCurrent < 0) {
-               nCurrent = 0;
-       } else if (nCurrent > nWidth) {
-               nCurrent = nWidth;
-       }
-
-       dRatio = (double)nCurrent / nWidth;
-
-       return dRatio;
-}
-
-static void _vp_play_normal_view_create_progress_timer(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       VP_EVAS_TIMER_DEL(pNormalView->pProgressTimer);
-
-       pNormalView->pProgressTimer =
-               ecore_timer_add(VP_NORMAL_PROGRESS_TIMER_INTERVAL,
-               __vp_normal_progressbar_timer_cb, (void *)pNormalView);
-}
-
-static void _vp_play_normal_view_create_layout_hide_timer(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-       pNormalView->pHideTimer = ecore_timer_add(VP_NORMAL_HIDE_LAYOUT_TIMER_INTERVAL,
-                               __vp_normal_hide_layout_timer_cb, (void *)pNormalView);
-
-}
-
-static void _vp_play_normal_view_show_rotate(NormalView *pNormalView)
-{
-       bool bLockState = FALSE;
-
-       if (!vp_play_config_get_rotate_lock_status(&bLockState)) {
-               VideoLogError("vp_play_config_get_rotate_lock_status is fail");
-               return;
-       }
-
-       if (!bLockState) {
-               if (pNormalView->pMainLayout) {
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_ROTATE_SHOW, "*");
-               }
-       }
-}
-
-static void _vp_play_normal_view_show_volume(NormalView *pNormalView)
-{
-       bool bLockState = FALSE;
-
-       /*if (!vp_play_config_get_rotate_lock_status(&bLockState)) {
-               VideoLogError("vp_play_config_get_rotate_lock_status is fail");
-               return;
-       }*/
-
-       if (!bLockState) {
-               if (pNormalView->pMainLayout) {
-                       if ((pNormalView->fPlaySpeed - 0.05) > 1.000 || (pNormalView->fPlaySpeed + 0.05) < 1.000)
-                       {
-                               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_PLAYING_SPEED_SHOW, "*");
-                               elm_object_signal_callback_add(pNormalView->pMainLayout, "elm,action,click", "", _vp_play_normal_view_on_play_speed_popup_cb, pNormalView);
-                               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-                       } else {
-                               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_PLAYING_SPEED_HIDE, "*");
-                       }
-                       char szTxt[5] = {0,};
-                       snprintf(szTxt, 5, "%1.1fX", (float)pNormalView->fPlaySpeed);
-                       elm_object_part_text_set(pNormalView->pMainLayout, VP_PLAY_PART_NORMAL_PLAYING_SPEED_TXT, szTxt);
-                       }
-                       bool bLandscape = vp_play_util_get_landscape_check(pNormalView->nRotate);
-                       if (bLandscape) {
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_VOLUME_LANDSCAPE_SHOW, "*");
-                       }
-                       else
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_VOLUME_PORTRAIT_SHOW, "*");
-               }
-}
-
-static void _vp_play_normal_view_set_rotate_lock_state(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       bool bLockState = FALSE;
-
-       if (!vp_play_config_get_rotate_lock_status(&bLockState)) {
-               VideoLogError("vp_play_config_get_rotate_lock_status is fail");
-               return;
-       }
-
-       /*if (!pNormalView->pSoundPathBtn) {
-               elm_object_item_part_content_unset(pNormalView->pNaviItem, "title_right_btn");
-       }
-       else*/
-       {
-               if (pNormalView->pMainLayout) {
-                       elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_ROTATE);
-               }
-       }
-
-       VP_EVAS_DEL(pNormalView->pRotateBtn);
-       pNormalView->pRotateBtn = NULL;
-
-
-       Evas_Object *pParent = NULL;
-       if (!pNormalView->pSoundPathBtn) {
-               pParent = pNormalView->pMainLayout;
-
-       } else if (pNormalView->pFunctionLayout) {
-
-               pParent = pNormalView->pFunctionLayout;
-
-       } else {
-
-               pParent = pNormalView->pMainLayout;
-       }
-
-       if (!bLockState) {
-               pNormalView->pRotateBtn = vp_button_create(
-                                       pParent, "playview/custom/flat_46_46/default",
-                                       VP_PLAY_STRING_COM_ROTATE,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
-
-               Evas_Object *pIcon = NULL;
-               pIcon = vp_button_create_icon(pNormalView->pRotateBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_ROTATE);
-               elm_object_part_content_set(pNormalView->pRotateBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-               pIcon = vp_button_create_icon(pNormalView->pRotateBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_ROTATE_PRESS);
-               elm_object_part_content_set(pNormalView->pRotateBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-               pIcon = vp_button_create_icon(pNormalView->pRotateBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_ROTATE_DIM);
-               elm_object_part_content_set(pNormalView->pRotateBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-
-               /*if (!pNormalView->pSoundPathBtn) {
-                       elm_object_item_part_content_set(pNormalView->pNaviItem, "title_right_btn", pNormalView->pRotateBtn);
-               }
-               else */
-               {
-                       if (pNormalView->pMainLayout) {
-                               elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_ROTATE, pNormalView->pRotateBtn);
-                       }
-               }
-       }
-
-}
-
-static void _vp_play_normal_view_set_volume_lock_state(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       bool bLockState = FALSE;
-
-       /*if (!vp_play_config_get_rotate_lock_status(&bLockState)) {
-               VideoLogError("vp_play_config_get_rotate_lock_status is fail");
-               return;
-       }*/
-
-       /*if (!pNormalView->pSoundPathBtn) {
-               elm_object_item_part_content_unset(pNormalView->pNaviItem, "title_right_btn");
-       }
-       else*/
-       {
-               if (pNormalView->pMainLayout) {
-                       elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_VOLUME);
-               }
-       }
-
-       VP_EVAS_DEL(pNormalView->pVolumeBtn);
-       pNormalView->pVolumeBtn = NULL;
-
-
-       Evas_Object *pParent = NULL;
-       if (pNormalView->pSoundPathBtn == NULL)
-       {
-               pParent = pNormalView->pMainLayout;
-
-       } else if (pNormalView->pFunctionLayout) {
-
-               pParent = pNormalView->pFunctionLayout;
-
-       } else {
-
-               pParent = pNormalView->pMainLayout;
-       }
-
-       if (!bLockState) {
-               pNormalView->pVolumeBtn = vp_button_create(
-                                       pParent, "playview/custom/flat_46_46/default",  VP_PLAY_STRING_COM_VOLUME,
-                                       (Evas_Smart_Cb)__vp_normal_function_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
-               if (!pNormalView->pVolumeBtn) {
-               VideoLogError("elm_button_add is fail");
-               return;
-               }
-               Evas_Object *pIcon = NULL;
-               int nVolume = 0;
-               vp_sound_get_volume(&nVolume);
-
-               VideoLogError("nVolume = %d:", nVolume);
-
-               if ((nVolume == 0)) {
-                       pIcon = vp_button_create_icon(pNormalView->pVolumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_MUTE);
-                       elm_object_part_content_set(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pVolumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_MUTE_PRESS);
-                       elm_object_part_content_set(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pVolumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_MUTE_DIM);
-                       elm_object_part_content_set(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-               } else {
-                       pIcon = vp_button_create_icon(pNormalView->pVolumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_VOLUME);
-                       elm_object_part_content_set(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pVolumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_VOLUME_PRESS);
-                       elm_object_part_content_set(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-                       pIcon = vp_button_create_icon(pNormalView->pVolumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_VOLUME_DIM);
-                       elm_object_part_content_set(pNormalView->pVolumeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-               }
-
-               if (pNormalView->pMainLayout) {
-               elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_VOLUME, pNormalView->pVolumeBtn);
-               }       
-       }
-}
-
-static void _vp_play_normal_view_set_sound_path_state(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-       VideoLogInfo("set_sound_path");
-
-       bool bSoundPath = FALSE;
-       bool bEarjack = FALSE;
-
-       vp_sound_path_destroy(pNormalView->pSoundPathHandle);
-       pNormalView->pSoundPathHandle = NULL;
-
-       vp_sound_is_sound_path_enable(&bSoundPath);
-
-       bEarjack = vp_sound_device_is_enable(VP_SOUND_DEVICE_EARJACK, pNormalView->pPlayView);
-
-       if (pNormalView->bEarjackConnect != bEarjack) {
-               if (bEarjack == FALSE) {
-                       pNormalView->bManualPause = TRUE;
-               }
-       }
-
-       pNormalView->bEarjackConnect = bEarjack;
-
-       if (!vp_play_preference_get_sound_alive_status(&pNormalView->nSoundAlive)) {
-               VideoLogError("vp_play_preference_get_sound_alive_status failed");
-       }
-       if (bEarjack == FALSE && pNormalView->nSoundAlive == VIDEO_SA_7_1_CH) {
-               pNormalView->nSoundAlive = VIDEO_SA_NORMAL;
-               if (!vp_play_preference_set_sound_alive_status(pNormalView->nSoundAlive)) {
-                       VideoLogError("vp_play_preference_set_sound_alive_status failed");
-               }
-               if (!vp_mm_player_set_sound_filter(pNormalView->pPlayerHandle, VP_MM_PLAYER_FILTER_NONE)) {
-                       VideoLogWarning("vp_mm_player_set_sound_filter is fail");
-               }
-       }
-
-       elm_object_item_part_content_unset(pNormalView->pNaviItem, "title_right_btn");
-       VideoLogInfo("rotate_lock_state_sound:%d", bSoundPath);
-
-       VP_EVAS_DEL(pNormalView->pSoundPathBtn);
-       pNormalView->pSoundPathBtn = NULL;
-
-       if (bSoundPath) {
-               VP_EVAS_DEL(pNormalView->pRotateBtn);
-               pNormalView->pRotateBtn = NULL;
-
-               video_sound_device_type_t nType = VP_SOUND_DEVICE_NONE;
-               vp_sound_get_active_device(&nType);
-               char *szIconPath = VP_PLAY_NORMAL_RES_SPEAKER;
-               switch (nType)
-               {
-               case VP_SOUND_DEVICE_SPEAKER:
-                       szIconPath = VP_PLAY_NORMAL_RES_SPEAKER;
-                       break;
-
-               case VP_SOUND_DEVICE_EARJACK:
-                       szIconPath = VP_PLAY_NORMAL_RES_EARPHONE;
-                       break;
-
-               case VP_SOUND_DEVICE_BLUETOOTH:
-                       szIconPath = VP_PLAY_NORMAL_RES_BLUETOOTH_HEADSET;
-                       break;
-
-               case VP_SOUND_DEVICE_HDMI:
-                       szIconPath = VP_PLAY_NORMAL_RES_ICON_HDMI;
-                       break;
-
-               case VP_SOUND_DEVICE_MIRRORING:
-                       szIconPath = VP_PLAY_NORMAL_RES_MIRRORING;
-                       break;
-
-               case VP_SOUND_DEVICE_USB_AUDIO:
-                       szIconPath = VP_PLAY_NORMAL_RES_USB_AUDIOE;
-                       break;
-
-               default:
-                       szIconPath = VP_PLAY_NORMAL_RES_SPEAKER;
-                       break;
-               }
-
-               pNormalView->pSoundPathBtn = vp_navirame_button_create(pNormalView->pNaviFrame, "playview/custom/navi_button/default", VP_PLAY_RESROUCE_EDJ_PATH,
-                       (const char *)szIconPath, (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb, (void *)pNormalView);
-
-               elm_object_item_part_content_set(pNormalView->pNaviItem, "title_right_btn", pNormalView->pSoundPathBtn);
-       }
-}
-
-static void _vp_play_normal_view_set_play_state(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-       if (!pPlayView->pWin) {
-               VideoLogError("pPlayView->pWin is NULL");
-               return;
-       }
-
-       Evas_Object *pParent = NULL;
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-
-       pParent = pNormalView->pControlLayout;
-
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (pPlayView->bAVRCP && nState != VP_MM_PLAYER_STATE_NONE && nState != VP_MM_PLAYER_STATE_IDLE) {
-               vp_avrcp_noti_player_state(nState);
-       }
-
-       elm_object_part_content_unset(pParent, VP_PLAY_SWALLOW_NORMAL_PLAY);
-       evas_object_hide(pNormalView->pPauseBtn);
-       evas_object_hide(pNormalView->pResumeBtn);
-
-       if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-               VideoLogWarning("VP_MM_PLAYER_STATE_PLAYING");
-               evas_object_show(pNormalView->pPauseBtn);
-//             elm_object_focus_set(pNormalView->pPauseBtn, EINA_TRUE);
-               elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_PLAY, pNormalView->pPauseBtn);
-               evas_object_hide(pNormalView->pResumeBtn);
-
-               if (!pNormalView->pProgressTimer) {
-                       _vp_play_normal_view_create_progress_timer(pNormalView);
-               }
-               vp_play_util_set_lock_power_key();
-               vp_play_progressbar_set_opacity(pNormalView->pProgressbar, FALSE);
-       }
-       else {
-               VideoLogWarning("Play_Status[%d]", nState);
-               evas_object_show(pNormalView->pResumeBtn);
-               elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_PLAY, pNormalView->pResumeBtn);
-               evas_object_hide(pNormalView->pPauseBtn);
-               VP_EVAS_TIMER_DEL(pNormalView->pProgressTimer);
-
-               if (nState == VP_MM_PLAYER_STATE_PAUSED) {
-                       vp_device_set_screen_off(FALSE);
-               }
-               vp_play_util_set_unlock_power_key();
-       }
-
-       VideoLogWarning("STATUS[%d]", nState);
-}
-
-static Evas_Object *_vp_play_normal_view_create_main_layout(Evas_Object *pParent)
-{
-       if (!pParent) {
-               VideoLogError("Parent is NULL");
-               return NULL;
-       }
-
-       Evas_Object *pObj = NULL;
-       Eina_Bool bRet = EINA_FALSE;
-
-       pObj = elm_layout_add(pParent);
-       if (!pObj) {
-               VideoLogError("elm_layout_add object is NULL");
-               return NULL;
-       }
-
-       bRet = elm_layout_file_set(pObj, VP_PLAY_NORMAL_MAIN_EDJ, VP_PLAY_EDJ_GROUP_NORMAL_MAIN);
-       if (bRet != EINA_TRUE) {
-               VideoLogError("elm_layout_file_set fail : %s [%s]", VP_PLAY_NORMAL_MAIN_EDJ, VP_PLAY_EDJ_GROUP_NORMAL_MAIN);
-       }
-
-       evas_object_show(pObj);
-
-       return pObj;
-}
-
-static bool _vp_play_normal_view_create_gesture_layout(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("Parent is NULL");
-               return FALSE;
-       }
-
-       Evas_Object *pParent = NULL;
-       PlayView *pPlayView = pNormalView->pPlayView;
-       Eina_Bool bRet = EINA_FALSE;
-
-       pParent = pPlayView->pMainLayout;
-
-       pNormalView->pMainEventRect = elm_layout_add(pParent);
-       bRet = elm_layout_file_set(pNormalView->pMainEventRect, VP_PLAY_GESTURE_EDJ, VP_PLAY_EDJ_GROUP_GESTURE);
-       if (bRet != EINA_TRUE) {
-               VideoLogError("elm_layout_file_set fail : %s [%s]", VP_PLAY_GESTURE_EDJ, VP_PLAY_EDJ_GROUP_GESTURE);
-               return FALSE;
-       }
-       elm_object_part_content_set(pParent, "elm.swallow.event", pNormalView->pMainEventRect);
-
-       pNormalView->pGestureRect = elm_gesture_layer_add(pNormalView->pMainEventRect);
-       if (!pNormalView->pGestureRect) {
-               VideoLogError("elm_gesture_layer_add is NULL");
-               return FALSE;
-       }
-       elm_gesture_layer_hold_events_set(pNormalView->pGestureRect, EINA_FALSE);
-
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_TAPS,
-                               ELM_GESTURE_STATE_START, __vp_normal_gesture_n_tab_start_cb, (void *)pNormalView);
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_TAPS,
-                               ELM_GESTURE_STATE_END, __vp_normal_gesture_n_tab_end_cb, (void *)pNormalView);
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_TAPS,
-                               ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_n_tab_abort_cb, (void *)pNormalView);
-
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_MOMENTUM,
-                               ELM_GESTURE_STATE_START, __vp_normal_gesture_momentum_start_cb, (void *)pNormalView);
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_MOMENTUM,
-                               ELM_GESTURE_STATE_END, __vp_normal_gesture_momentum_end_cb, (void *)pNormalView);
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_MOMENTUM,
-                               ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_momentum_end_cb, (void *)pNormalView);
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_MOMENTUM,
-                               ELM_GESTURE_STATE_MOVE, __vp_normal_gesture_momentum_move_cb, (void *)pNormalView);
-
-#ifdef ENABLE_GESTURE_ZOOM_FEATURE
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_ZOOM,
-                               ELM_GESTURE_STATE_START, __vp_normal_gesture_zoom_start_cb, (void *)pNormalView);
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_ZOOM,
-                               ELM_GESTURE_STATE_END, __vp_normal_gesture_zoom_end_cb, (void *)pNormalView);
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_ZOOM,
-                               ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_zoom_abort_cb, (void *)pNormalView);
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_ZOOM,
-                               ELM_GESTURE_STATE_MOVE, __vp_normal_gesture_zoom_move_cb, (void *)pNormalView);
-#endif
-
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_DOUBLE_TAPS,
-                               ELM_GESTURE_STATE_START, __vp_normal_gesture_double_click_start_cb, (void *)pNormalView);
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_DOUBLE_TAPS,
-                               ELM_GESTURE_STATE_END, __vp_normal_gesture_double_click_end_cb, (void *)pNormalView);
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_DOUBLE_TAPS,
-                               ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_double_click_abort_cb, (void *)pNormalView);
-
-#ifdef FLICK_JUMP
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_FLICKS,
-                               ELM_GESTURE_STATE_START, __vp_normal_gesture_flick_start_cb, (void *)pNormalView);
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_FLICKS,
-                               ELM_GESTURE_STATE_END, __vp_normal_gesture_flick_end_cb, (void *)pNormalView);
-       elm_gesture_layer_cb_set(pNormalView->pGestureRect, ELM_GESTURE_N_FLICKS,
-                               ELM_GESTURE_STATE_ABORT, __vp_normal_gesture_flick_abort_cb, (void *)pNormalView);
-#endif
-
-       elm_gesture_layer_line_angular_tolerance_set(pNormalView->pGestureRect, 60);    // 60 degree ??
-
-       elm_gesture_layer_attach(pNormalView->pGestureRect, pNormalView->pMainEventRect);
-
-       evas_object_show(pNormalView->pMainEventRect);
-
-       return TRUE;
-}
-
-static Evas_Object *_vp_play_normal_view_create_top_control_layout(Evas_Object *pParent)
-{
-       if (!pParent) {
-               VideoLogError("Parent is NULL");
-               return NULL;
-       }
-
-       Evas_Object *pObj = NULL;
-       Eina_Bool bRet = EINA_FALSE;
-
-       pObj = elm_layout_add(pParent);
-       if (!pObj) {
-               VideoLogError("elm_layout_add object is NULL");
-               return NULL;
-       }
-
-       bRet = elm_layout_file_set(pObj, VP_PLAY_NORMAL_TOP_CONTROL_EDJ, VP_PLAY_EDJ_GROUP_NORMAL_TOP_CONTROL);
-       if (bRet != EINA_TRUE) {
-               VideoLogError("elm_layout_file_set fail");
-       }
-
-       evas_object_show(pObj);
-
-       return pObj;
-}
-
-static Evas_Object *_vp_play_normal_view_create_control_layout(Evas_Object *pParent)
-{
-       if (!pParent) {
-               VideoLogError("Parent is NULL");
-               return NULL;
-       }
-
-       Evas_Object *pObj = NULL;
-       Eina_Bool bRet = EINA_FALSE;
-
-       pObj = elm_layout_add(pParent);
-       if (!pObj) {
-               VideoLogError("elm_layout_add object is NULL");
-               return NULL;
-       }
-
-       bRet = elm_layout_file_set(pObj, VP_PLAY_NORMAL_CONTROL_EDJ, VP_PLAY_EDJ_GROUP_NORMAL_CONTROL);
-       if (bRet != EINA_TRUE) {
-               VideoLogError("elm_layout_file_set fail");
-       }
-
-       evas_object_show(pObj);
-
-       return pObj;
-}
-
-static Evas_Object *_vp_play_normal_view_create_function_layout(Evas_Object *pParent)
-{
-       if (!pParent) {
-               VideoLogError("Parent is NULL");
-               return NULL;
-       }
-
-       Evas_Object *pObj = NULL;
-       Eina_Bool bRet = EINA_FALSE;
-
-       pObj = elm_layout_add(pParent);
-       if (!pObj) {
-               VideoLogError("elm_layout_add object is NULL");
-               return NULL;
-       }
-
-       bRet = elm_layout_file_set(pObj, VP_PLAY_NORMAL_FUNCTION_EDJ_PATH, VP_PLAY_EDJ_GROUP_NORMAL_FUNCTION);
-       if (bRet != EINA_TRUE) {
-               VideoLogError("elm_layout_file_set fail");
-       }
-
-       evas_object_show(pObj);
-
-       return pObj;
-}
-
-static void _vp_normal_view_top_layout_del_cb(void *data, Evas *e,
-                                             Evas_Object *obj,
-                                             void *event_info)
-{
-       if (!data) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)data;
-       pNormalView->pTopControlLayout = NULL;
-}
-
-static bool _vp_play_normal_view_create_top_control(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-       VideoLogInfo("create top control");
-
-       pNormalView->pTopControlLayout = _vp_play_normal_view_create_top_control_layout(pNormalView->pMainLayout);
-       if (!pNormalView->pTopControlLayout) {
-               VideoLogError("pNormalView->pTopControlLayout is NULL");
-               return FALSE;
-       }
-       evas_object_event_callback_add(pNormalView->pTopControlLayout, EVAS_CALLBACK_DEL, _vp_normal_view_top_layout_del_cb, (void *)pNormalView);
-
-       elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_TOP_CONTROL, pNormalView->pTopControlLayout);
-
-       _vp_play_normal_view_on_capture_mode(pNormalView);
-       _vp_play_normal_view_set_sound_path_state(pNormalView);
-
-       return TRUE;
-}
-
-static void  _vp_play_normal_view_control_layout_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
-{
-       if (!data) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)data;
-       if (pNormalView->pControlLayout) {
-               evas_object_event_callback_del(pNormalView->pControlLayout, EVAS_CALLBACK_DEL,  _vp_play_normal_view_control_layout_del_cb);
-               pNormalView->pControlLayout = NULL;
-               pNormalView->pResumeBtn = NULL;
-               pNormalView->pPauseBtn = NULL;
-               pNormalView->pPlayFocusBtn = NULL;
-               pNormalView->pPrevBtn = NULL;
-               pNormalView->pNextBtn = NULL;
-               pNormalView->pVolumeBtn = NULL;
-               pNormalView->pScreenSizeBtn = NULL;
-       }
-}
-
-static void  _vp_play_normal_view_bookmark_object_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
-{
-       if (!data) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)data;
-       if (pNormalView->pBookmarkObj) {
-               evas_object_event_callback_del(pNormalView->pBookmarkObj, EVAS_CALLBACK_DEL,  _vp_play_normal_view_bookmark_object_del_cb);
-               pNormalView->pBookmarkObj = NULL;
-       }
-}
-
-static bool _vp_play_normal_view_create_main_control(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-       Evas_Object *pParent = NULL;
-
-       pNormalView->pControlLayout = _vp_play_normal_view_create_control_layout(pNormalView->pMainLayout);
-       if (!pNormalView->pControlLayout) {
-               VideoLogError("pNormalView->pControlLayout is NULL");
-               return FALSE;
-       }
-
-       elm_object_focus_custom_chain_append(pNormalView->pMainLayout, pNormalView->pControlLayout, NULL);
-
-       elm_object_part_content_set(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_CONTROL, pNormalView->pControlLayout);
-       evas_object_event_callback_add(pNormalView->pControlLayout, EVAS_CALLBACK_DEL,
-                                      _vp_play_normal_view_control_layout_del_cb,
-                                      (void *)pNormalView);
-
-       pParent = pNormalView->pControlLayout;
-
-       pNormalView->pResumeBtn = vp_button_create(
-                                       pParent, "playview/custom/circle_1/default", VP_PLAY_STRING_COM_PLAY,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
-       if (!pNormalView->pResumeBtn) {
-               VideoLogError("elm_button_add is fail");
-               return FALSE;
-       }
-
-       pNormalView->pPauseBtn = vp_button_create(
-                                       pParent, "playview/custom/circle_1_focus/default", VP_PLAY_STRING_COM_PAUSE,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
-       if (!pNormalView->pPauseBtn) {
-               VideoLogError("elm_button_add is fail");
-               return FALSE;
-       }
-
-       pNormalView->pPlayFocusBtn = vp_button_create(
-                                       pParent, "focus", NULL,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
-       if (!pNormalView->pPlayFocusBtn) {
-               VideoLogError("elm_button_add is fail");
-               return FALSE;
-       }
-
-       pNormalView->pPrevBtn = vp_button_create(
-                                       pParent, "playview/custom/circle_2/default", VP_PLAY_STRING_COM_PREVIOUS,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
-       if (!pNormalView->pPrevBtn) {
-               VideoLogError("elm_button_add is fail");
-               return FALSE;
-       }
-
-       pNormalView->pNextBtn = vp_button_create(
-                                       pParent, "playview/custom/circle_3/default", VP_PLAY_STRING_COM_NEXT,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
-       if (!pNormalView->pNextBtn) {
-               VideoLogError("elm_button_add is fail");
-               return FALSE;
-       }
-
-       pNormalView->pScreenSizeBtn = vp_button_create(
-                                       pParent, "playview/custom/flat_56_56/default", NULL,
-                                       (Evas_Smart_Cb)__vp_normal_function_btn_clicked_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                       (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                       (void *)pNormalView);
-       evas_object_color_set(pNormalView->pScreenSizeBtn, 0, 166, 191, 255);
-       if (!pNormalView->pScreenSizeBtn) {
-               VideoLogError("elm_button_add is fail");
-               return FALSE;
-       }
-
-       pNormalView->pPopupBtn = vp_button_create(
-                                       pParent, "playview/custom/flat_56_56/default", NULL,
-                                       NULL,
-                                       NULL,
-                                       NULL,
-                                       (void *)pNormalView);
-       evas_object_color_set(pNormalView->pPopupBtn, 0, 166, 191, 255);
-       if (!pNormalView->pPopupBtn) {
-               VideoLogError("elm_button_add is fail");
-               return FALSE;
-       }
-
-       pNormalView->pLockBtn = vp_button_create(
-                                               pNormalView->pMainLayout, "playview/custom/flat_46_46/default", NULL,
-                                               (Evas_Smart_Cb)__vp_normal_function_btn_clicked_cb,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                               (void *)pNormalView);
-       if (!pNormalView->pLockBtn) {
-                       VideoLogError("elm_button_add is fail");
-                       return FALSE;
-       }
-
-       Evas_Object *pIcon = NULL;
-
-       //elm_object_focus_allow_set(pNormalView->pPauseBtn, EINA_TRUE);
-       //elm_object_focus_allow_set(pNormalView->pResumeBtn, EINA_TRUE);
-       //elm_object_focus_set(pNormalView->pPauseBtn, EINA_TRUE);
-       //elm_object_focus_set(pNormalView->pResumeBtn, EINA_TRUE);
-
-       //elm_object_focus_custom_chain_append(pParent, pNormalView->pPlayFocusBtn, NULL);
-
-       pIcon = vp_button_create_icon(pNormalView->pResumeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_RESUME);
-       elm_object_part_content_set(pNormalView->pResumeBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-       pIcon = vp_button_create_icon(pNormalView->pPauseBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_PAUSE);
-       elm_object_part_content_set(pNormalView->pPauseBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-       //pIcon = vp_button_create_icon(pNormalView->pPrevBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_PREV);
-       //elm_object_part_content_set(pNormalView->pPrevBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-       //pIcon = vp_button_create_icon(pNormalView->pNextBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_NEXT);
-       //elm_object_part_content_set(pNormalView->pNextBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-       pIcon = vp_button_create_icon(pNormalView->pPopupBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_POPUP_PLAYER);
-       elm_object_part_content_set(pNormalView->pPopupBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-       pIcon = vp_button_create_icon(pNormalView->pPopupBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_POPUP_PLAYER);
-       elm_object_part_content_set(pNormalView->pPopupBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-       if (pNormalView->nDisplayMode == VP_MM_PLAYER_DISPLAY_FULL_SCREEN) {
-               pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_2_MODE);
-               elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-               pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_2_MODE);
-               elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-               //pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_2_MODE_DIM);
-               //elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-       } else if (pNormalView->nDisplayMode == VP_MM_PLAYER_DISPLAY_ORIGIN_SIZE) {
-               pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_1_MODE);
-               elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-               pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_1_MODE);
-               elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-       } else if (pNormalView->nDisplayMode == VP_MM_PLAYER_DISPLAY_ORIGIN_OR_LETTER) {
-               pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_3_MODE);
-               elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-               //pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_3_MODE_PRESS);
-               //elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-               //pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_3_MODE_DIM);
-               //elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-       }
-       else {
-               pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_1_MODE);
-               elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-               //pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_1_MODE_PRESS);
-               //elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-               //pIcon = vp_button_create_icon(pNormalView->pScreenSizeBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_SCREEN_1_MODE_DIM);
-               //elm_object_part_content_set(pNormalView->pScreenSizeBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-       }
-
-
-       if (pNormalView->pResumeBtn) {
-               elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_PLAY, pNormalView->pResumeBtn);
-
-               elm_object_focus_custom_chain_append(pNormalView->pMainLayout, pNormalView->pResumeBtn, NULL);
-       }
-
-       if (pNormalView->pPlayFocusBtn) {
-               elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_PLAY_FOCUS, pNormalView->pPlayFocusBtn);
-               elm_object_focus_custom_chain_append(pNormalView->pMainLayout, pNormalView->pPlayFocusBtn, NULL);
-       }
-
-       if (pNormalView->pPrevBtn) {
-               elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_REW, pNormalView->pPrevBtn);
-               elm_object_focus_custom_chain_append(pNormalView->pMainLayout, pNormalView->pPrevBtn, NULL);
-       }
-
-       if (pNormalView->pNextBtn) {
-               elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_FF, pNormalView->pNextBtn);
-               elm_object_focus_custom_chain_append(pNormalView->pMainLayout, pNormalView->pNextBtn, NULL);
-       }
-
-       if (pNormalView->pScreenSizeBtn) {
-               elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_SCREENSIZE, pNormalView->pScreenSizeBtn);
-               elm_object_focus_custom_chain_append(pNormalView->pMainLayout, pNormalView->pScreenSizeBtn, NULL);
-       }
-       if (pNormalView->pPopupBtn) {
-               elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_POPUP_PLAYER, pNormalView->pPopupBtn);
-               elm_object_focus_custom_chain_append(pNormalView->pMainLayout, pNormalView->pPopupBtn, NULL);
-       }
-       vp_play_util_focus_next_object_set(pNormalView->pVolumeBtn, pNormalView->pPrevBtn, ELM_FOCUS_RIGHT);
-       vp_play_util_focus_next_object_set(pNormalView->pPrevBtn, pNormalView->pPlayFocusBtn, ELM_FOCUS_RIGHT);
-       vp_play_util_focus_next_object_set(pNormalView->pPlayFocusBtn, pNormalView->pNextBtn, ELM_FOCUS_RIGHT);
-       vp_play_util_focus_next_object_set(pNormalView->pNextBtn, pNormalView->pScreenSizeBtn, ELM_FOCUS_RIGHT);
-
-
-       if (    pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_STORE ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_LIST ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_GALLERY||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_OTHER ||
-               pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MYFILE) {
-
-               pNormalView->pBookmarkHandle = vp_play_bookmark_create(pParent);
-               pNormalView->pBookmarkObj = vp_play_bookmark_get_object(pNormalView->pBookmarkHandle);
-               evas_object_event_callback_add(pNormalView->pBookmarkObj, EVAS_CALLBACK_DEL,
-                                               _vp_play_normal_view_bookmark_object_del_cb,
-                                               (void *)pNormalView);
-               vp_play_bookmark_set_user_param(pNormalView->pBookmarkHandle, (void *)pNormalView);
-               vp_play_bookmark_set_capture_callback(pNormalView->pBookmarkHandle, __vp_normal_bookmark_capture_cb);
-               vp_play_bookmark_set_item_select_callback(pNormalView->pBookmarkHandle, __vp_normal_bookmark_item_select_cb);
-       }
-       _vp_play_normal_view_set_rotate_lock_state(pNormalView);
-       _vp_play_normal_view_set_volume_lock_state(pNormalView);
-
-       return TRUE;
-}
-
-static void _vp_normal_view_function_layout_del_cb(void *data, Evas *e,
-                                             Evas_Object *obj,
-                                             void *event_info)
-{
-       if (!data) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)data;
-       pNormalView->pTopControlLayout = NULL;
-       pNormalView->pBookmarkBtn = NULL;
-       pNormalView->pMultiWinBtn = NULL;
-       pNormalView->pRepeatBtn = NULL;
-       pNormalView->pTrimBtn = NULL;
-       pNormalView->pSoundAliveBtn = NULL;
-       pNormalView->pShareBtn = NULL;
-}
-
-static bool _vp_play_normal_view_create_function_control(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-       pNormalView->pFunctionLayout = _vp_play_normal_view_create_function_layout(pNormalView->pMainLayout);
-       if (!pNormalView->pFunctionLayout) {
-               VideoLogError("pNormalView->pFunctionLayout is NULL");
-               return FALSE;
-       }
-       evas_object_event_callback_add(pNormalView->pFunctionLayout, EVAS_CALLBACK_DEL, _vp_normal_view_function_layout_del_cb, (void *)pNormalView);
-       elm_object_part_content_set(pNormalView->pControlLayout, VP_PLAY_SWALLOW_NORMAL_FUNCTION, pNormalView->pFunctionLayout);
-       elm_object_focus_custom_chain_append(pNormalView->pMainLayout, pNormalView->pFunctionLayout, NULL);
-
-       return TRUE;
-}
-
-static bool _vp_play_normal_view_create_progressbar(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-       Evas_Object *pParent = NULL;
-
-       pParent = pNormalView->pControlLayout;
-
-       pNormalView->pProgressbar = vp_play_progressbar_create(pParent, VIDEO_PROGRESSBAR_TYPE_NORMAL);
-       if (!pNormalView->pProgressbar) {
-               VideoLogError("pProgressbar create fail");
-               return FALSE;
-       }
-
-       pNormalView->pProgressEvent = vp_play_progressbar_get_object(pNormalView->pProgressbar);
-       if (!pNormalView->pProgressEvent) {
-               VideoLogError("vp_play_progressbar_get_object fail");
-               return FALSE;
-       }
-
-       elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_PROGRESS, pNormalView->pProgressEvent);
-
-       evas_object_event_callback_add(pNormalView->pProgressEvent, EVAS_CALLBACK_MOUSE_DOWN,
-                                      __vp_normal_progress_mouse_down_cb, (void *)pNormalView);
-
-       evas_object_event_callback_add(pNormalView->pProgressEvent, EVAS_CALLBACK_MOUSE_UP,
-                                      __vp_normal_progress_mouse_up_cb, (void *)pNormalView);
-
-       evas_object_event_callback_add(pNormalView->pProgressEvent, EVAS_CALLBACK_MOUSE_MOVE,
-                                      __vp_normal_progress_mouse_move_cb, (void *)pNormalView);
-
-       evas_object_event_callback_add(pNormalView->pProgressEvent, EVAS_CALLBACK_DEL,
-                                         __vp_normal_progress_del_cb, (void *)pNormalView);
-
-       Evas_Object *pProgressFocus = vp_play_progressbar_get_focus_object(pNormalView->pProgressbar);
-
-       evas_object_event_callback_add(pProgressFocus, EVAS_CALLBACK_KEY_DOWN,
-                                         __vp_normal_focus_key_down_cb, (void *)pNormalView);
-       evas_object_event_callback_add(pProgressFocus, EVAS_CALLBACK_KEY_UP,
-                                         __vp_normal_focus_key_up_cb, (void *)pNormalView);
-
-
-       return TRUE;
-}
-
-static bool _vp_play_normal_view_create_subtitle(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-
-       Evas_Object *pParent = NULL;
-       Evas_Object *pObj = NULL;
-
-#ifdef SUBTITLE_K_FEATURE
-       //PlayView *pPlayView = pNormalView->pPlayView;
-       //pParent = pPlayView->pMainLayout;
-       pParent = pNormalView->pMainLayout;
-       VideoLogError("1");
-#else
-       pParent = pNormalView->pMainLayout;
-       VideoLogError("2");
-#endif
-
-
-       pNormalView->pSubtitle = vp_play_subtitle_create(pParent, VP_SUBTITLE_TYPE_NORMAL);
-       if (!pNormalView->pSubtitle) {
-               VideoLogError("pSubtitle create fail");
-               return FALSE;
-       }
-
-       pObj = vp_play_subtitle_get_object(pNormalView->pSubtitle);
-       if (!pObj) {
-               VideoLogError("vp_play_subtitle_get_object fail");
-               return FALSE;
-       }
-
-       vp_play_subtitle_realize(pNormalView->pSubtitle);
-       char *szFont = NULL;
-       int nSize = 0;
-
-#ifdef SUBTITLE_K_FEATURE
-       int nAlignmentKey = VP_SUBTITLE_ALIGNMENT_CENTER;
-       vp_subtitle_alignment_t nAlignment = VP_SUBTITLE_ALIGNMENT_CENTER;
-#else
-       video_subtitle_color_t nFontColor = VP_SUBTITLE_COLOR_BLACK;
-       video_subtitle_color_t nBGColor = VP_SUBTITLE_COLOR_BLACK;
-#endif
-
-       vp_play_preference_get_subtitle_size_key(&nSize);
-       vp_play_preference_get_subtitle_font_name_key(&szFont);
-       vp_play_subtitle_set_size(pNormalView->pSubtitle, nSize);
-       vp_play_subtitle_set_size_zoom(pNormalView->pSubtitle, 1.0);
-       vp_play_subtitle_set_font(pNormalView->pSubtitle, szFont);
-
-       VP_FREE(szFont);
-#ifndef SUBTITLE_K_FEATURE
-       int nFontColorKey = VP_SUBTITLE_COLOR_BLACK;
-       int nBGColorKey = VP_SUBTITLE_COLOR_BLACK;
-       vp_play_preference_get_subtitle_font_color_key(&nFontColorKey);
-       vp_play_preference_get_subtitle_bg_color_key(&nBGColorKey);
-
-       if (nFontColorKey == VIDEO_SUBTITLE_COLOR_BLACK) {
-               nFontColor = VP_SUBTITLE_COLOR_BLACK;
-       }
-       else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_BLUE) {
-               nFontColor = VP_SUBTITLE_COLOR_BLUE;
-       }
-       else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_GREEN) {
-               nFontColor = VP_SUBTITLE_COLOR_GREEN;
-       }
-       else if (nFontColorKey == VIDEO_SUBTITLE_COLOR_WHITE) {
-               nFontColor = VP_SUBTITLE_COLOR_WHITE;
-       }
-
-       if (nBGColorKey == VIDEO_SUBTITLE_COLOR_BLACK) {
-               nBGColor = VP_SUBTITLE_COLOR_BLACK;
-       }
-       else if (nBGColorKey == VIDEO_SUBTITLE_COLOR_WHITE) {
-               nBGColor = VP_SUBTITLE_COLOR_WHITE;
-       }
-       else if (nBGColorKey == VIDEO_SUBTITLE_COLOR_NONE) {
-               nBGColor = VP_SUBTITLE_COLOR_NONE;
-       }
-       vp_play_subtitle_set_color(pNormalView->pSubtitle, nFontColor);
-       vp_play_subtitle_set_bg_color(pNormalView->pSubtitle, nBGColor);
-
-       elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_SUBTITLE, pObj);
-
-#else
-       vp_play_preference_get_subtitle_alignment_key(&nAlignmentKey);
-
-       char *szColorHex = NULL;
-       char *szColorBGHex = NULL;
-       vp_play_preference_get_subtitle_font_color_hex_key(&szColorHex);
-       if (!szColorHex) {
-               VideoLogError("szColorHex is NULL");
-       }
-
-       vp_play_preference_get_subtitle_bg_color_hex_key(&szColorBGHex);
-       if (!szColorBGHex) {
-               VideoLogError("szColorBGHex is NULL");
-       }
-
-
-       if (nAlignmentKey == VIDEO_SUBTITLE_ALIGNMENT_LEFT) {
-               nAlignment = VP_SUBTITLE_ALIGNMENT_LEFT;
-       } else if (nAlignmentKey == VIDEO_SUBTITLE_ALIGNMENT_CENTER) {
-               nAlignment = VP_SUBTITLE_ALIGNMENT_CENTER;
-       } else if (nAlignmentKey == VIDEO_SUBTITLE_ALIGNMENT_RIGHT) {
-               nAlignment = VP_SUBTITLE_ALIGNMENT_RIGHT;
-       }
-
-       vp_play_subtitle_set_color(pNormalView->pSubtitle, szColorHex);
-       vp_play_subtitle_set_bg_color(pNormalView->pSubtitle, szColorBGHex);
-
-       vp_play_subtitle_set_alignment(pNormalView->pSubtitle, nAlignment);
-       elm_object_part_content_set(pParent, VP_PLAY_SWALLOW_NORMAL_SUBTITLE, pObj);
-       evas_object_show(pObj);
-#endif
-
-       return TRUE;
-}
-
-#ifdef _PERF_TEST_
-static Evas_Object *_vp_play_normal_view_create_conformant(Evas_Object *pParent)
-{
-       if (!pParent) {
-               VideoLogError("Parent is NULL");
-               return NULL;
-       }
-
-       Evas_Object *pObj = NULL;
-
-       pObj = elm_conformant_add(pParent);
-       if (!pObj) {
-               VideoLogError("elm_conformant_add object is NULL");
-               return NULL;
-       }
-       evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-       elm_win_conformant_set(pParent, EINA_TRUE);
-       elm_win_resize_object_add(pParent, pObj);
-
-       elm_object_signal_emit(pObj, "elm,state,indicator,overlap", "");
-       evas_object_data_set(pObj, "overlap", (void *)EINA_TRUE);
-
-       evas_object_show(pObj);
-
-       return pObj;
-}
-
-static Evas_Object *_vp_play_normal_view_create_layout(Evas_Object *pParent)
-{
-       if (!pParent) {
-               VideoLogError("Parent is NULL");
-               return NULL;
-       }
-
-       Evas_Object *pObj = NULL;
-       Eina_Bool bRet = EINA_FALSE;
-
-       pObj = elm_layout_add(pParent);
-       if (!pObj) {
-               VideoLogError("elm_layout_add object is NULL");
-               return NULL;
-       }
-
-       bRet = elm_layout_theme_set(pObj, VP_PLAY_CUSTOM_LAYOUT_KLASS,
-                                       VP_PLAY_CUSTOM_LAYOUT_GROUP,
-                                       VP_PLAY_CUSTOM_LAYOUT_STYLE);
-       if (bRet != EINA_TRUE) {
-               VideoLogError("elm_layout_theme_set fail");
-       }
-       evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-       elm_object_content_set(pParent, pObj);
-
-       evas_object_show(pObj);
-
-       return pObj;
-}
-
-static Evas_Object *_vp_play_normal_view_create_naviframe(Evas_Object *pParent)
-{
-       if (!pParent) {
-               VideoLogError("Parent is NULL");
-               return NULL;
-       }
-
-       Evas_Object *pObj = NULL;
-       pObj = elm_naviframe_add(pParent);
-       if (!pObj) {
-               VideoLogError("elm_naviframe_add object is NULL");
-               return NULL;
-       }
-
-       eext_object_event_callback_add(pObj, EEXT_CALLBACK_BACK, eext_naviframe_back_cb, NULL);
-       eext_object_event_callback_add(pObj, EEXT_CALLBACK_MORE, eext_naviframe_more_cb, NULL);
-
-       elm_object_part_content_set(pParent, "elm.swallow.content", pObj);
-       elm_object_focus_set(pObj, EINA_TRUE);
-
-       elm_naviframe_prev_btn_auto_pushed_set(pObj, EINA_FALSE);
-
-       evas_object_show(pObj);
-
-       return pObj;
-}
-#endif
-
-static void _vp_play_normal_view_del_cb(void *data, Evas *e,
-                                             Evas_Object *obj,
-                                             void *event_info)
-{
-       if (!data) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)data;
-       if (pNormalView->pMainLayout) {
-               evas_object_event_callback_del(pNormalView->pMainLayout, EVAS_CALLBACK_DEL, _vp_play_normal_view_del_cb);
-               elm_object_focus_custom_chain_unset(pNormalView->pMainLayout);
-               pNormalView->pMainLayout = NULL;
-               //pNormalView->pNaviItem = NULL;
-               pNormalView->pAllsharBtn = NULL;
-               //if (pNormalView->pPlayView)
-                       //pNormalView->pPlayView->pNormalView = NULL;
-       }
-}
-
-static bool _vp_play_normal_view_init_layout(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-#ifdef _PERF_TEST_
-       if (pNormalView->pMainLayout) {
-               VideoLogError("Already exists MainLayout: %p", pNormalView->pMainLayout);
-               return TRUE;
-       }
-//////////
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-
-       pPlayView->pConformant = _vp_play_normal_view_create_conformant(pPlayView->pWin);
-       if (!pPlayView->pConformant) {
-               VideoLogError("pConformant is null");
-               return FALSE;
-       }
-
-       pPlayView->pMainLayout = _vp_play_normal_view_create_layout(pPlayView->pConformant);
-       if (!pPlayView->pMainLayout) {
-               VideoLogError("pMainLayout is null");
-               return FALSE;
-       }
-       pPlayView->pNaviframe = _vp_play_normal_view_create_naviframe(pPlayView->pMainLayout);
-       if (!pPlayView->pNaviframe) {
-               VideoLogError("pNaviframe is null");
-               return FALSE;
-       }
-
-       pNormalView->pNaviFrame = pPlayView->pNaviframe;
-       pNormalView->bDestroyNavi = FALSE;
-       pNormalView->nXwinID = elm_win_xwindow_get(pPlayView->pWin);
-
-//////////
-#endif
-
-       if (!_vp_play_normal_view_create_gesture_layout(pNormalView)) {
-               VideoLogError("_vp_play_normal_view_create_gesture_layout is fail");
-               return FALSE;
-       }
-
-       pNormalView->pMainLayout = _vp_play_normal_view_create_main_layout(pNormalView->pNaviFrame);
-       if (!pNormalView->pMainLayout) {
-               VideoLogError("pLayout create fail");
-               return FALSE;
-       }
-
-       evas_object_event_callback_add(pNormalView->pMainLayout, EVAS_CALLBACK_DEL, _vp_play_normal_view_del_cb, (void *)pNormalView);
-       evas_object_event_callback_add(pNormalView->pMainLayout, EVAS_CALLBACK_RESIZE, __vp_normal_main_layout_resize_cb, (void *)pNormalView);
-       elm_access_highlight_set(pNormalView->pMainLayout);
-
-       pNormalView->pNaviItem = elm_naviframe_item_push(pNormalView->pNaviFrame , NULL, NULL, NULL, pNormalView->pMainLayout, "playview/1line");
-
-       Evas_Object * pLeftbtn = elm_button_add(pNormalView->pNaviFrame);
-       elm_object_style_set(pLeftbtn, "back");
-       evas_object_smart_callback_add(pLeftbtn, "clicked", __vp_normal_naviframe_back_btn_cb, (void *)pNormalView);
-       elm_object_item_part_content_set(pNormalView->pNaviItem, "title_left_btn", pLeftbtn);
-       evas_object_show(pLeftbtn);
-
-       elm_naviframe_item_pop_cb_set(pNormalView->pNaviItem, __vp_normal_naviframe_pop_cb, (void *)pNormalView);
-
-       if (!pNormalView->pNaviItem) {
-               VideoLogError("elm_naviframe_item_push fail");
-               return FALSE;
-       }
-
-       elm_object_signal_callback_add(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SHOW_FINISH, "*", __vp_normal_show_finish_cb, (void *)pNormalView);
-       elm_object_signal_callback_add(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_HIDE_FINISH, "*", __vp_normal_hide_finish_cb, (void *)pNormalView);
-
-       if (!_vp_play_normal_view_create_top_control(pNormalView)) {
-               VideoLogError("_vp_play_normal_view_create_top_control fail");
-               return FALSE;
-       }
-
-       if (!_vp_play_normal_view_create_main_control(pNormalView)) {
-               VideoLogError("_vp_play_normal_view_create_main_control fail");
-               return FALSE;
-       }
-
-       if (!_vp_play_normal_view_create_function_control(pNormalView)) {
-               VideoLogError("_vp_play_normal_view_create_function_control fail");
-               return FALSE;
-       }
-
-       if (!_vp_play_normal_view_create_progressbar(pNormalView)) {
-               VideoLogError("_vp_play_normal_view_create_progressbar fail");
-               return FALSE;
-       }
-
-       if (!_vp_play_normal_view_create_subtitle(pNormalView)) {
-               VideoLogError("_vp_play_normal_view_create_subtitle fail");
-               return FALSE;
-       }
-
-       if (!_vp_play_normal_view_create_loading_ani(pNormalView)) {
-               VideoLogError("_vp_play_normal_view_create_loading_ani fail");
-               return FALSE;
-       }
-       return TRUE;
-}
-
-static void _vp_play_normal_view_destroy_handle(NormalView *pNormalView)
-{
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return;
-       }
-       VideoLogError("_vp_play_normal_view_destroy Start");
-       vp_language_list_destroy();
-       if (pNormalView->pMainLayout) {
-               elm_object_focus_custom_chain_unset(pNormalView->pMainLayout);
-       }
-
-       if (pNormalView->pPlayerHandle) {
-               vp_mm_player_destroy(pNormalView->pPlayerHandle);
-               pNormalView->pPlayerHandle = NULL;
-       }
-
-       if (pNormalView->pVolumeHandle) {
-               vp_play_volume_destroy(pNormalView->pVolumeHandle);
-               pNormalView->pVolumeHandle = NULL;
-       }
-
-       if (pNormalView->pVolumePopupHandle) {
-               vp_play_volume_popup_destroy(pNormalView->pVolumePopupHandle);
-               pNormalView->pVolumePopupHandle = NULL;
-       }
-
-       if (pNormalView->pBrightnessHandle) {
-               vp_play_brightness_destroy(pNormalView->pBrightnessHandle);
-               pNormalView->pBrightnessHandle = NULL;
-       }
-
-       if (pNormalView->pDownloadHandle) {
-               VppDownloadDestroyItem(pNormalView->pDownloadHandle);
-               pNormalView->pDownloadHandle = NULL;
-       }
-
-       VP_EVAS_PIPE_DEL(pNormalView->pPreparePipe);
-       VP_EVAS_PIPE_DEL(pNormalView->pSeekPipe);
-
-       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pLockScreenTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pProgressTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pExitWaitTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pMomentTimer);
-
-       if (pNormalView->pProgressEvent)
-       {
-               evas_object_event_callback_del(pNormalView->pProgressEvent,
-                                              EVAS_CALLBACK_MOUSE_DOWN,
-                                              __vp_normal_progress_mouse_down_cb);
-
-               evas_object_event_callback_del(pNormalView->pProgressEvent,
-                                              EVAS_CALLBACK_MOUSE_UP,
-                                              __vp_normal_progress_mouse_up_cb);
-
-               evas_object_event_callback_del(pNormalView->pProgressEvent,
-                                              EVAS_CALLBACK_MOUSE_MOVE,
-                                              __vp_normal_progress_mouse_move_cb);
-               pNormalView->pProgressEvent = NULL;
-       }
-#ifdef K_FEATURE_MICROSEEK
-       VP_EVAS_DEL(pNormalView->pMicroSeekTextLayout);
-       VP_EVAS_DEL(pNormalView->pMicroSeekImageLayout);
-#endif
-#ifdef FLICK_JUMP
-       VP_EVAS_DEL(pNormalView->pFlickJumpSeek);
-#endif
-
-       vp_audio_track_destroy(pNormalView->pAudioTrackHandle);
-       pNormalView->pAudioTrackHandle = NULL;
-
-       vp_share_destroy(pNormalView->pShareHandle);
-       pNormalView->pShareHandle = NULL;
-
-       vp_sound_alive_destroy(pNormalView->pSAHandle);
-       pNormalView->pSAHandle = NULL;
-
-       vp_subtitle_destroy(pNormalView->pSubtitlePopup);
-       pNormalView->pSubtitlePopup = NULL;
-
-       vp_subtitle_sync_popup_destroy(pNormalView->pSubtitleSyncPopup);
-       pNormalView->pSubtitleSyncPopup = NULL;
-
-       vp_subtitle_select_destroy(pNormalView->pSubtitleSelectPopup);
-       pNormalView->pSubtitleSelectPopup = NULL;
-
-       vp_subtitle_font_destroy(pNormalView->pSubtitleFontPopup);
-       pNormalView->pSubtitleFontPopup = NULL;
-
-       vp_subtitle_size_destroy(pNormalView->pSubtitleSizePopup);
-       pNormalView->pSubtitleSizePopup = NULL;
-
-       vp_subtitle_color_destroy(pNormalView->pSubtitleFontColorPopup);
-       pNormalView->pSubtitleFontColorPopup = NULL;
-#ifndef SUBTITLE_K_FEATURE
-       vp_subtitle_bg_color_destroy(pNormalView->pSubtitleBGColorPopup);
-       pNormalView->pSubtitleBGColorPopup = NULL;
-#else
-       vp_subtitle_color_destroy(pNormalView->pSubtitleBGColorPopup);
-       pNormalView->pSubtitleBGColorPopup = NULL;
-#endif
-       vp_subtitle_edge_destroy(pNormalView->pSubtitleEdgePopup);
-       pNormalView->pSubtitleEdgePopup = NULL;
-
-       VP_EVAS_TIMER_DEL(pNormalView->pSubtitleTimer);
-
-       VP_EVAS_TIMER_DEL(pNormalView->pScreenShotTimer);
-       VP_EVAS_DEL(pNormalView->pScreenShot);
-
-       vp_repeat_destroy(pNormalView->pRepeatHandle);
-       pNormalView->pRepeatHandle = NULL;
-
-       vp_play_loading_ani_destroy(pNormalView->pLoadingAni);
-
-       vp_sound_path_destroy(pNormalView->pSoundPathHandle);
-       pNormalView->pSoundPathHandle = NULL;
-
-       vp_setting_destroy(pNormalView->pSettingHandle);
-       pNormalView->pSettingHandle = NULL;
-
-       vp_capture_popup_destroy(pNormalView->pCapturePopup);
-       pNormalView->pCapturePopup = NULL;
-
-       vp_play_speed_popup_destroy(pNormalView->pPlaySpeedPopup);
-       pNormalView->pPlaySpeedPopup = NULL;
-
-       vp_detail_destroy(pNormalView->pDetailHandle);
-       pNormalView->pDetailHandle = NULL;
-
-       vp_zoom_guide_destroy(pNormalView->pZoomGuide);
-       pNormalView->pZoomGuide = NULL;
-
-       VP_EVAS_JOB_DEL(pNormalView->pVolumeJob);
-       VP_EVAS_JOB_DEL(pNormalView->pBrightnessJob);
-
-       if (pNormalView->pMediaKey) {
-               vp_media_key_destroy(pNormalView->pMediaKey);
-               pNormalView->pMediaKey = NULL;
-       }
-       if (pNormalView->pSubtitle) {
-               vp_play_subtitle_destroy(pNormalView->pSubtitle);
-               pNormalView->pSubtitle = NULL;
-       }
-
-       if (pNormalView->pBookmarkHandle) {
-               vp_play_bookmark_destroy(pNormalView->pBookmarkHandle);
-               pNormalView->pBookmarkHandle = NULL;
-       }
-
-       if (pNormalView->pProgressbar) {
-               vp_play_progressbar_destroy(pNormalView->pProgressbar);
-               pNormalView->pProgressbar = NULL;
-       }
-
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-       VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
-       VP_EVAS_IDLER_DEL(pNormalView->pMultiWinIdler);
-
-       VP_EVAS_DEL(pNormalView->pImageBufferObj);
-
-       VP_EVAS_DEL(pNormalView->pSoundPathBtn);
-       VP_EVAS_DEL(pNormalView->pLockBtn);
-
-       VP_EVAS_DEL(pNormalView->pPopup);
-       VP_EVAS_DEL(pNormalView->pSpeedBoxCtrl);
-       VP_EVAS_DEL(pNormalView->pNextBtn);
-       VP_EVAS_DEL(pNormalView->pPrevBtn);
-       VP_EVAS_DEL(pNormalView->pPauseBtn);
-       VP_EVAS_DEL(pNormalView->pResumeBtn);
-       VP_EVAS_DEL(pNormalView->pPlayFocusBtn);
-
-       VP_EVAS_DEL(pNormalView->pRotateBtn);
-       VP_EVAS_DEL(pNormalView->pVolumeBtn);
-       VP_EVAS_DEL(pNormalView->pScreenSizeBtn);
-       VP_EVAS_DEL(pNormalView->pBookmarkBtn);
-       VP_EVAS_DEL(pNormalView->pMultiWinBtn);
-       VP_EVAS_DEL(pNormalView->pRepeatBtn);
-       VP_EVAS_DEL(pNormalView->pTrimBtn);
-       VP_EVAS_DEL(pNormalView->pSoundAliveBtn);
-       VP_EVAS_DEL(pNormalView->pShareBtn);
-
-       VP_EVAS_DEL(pNormalView->pCtxPopup);
-
-       VP_EVAS_DEL(pNormalView->pBackBtn);
-       VP_EVAS_DEL(pNormalView->pMoreBtn);
-       VP_EVAS_DEL(pNormalView->pCaptureRewBtn);
-       VP_EVAS_DEL(pNormalView->pCaptureBtn);
-       VP_EVAS_DEL(pNormalView->pCaptureFFBtn);
-
-       VP_EVAS_DEL(pNormalView->pMainEventRect);
-       VP_EVAS_DEL(pNormalView->pGestureRect);
-
-       VP_EVAS_DEL(pNormalView->pFunctionLayout);
-       VP_EVAS_DEL(pNormalView->pTopControlLayout);
-       VP_EVAS_DEL(pNormalView->pControlLayout);
-       VP_EVAS_DEL(pNormalView->pNaviRightBtn);
-       VP_EVAS_DEL(pNormalView->pNaviLeftBtn);
-#ifdef _NATIVE_BUFFER_SYNC
-       VP_EVAS_DEL(pNormalView->pVideoSink);
-#endif
-       VP_EVAS_DEL(pNormalView->pMainLayout);
-
-       VP_FREE(pNormalView->szMediaURL);
-       VP_FREE(pNormalView->szSubtitleURL);
-       VP_FREE(pNormalView->szScreenMirrorMacAddr);
-#ifdef _SUBTITLE_MULTI_LANGUAGE
-       VP_FREE(pNormalView->pSelectedSubtitleLanguage);
-#endif
-       VP_FREE(pNormalView);
-
-       VideoLogError("_vp_play_normal_view_destroy End");
-}
-
-static void _vp_play_normal_view_prepare_pipe_cb(void *data, void *pipeData, unsigned int nbyte)
-{
-       if (!data) {
-               VideoLogError("data is NULL");
-               return;
-       }
-       VideoLogInfo("");
-
-       NormalView *pNormalView = (NormalView*)data;
-       bool bLCDOffStatus = FALSE;
-
-       vp_mm_player_set_rate(pNormalView->pPlayerHandle, (float)pNormalView->fPlaySpeed);
-
-       vp_play_config_get_lcd_off_state(&bLCDOffStatus);
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView handle is NULL");
-               return;
-       }
-
-       if (!pPlayView->pWin) {
-               VideoLogError("pPlayView->pWin handle is NULL");
-               return;
-       }
-
-       if (bLCDOffStatus && (pNormalView->bVideoOnlyMode == FALSE)) {
-               VideoLogError("Invalid LCD Status");
-               //elm_exit();
-
-               pPlayView->pFunc->vp_play_func_exit(pPlayView);
-               return;
-       }
-
-       _vp_play_normal_view_check_during_call(pNormalView);
-
-       int nDuration = 0;
-       if (!vp_mm_player_get_duration(pNormalView->pPlayerHandle, &nDuration)) {
-               VideoLogError("vp_mm_player_get_duration is fail");
-       }
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB && nDuration == 0) {
-               pNormalView->bHLSMode = TRUE;
-       }
-       else {
-               pNormalView->bHLSMode = FALSE;
-       }
-
-       if (pPlayView->bAVRCP) {
-               const char *navi_title = elm_object_item_text_get(pNormalView->pNaviItem);
-               vp_avrcp_noti_track(navi_title, "Unknown", "Unknown", "Unknown", nDuration);
-       }
-
-       if (pNormalView->bHLSMode == FALSE) {
-               pNormalView->nDuration = nDuration;
-               vp_play_progressbar_set_duration(pNormalView->pProgressbar, nDuration);
-       }
-
-       if (vp_mm_player_is_closed_caption_exist(pNormalView->pPlayerHandle)) {
-               pNormalView->bIsExistSubtitle = TRUE;
-       }
-
-       if (pNormalView->bIsExistSubtitle) {
-               _vp_play_normal_view_set_subtitle_font_config(pNormalView);
-       }
-
-       vp_play_progressbar_set_position(pNormalView->pProgressbar, pNormalView->nStartPosition);
-       _vp_play_normal_view_check_audio_only(pNormalView);
-
-       if (pNormalView->nStartPosition > 0) {
-               pNormalView->bSeekComplete = FALSE;
-               if (vp_mm_player_set_position(pNormalView->pPlayerHandle, pNormalView->nStartPosition) == FALSE) {
-                       VideoLogWarning("vp_mm_player_set_position error");
-                       return;
-               }
-       } else {
-               if (pPlayView->bAVRCP) {
-                       vp_avrcp_noti_track_position(0);
-               }
-       }
-
-       pNormalView->bIsRealize = TRUE;
-       pNormalView->bSeekComplete = TRUE;
-#if 1
-       if (vp_play_util_check_streaming(pNormalView->szMediaURL)) {
-               if (pNormalView->bBufferingComplete == FALSE) {
-                       VideoLogWarning("Skip for buffering state");
-                       return;
-               }
-       }
-#endif
-       if (pNormalView->pLoadingAni) {
-               _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-               vp_play_loading_ani_destroy(pNormalView->pLoadingAni);
-               pNormalView->pLoadingAni = NULL;
-       }
-
-       bool bXwincheck = TRUE;
-       if (vp_play_util_is_Xwindow_focused(pNormalView->nXwinID) == FALSE) {
-               VideoLogWarning("CASE : Not a splite view and Not focused state in mainwindow[%p]", pPlayView->pWin);
-               bXwincheck = FALSE;
-       }
-
-       if (pNormalView->bManualPause || bXwincheck == FALSE) {
-               vp_mm_player_set_visible(pNormalView->pPlayerHandle, TRUE);
-               vp_mm_player_pause(pNormalView->pPlayerHandle);
-       }
-       else {
-               vp_mm_player_play(pNormalView->pPlayerHandle);
-       }
-
-       if (!vp_mm_player_set_subtitle_position(pNormalView->pPlayerHandle, pNormalView->fSubtitleSyncValue*1000)) {
-               VideoLogError("vp_mm_player_set_subtitle_position is fail");
-       }
-
-       _vp_play_normal_view_set_play_state(pNormalView);
-       _vp_play_normal_view_on_capture_mode(pNormalView);
-}
-
-normal_view_handle vp_play_normal_view_create(PlayView *pPlayView, video_play_launching_type_t nLaunchingType)
-{
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return NULL;
-       }
-
-       NormalView      *pNormalView = NULL;
-
-       pNormalView = calloc(1, sizeof(NormalView));
-
-       if (!pNormalView) {
-               VideoLogError("pNormalView alloc fail");
-               return NULL;
-       }
-
-       int nScreenMode = VP_MM_PLAYER_DISPLAY_LETTER_BOX;
-       vp_play_preference_get_screen_mode_key(&nScreenMode);
-       if ((nScreenMode != VP_MM_PLAYER_DISPLAY_LETTER_BOX) && (nScreenMode != VP_MM_PLAYER_DISPLAY_FULL_SCREEN)) {
-               nScreenMode = VP_MM_PLAYER_DISPLAY_LETTER_BOX;
-               vp_play_preference_set_screen_mode_key(VP_MM_PLAYER_DISPLAY_LETTER_BOX);
-       }
-       pNormalView->nDisplayMode = nScreenMode;
-
-       pNormalView->pPlayView = pPlayView;
-       pNormalView->pNaviFrame = pPlayView->pNaviframe;
-       pNormalView->nXwinID = elm_win_xwindow_get(pPlayView->pWin);
-       pNormalView->nLaunchingType = nLaunchingType;
-       pNormalView->nStartPosition = 0;
-       pNormalView->nRepeatMode = VIDEO_PLAY_REPEAT_NONE;
-       pNormalView->bManualPause = FALSE;
-       pNormalView->nWaitPos = -1;
-       pNormalView->fPlaySpeed = pPlayView->fPlaySpeed;
-       pNormalView->fSubtitleSyncValue = pPlayView->fSubtitleSyncValue;
-
-       elm_object_focus_allow_set(pNormalView->pNaviFrame, EINA_TRUE);
-       elm_object_tree_focus_allow_set(pNormalView->pNaviFrame, EINA_TRUE);
-       elm_object_focus_set(pNormalView->pNaviFrame, EINA_TRUE);
-
-       // create prepare_cb pipe
-       VP_EVAS_PIPE_DEL(pNormalView->pPreparePipe);
-       pNormalView->pPreparePipe = ecore_pipe_add((Ecore_Pipe_Cb)_vp_play_normal_view_prepare_pipe_cb, (void*)pNormalView);
-
-       VP_EVAS_PIPE_DEL(pNormalView->pSeekPipe);
-       pNormalView->pSeekPipe = ecore_pipe_add((Ecore_Pipe_Cb)__vp_play_normal_view_seek_pipe_cb, (void*)pNormalView);
-#ifndef _PERF_TEST_
-       if (!_vp_play_normal_view_init_layout(pNormalView)) {
-               VideoLogError("_vp_play_normal_view_init_layout is fail");
-               return NULL;
-       }
-#endif
-       bool bMultiPlay = TRUE;
-       vp_play_preference_get_multi_play_status(&bMultiPlay);
-       if (bMultiPlay) {
-               vp_play_preference_set_multi_play_status(FALSE);
-       }
-
-       return (normal_view_handle)pNormalView;
-}
-
-void vp_play_normal_view_key_create(PlayView *pPlayView, normal_view_handle pViewHandle) {
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return;
-       }
-
-       NormalView *pNormalView = (NormalView *)pViewHandle;
-       pNormalView->pMediaKey = vp_media_key_create(pPlayView->pWin, __vp_normal_media_key_event_cb);
-       vp_media_key_set_user_data(pNormalView->pMediaKey, (void *)pNormalView);
-       vp_media_key_realize(pNormalView->pMediaKey);
-}
-
-void vp_play_normal_view_destroy(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       elm_access_object_unregister(pNormalView->pMainLayout);
-       elm_object_focus_allow_set(pNormalView->pNaviFrame, EINA_FALSE);
-       elm_object_tree_focus_allow_set(pNormalView->pNaviFrame, EINA_FALSE);
-       elm_object_focus_set(pNormalView->pNaviFrame, EINA_FALSE);
-
-       pNormalView->bDestroyNavi = TRUE;
-
-       elm_naviframe_item_pop(pNormalView->pNaviFrame);
-
-       _vp_play_normal_view_destroy_handle(pNormalView);
-}
-
-bool vp_play_normal_view_realize(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return FALSE;
-       }
-
-       if (!pNormalView->pLoadingAni) {
-               if (!_vp_play_normal_view_create_loading_ani(pNormalView)) {
-                       VideoLogWarning("_vp_play_normal_view_create_loading_ani fail");
-               }
-       }
-
-       /* There is no repeat setting for these modes */
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_WEB) {
-               pNormalView->nRepeatMode = VIDEO_PLAY_REPEAT_NONE;
-       } else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-               if (pPlayView->bStopAfterRepeat == TRUE) {
-                       pNormalView->nRepeatMode = VIDEO_PLAY_REPEAT_ALL_STOP;
-               } else {
-                       pNormalView->nRepeatMode = VIDEO_PLAY_REPEAT_NONE;
-               }
-       } else {
-               int nVal = 0;
-               vp_play_preference_get_repeat_mode_key(&nVal);
-               pNormalView->nRepeatMode = (video_play_repeat_mode_t)nVal;
-       }
-
-       int nScreenMode = 0;
-       vp_play_preference_get_screen_mode_key(&nScreenMode);
-       pNormalView->nDisplayMode = (vp_mm_player_display_mode_t)nScreenMode;
-
-       pNormalView->bSeekComplete = TRUE;
-       pNormalView->bIsActive = TRUE;
-       VideoLogInfo("vp_play_normal_view_realize");
-
-       if (pNormalView->pMediaItemList) {
-               vp_media_contents_free_video_items(pNormalView->pMediaItemList);
-               pNormalView->pMediaItemList = NULL;
-       }
-
-       video_play_sort_type_t nType = VIDEO_SORT_BY_NONE;
-       int nSortVal = 0;
-       vp_play_config_get_sort_type_key(&nSortVal);
-       nType = (video_play_sort_type_t)nSortVal;
-
-       _vp_play_normal_view_set_volume_state(pNormalView);
-
-       if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_GALLERY || pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MYFILE) {
-               char *szFolder = vp_play_util_get_folder_from_path(pNormalView->szMediaURL);
-               vp_media_contents_get_video_items_to_folder(VIDEO_SORT_BY_DATE_MOST_RECENT, szFolder, &(pNormalView->pMediaItemList));
-               VP_FREE(szFolder);
-       } else if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-       } else {
-               if (pPlayView->nListType == VIDEO_PLAY_LIST_TYPE_FOLDER) {
-                       char *szFolder = vp_play_util_get_folder_from_path(pNormalView->szMediaURL);
-                       vp_media_contents_get_video_items_to_folder(nType, szFolder, &(pNormalView->pMediaItemList));
-                       VP_FREE(szFolder);
-               }
-               else {
-                       vp_media_contents_get_video_items(nType, &(pNormalView->pMediaItemList));
-               }
-       }
-#ifdef _PERF_TEST_
-       if (!_vp_play_normal_view_play_start(pNormalView, TRUE)) {
-               VideoLogError("_vp_play_normal_view_play_start is Fail");
-               return FALSE;
-       }
-
-       _vp_play_normal_view_init_layout(pNormalView);
-       _vp_play_normal_view_hide_layout(pNormalView, TRUE);
-#else
-       _vp_play_normal_view_hide_layout(pNormalView, TRUE);
-
-       if (!_vp_play_normal_view_play_start(pNormalView, TRUE)) {
-               VideoLogError("_vp_play_normal_view_play_start is Fail");
-               return FALSE;
-       }
-#endif
-       _vp_play_normal_view_set_rotate_lock_state(pNormalView);
-       _vp_play_normal_view_set_volume_lock_state(pNormalView);
-
-       vp_play_preference_set_allow_dock_connect_key(FALSE);
-
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_VIDEO_ON, "*");
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_unrealize(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       if (pNormalView->pNaviItem) {
-               elm_object_item_text_set(pNormalView->pNaviItem, "");
-       }
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_VIDEO_OFF, "*");
-
-       _vp_play_normal_view_set_played_time(pNormalView);
-
-       pNormalView->bIsActive = FALSE;
-       pNormalView->bIsExistSubtitle = FALSE;
-       VP_FREE(pNormalView->szSubtitleURL);
-       VideoLogInfo("vp_play_normal_view_unrealize");
-
-       if (pNormalView->pMediaItemList) {
-               vp_media_contents_free_video_items(pNormalView->pMediaItemList);
-               pNormalView->pMediaItemList = NULL;
-       }
-
-       if (pNormalView->pDetailHandle) {
-               vp_detail_destroy(pNormalView->pDetailHandle);
-               pNormalView->pDetailHandle = NULL;
-       }
-
-       vp_play_preference_set_allow_dock_connect_key(TRUE);
-
-       vp_device_set_screen_off(FALSE);
-       vp_play_util_set_unlock_power_key();
-       vp_device_set_frame_rate(60);
-
-       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pSubtitleTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pProgressTimer);
-       VP_EVAS_TIMER_DEL(pNormalView->pLockScreenTimer);
-#ifdef _NATIVE_BUFFER_SYNC
-       VP_EVAS_DEL(pNormalView->pVideoSink);
-#endif
-
-       if (pNormalView->pPlayerHandle) {
-               vp_mm_player_destroy(pNormalView->pPlayerHandle);
-               pNormalView->pPlayerHandle = NULL;
-       }
-
-       pNormalView->bIsRealize = FALSE;
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_is_realize(normal_view_handle pViewHandle, bool *bIsRealize)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       *bIsRealize = pNormalView->bIsRealize;
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_pause(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       vp_mm_player_pause(pNormalView->pPlayerHandle);
-       _vp_play_normal_view_set_play_state(pNormalView);
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_resume(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       if (pNormalView->pPlayerHandle && pNormalView->bIsRealize) {
-               _vp_play_normal_view_all_close_popup(pNormalView);
-       }
-
-       if (pNormalView->bManualPause == FALSE && pNormalView->bSharepopup == FALSE) {
-
-               vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-
-               if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                       VideoLogWarning("vp_mm_player_get_state is fail");
-               }
-               if (nState != VP_MM_PLAYER_STATE_PLAYING) {
-                       if (vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                               _vp_play_normal_view_check_during_call(pNormalView);
-                       }
-                       _vp_play_normal_view_set_play_state(pNormalView);
-               }
-       }
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_resume_or_pause(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("[ERR] No Exist pUserData.");
-               return FALSE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pViewHandle;
-
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       switch (nState)
-       {
-       case VP_MM_PLAYER_STATE_NONE:
-       case VP_MM_PLAYER_STATE_IDLE:
-       case VP_MM_PLAYER_STATE_READY:
-       case VP_MM_PLAYER_STATE_PAUSED:
-               _vp_play_normal_view_all_close_popup(pNormalView);
-               vp_mm_player_play(pNormalView->pPlayerHandle);
-               break;
-       case VP_MM_PLAYER_STATE_PLAYING:
-               vp_mm_player_pause(pNormalView->pPlayerHandle);
-               break;
-       case VP_MM_PLAYER_STATE_STOP:
-               break;
-       }
-
-       _vp_play_normal_view_set_play_state(pNormalView);
-       _vp_play_normal_view_check_during_call(pNormalView);
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_next_play(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pViewHandle;
-
-       _vp_play_normal_view_on_next_play(pNormalView, TRUE);
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_prev_play(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       _vp_play_normal_view_on_prev_play(pNormalView, TRUE, FALSE);
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_set_url(normal_view_handle pViewHandle, const char *szMediaURL)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       if (!szMediaURL) {
-               VideoLogError("szMediaURL is NULL");
-               return FALSE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pViewHandle;
-
-       VP_FREE(pNormalView->szMediaURL);
-       VP_STRDUP(pNormalView->szMediaURL, szMediaURL);
-
-       return TRUE;
-
-}
-
-bool vp_play_normal_view_player_state_changed_get(normal_view_handle pViewHandle)
-{
-       NormalView *pNormalView = (NormalView *)pViewHandle;
-       if (!pNormalView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (nState == pState)
-               return FALSE;
-       else
-               pState = nState;
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_set_video_only(normal_view_handle pViewHandle, bool bVideoOnly)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView *pNormalView = (NormalView *)pViewHandle;
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return FALSE;
-       }
-
-       pNormalView->bVideoOnlyMode = bVideoOnly;
-
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-       if (nState != VP_MM_PLAYER_STATE_NONE && nState != VP_MM_PLAYER_STATE_IDLE)
-               vp_play_subtitle_set_text(pNormalView->pSubtitle, "");
-
-       if (bVideoOnly == TRUE) {
-               if (pNormalView->pImageBufferObj) {
-                       elm_object_part_content_unset(pNormalView->pMainLayout, VP_PLAY_SWALLOW_NORMAL_IMAGE_BUFFER);
-                       VP_EVAS_DEL(pNormalView->pImageBufferObj);
-               }
-
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_NO_CONTNES_SHOW, "*");
-
-               VP_EVAS_DISABLE_SET(pNormalView->pSoundPathBtn, EINA_TRUE);
-
-               //VP_EVAS_DISABLE_SET(pNormalView->pRotateBtn, EINA_TRUE);
-               if (pNormalView->pRotateBtn) {
-                       _vp_play_normal_view_set_rotate_lock_state(pNormalView);
-                       _vp_play_normal_view_set_volume_lock_state(pNormalView);
-               }
-
-               VP_EVAS_DISABLE_SET(pNormalView->pScreenSizeBtn, EINA_TRUE);
-               VP_EVAS_DISABLE_SET(pNormalView->pBookmarkBtn, EINA_TRUE);
-               VP_EVAS_DISABLE_SET(pNormalView->pMultiWinBtn, EINA_TRUE);
-               VP_EVAS_DISABLE_SET(pNormalView->pRepeatBtn, EINA_TRUE);
-               VP_EVAS_DISABLE_SET(pNormalView->pTrimBtn, EINA_TRUE);
-               VP_EVAS_DISABLE_SET(pNormalView->pShareBtn, EINA_TRUE);
-       } else {
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_NO_CONTNES_HIDE, "*");
-
-               VP_FREE(pNormalView->szScreenMirrorMacAddr);
-               //VP_EVAS_DISABLE_SET(pNormalView->pRotateBtn, EINA_FALSE);
-               if (pNormalView->pRotateBtn) {
-                       _vp_play_normal_view_set_rotate_lock_state(pNormalView);
-                       _vp_play_normal_view_set_volume_lock_state(pNormalView);
-               }
-               VP_EVAS_DISABLE_SET(pNormalView->pScreenSizeBtn, EINA_FALSE);
-               VP_EVAS_DISABLE_SET(pNormalView->pRepeatBtn, EINA_FALSE);
-               if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_EMAIL) {
-                               char *szMediaID = NULL;
-                               bool bReturn = FALSE;
-                               bReturn = vp_media_contents_get_video_id(pNormalView->szMediaURL, &szMediaID);
-
-                               if (szMediaID && bReturn) {
-                                       VP_EVAS_DISABLE_SET(pNormalView->pTrimBtn, EINA_FALSE);
-                               } else {
-                                       VP_EVAS_DISABLE_SET(pNormalView->pTrimBtn, EINA_TRUE);
-                               }
-                               VP_FREE(szMediaID);
-               } else {
-                       VP_EVAS_DISABLE_SET(pNormalView->pTrimBtn, EINA_FALSE);
-               }
-               VP_EVAS_DISABLE_SET(pNormalView->pSoundAliveBtn, EINA_FALSE);
-
-               if (pNormalView->nLaunchingType == VIDEO_PLAY_TYPE_MULTI_PATH) {
-                       if (vp_play_util_check_streaming(pNormalView->szMediaURL) == TRUE) {
-                                       VP_EVAS_DISABLE_SET(pNormalView->pShareBtn, EINA_TRUE);
-                       } else {
-                                       VP_EVAS_DISABLE_SET(pNormalView->pShareBtn, EINA_FALSE);
-                       }
-               } else {
-                       VP_EVAS_DISABLE_SET(pNormalView->pShareBtn, EINA_FALSE);
-               }
-
-               VP_EVAS_DISABLE_SET(pNormalView->pBookmarkBtn, EINA_FALSE);
-               VP_EVAS_DISABLE_SET(pNormalView->pMultiWinBtn, EINA_FALSE);
-
-               vp_play_progressbar_set_opacity(pNormalView->pProgressbar, FALSE);
-       }
-
-       _vp_play_normal_view_on_capture_mode(pNormalView);
-       _vp_play_normal_view_set_play_state(pNormalView);
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_get_video_only(normal_view_handle pViewHandle, bool *bVideoOnly)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       *bVideoOnly = pNormalView->bVideoOnlyMode;
-
-       return TRUE;
-
-}
-
-bool vp_play_normal_view_set_device_unplug_interrupt(normal_view_handle pViewHandle, bool bDeviceUnplugInterrupt)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       pNormalView->bDeviceRemoveInterrupt = bDeviceUnplugInterrupt;
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_set_start_position(normal_view_handle pViewHandle, int nStartPosition)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       if (nStartPosition < 0) {
-               VideoLogError("szMediaURL is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       pNormalView->nStartPosition = nStartPosition;
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_get_last_position(normal_view_handle pViewHandle, int *nCurPos)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       int nPosition = 0;
-
-       if (pNormalView->bHLSMode) {
-               *nCurPos = 0;
-               return TRUE;
-       }
-
-       if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-               VideoLogError("vp_mm_player_get_position is fail");
-               return FALSE;
-       }
-
-       pNormalView->nCurPosition = nPosition;
-
-       *nCurPos = pNormalView->nCurPosition;
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_set_update_last_position(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       _vp_play_normal_view_set_played_time(pNormalView);
-
-       return TRUE;
-
-}
-
-bool vp_play_normal_view_set_subtitle(normal_view_handle pViewHandle, char *szSubtitle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       VP_FREE(pNormalView->szSubtitleURL);
-
-       VP_STRDUP(pNormalView->szSubtitleURL, szSubtitle);
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_get_subtitle(normal_view_handle pViewHandle, char **szSubtitle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       if (!vp_mm_player_get_subtitle_url(pNormalView->pPlayerHandle, szSubtitle)) {
-               VideoLogError("vp_mm_player_get_subtitle_url is fail");
-               return FALSE;
-       }
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_get_audio_track(normal_view_handle pViewHandle, int *nAudioTrack)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       *nAudioTrack = pNormalView->nDefaultAudioTrackIndex;
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_set_audio_track(normal_view_handle pViewHandle, int nAudioTrack)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       pNormalView->nDefaultAudioTrackIndex = nAudioTrack;
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_set_manual_pause(normal_view_handle pViewHandle, bool bManualPause)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       pNormalView->bManualPause = bManualPause;
-
-       return TRUE;
-
-}
-
-bool vp_play_normal_view_get_manual_pause(normal_view_handle pViewHandle, bool *bManualPause)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       *bManualPause = pNormalView->bManualPause;
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_get_pause_status(normal_view_handle pViewHandle, bool *bPause)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-
-
-       if (nState == VP_MM_PLAYER_STATE_PLAYING) {
-               *bPause = FALSE;
-       } else {
-               *bPause = TRUE;
-       }
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_get_sound_filter(normal_view_handle pViewHandle, video_sound_alive_t *nSoundAlive)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       *nSoundAlive = pNormalView->nSoundAlive;
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_set_sound_filter(normal_view_handle pViewHandle, video_sound_alive_t nSoundAlive)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       pNormalView->nSoundAlive = nSoundAlive;
-
-       return TRUE;
-}
-
-
-bool vp_play_normal_view_set_rotate(normal_view_handle pViewHandle, video_play_rotate_t nRotate, bool bLayoutHide)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       PlayView        *pPlayView = pNormalView->pPlayView;
-
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return FALSE;
-       }
-
-       if (nRotate == VIDEO_PLAY_ROTATE_NONE) {
-               vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_0);
-       }
-       else if (nRotate == VIDEO_PLAY_ROTATE_90) {
-               vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_90);
-       }
-       else if (nRotate == VIDEO_PLAY_ROTATE_180) {
-               vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_180);
-       }
-       else if (nRotate == VIDEO_PLAY_ROTATE_270) {
-               vp_mm_player_set_video_rotate(pNormalView->pPlayerHandle, VP_MM_PLAYER_ROTATE_270);
-       }
-
-       int nAngle = elm_win_rotation_get(pPlayView->pWin);
-       video_play_rotate_t nCurRot = VIDEO_PLAY_ROTATE_NONE;
-
-       switch (nAngle)
-       {
-       case 0:         nCurRot = VIDEO_PLAY_ROTATE_NONE;       break;
-       case 90:        nCurRot = VIDEO_PLAY_ROTATE_90;         break;
-       case 180:       nCurRot = VIDEO_PLAY_ROTATE_180;        break;
-       case 270:       nCurRot = VIDEO_PLAY_ROTATE_270;        break;
-       }
-
-       if (nRotate != nCurRot) {
-               if (nRotate == VIDEO_PLAY_ROTATE_NONE) {
-                       elm_win_wm_rotation_preferred_rotation_set(pPlayView->pWin, 0);
-               }
-               else if (nRotate == VIDEO_PLAY_ROTATE_90) {
-                       elm_win_wm_rotation_preferred_rotation_set(pPlayView->pWin, 90);
-               }
-               else if (nRotate == VIDEO_PLAY_ROTATE_180) {
-                       elm_win_wm_rotation_preferred_rotation_set(pPlayView->pWin, 180);
-               }
-               else if (nRotate == VIDEO_PLAY_ROTATE_270) {
-                       elm_win_wm_rotation_preferred_rotation_set(pPlayView->pWin, 270);
-               }
-       }
-
-       if (pNormalView->nRotate != nRotate) {
-               if (pNormalView->pBookmarkHandle) {
-                       bool bIsReailze = FALSE;
-                       vp_play_bookmark_is_realize(pNormalView->pBookmarkHandle, &bIsReailze);
-
-                       if (bIsReailze) {
-                               _vp_play_normal_view_on_bookmark_mode(pNormalView, FALSE);
-                               vp_play_bookmark_unrealize(pNormalView->pBookmarkHandle);
-                       }
-               }
-       }
-
-       if (pNormalView->pVolumeHandle) {
-               bool bIsRealize = FALSE;
-
-               if (!vp_play_volume_is_realize(pNormalView->pVolumeHandle, &bIsRealize)) {
-                       VideoLogWarning("vp_play_volume_is_realize is fail");
-               }
-
-               if (bIsRealize) {
-                       if (!vp_play_volume_unrealize(pNormalView->pVolumeHandle)) {
-                               VideoLogWarning("vp_play_volume_unrealize is fail");
-                       }
-               }
-       }
-
-       if (pNormalView->pVolumePopupHandle) {
-               bool bIsRealize = FALSE;
-
-               if (!vp_play_volume_popup_is_realize(pNormalView->pVolumePopupHandle, &bIsRealize)) {
-                       VideoLogWarning("vp_play_volume_popup_is_realize is fail");
-               }
-
-               if (bIsRealize) {
-                       if (!vp_play_volume_popup_unrealize(pNormalView->pVolumePopupHandle)) {
-                               VideoLogWarning("vp_play_volume_popup_unrealize is fail");
-                       }
-               }
-       }
-
-       if (pNormalView->pBrightnessHandle) {
-               bool bIsRealize = FALSE;
-
-               if (!vp_play_brightness_is_realize(pNormalView->pBrightnessHandle, &bIsRealize)) {
-                       VideoLogWarning("vp_play_volume_is_realize is fail");
-               }
-               if (bIsRealize) {
-                       if (!vp_play_brightness_unrealize(pNormalView->pBrightnessHandle)) {
-                               VideoLogWarning("vp_play_brightness_unrealize is fail");
-                       }
-               }
-       }
-
-       _vp_play_normal_view_set_rotate_lock_state(pNormalView);
-       bool bLandscape = vp_play_util_get_landscape_check(nRotate);
-
-       if (bLandscape) {
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_NO_EFFECT_LANDSCAPE_SHOW, "*");
-#ifdef SUBTITLE_K_FEATURE
-               elm_object_signal_emit(vp_play_subtitle_get_object(pNormalView->pSubtitle), VP_SUBTITLE_SIGNAL_MAIN_LANDSCAPE_SHOW, "*");
-               evas_object_move(vp_play_subtitle_get_object(pNormalView->pSubtitle), VP_SUBTITLE_LANDSCAPE_POSX, VP_SUBTITLE_LANDSCAPE_POSY);
-               pNormalView->nInitSubtitleX = VP_SUBTITLE_LANDSCAPE_POSX;
-               pNormalView->nInitSubtitleY = VP_SUBTITLE_LANDSCAPE_POSY;
-#endif
-       } else {
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_NO_EFFECT_PORTRAIT_SHOW, "*");
-#ifdef SUBTITLE_K_FEATURE
-               elm_object_signal_emit(vp_play_subtitle_get_object(pNormalView->pSubtitle), VP_SUBTITLE_SIGNAL_MAIN_PORTRAIT_SHOW, "*");
-               evas_object_move(vp_play_subtitle_get_object(pNormalView->pSubtitle), VP_SUBTITLE_PORTRAIT_POSX, VP_SUBTITLE_PORTRAIT_POSY);
-               pNormalView->nInitSubtitleX = VP_SUBTITLE_PORTRAIT_POSX;
-               pNormalView->nInitSubtitleY = VP_SUBTITLE_PORTRAIT_POSY;
-#endif
-       }
-
-#ifndef SUBTITLE_K_FEATURE
-       if (pNormalView->nDisplayMode != VP_MM_PLAYER_DISPLAY_FULL_SCREEN) {
-               if (nRotate == VIDEO_PLAY_ROTATE_NONE || nRotate == VIDEO_PLAY_ROTATE_180) {
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_PORTRAIT, "*");
-               }
-               else {
-                       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_HIDE, "*");
-               }
-       }
-       else {
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SUBTITLE_HIDE, "*");
-       }
-#endif
-
-       if (bLayoutHide) {
-               _vp_play_normal_view_hide_layout(pNormalView, TRUE);
-       }
-
-       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-       elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_MAIN_SPEED_HIDE, "*");
-       pNormalView->nRotate = nRotate;
-
-#ifdef FLICK_JUMP
-       __vp_normal_flickjump_layout_position(pNormalView);
-#endif
-
-       if (pNormalView->pCtxPopup) {
-               PlayView *pPlayView = pNormalView->pPlayView;
-
-               if (!pPlayView) {
-                       VideoLogError("pPlayView is NULL");
-                       return FALSE;
-               }
-
-               int nW = 0;
-               int nH = 0;
-
-               Evas_Coord_Rectangle rect = {0,};
-               elm_win_screen_size_get(pPlayView->pWin,  &rect.x, &rect.y, &rect.w, &rect.h);
-               if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_NONE) {
-                       nW = rect.w/2;
-                       nH = rect.h;
-               }
-               else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_90) {
-                       nW = rect.h/2;
-                       nH = rect.w;
-               }
-               else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_180) {
-                       nW = rect.w/2;
-                       nH = rect.h;
-               }
-               else if (pNormalView->nRotate == VIDEO_PLAY_ROTATE_270) {
-                       nW = rect.h/2;
-                       nH = rect.w;
-               }
-
-               evas_object_move(pNormalView->pCtxPopup, nW, nH);
-
-               evas_object_show(pNormalView->pCtxPopup);
-       }
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_set_launching_mode(normal_view_handle pViewHandle, video_play_launching_type_t nLaunchingType)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       pNormalView->nLaunchingType = nLaunchingType;
-
-       return TRUE;
-
-}
-bool vp_play_normal_view_update(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       VideoLogWarning(" == NORMAL VIEW UPDATE ==");
-
-       if (pNormalView->pVolumeHandle) {
-               bool bIsRealize = FALSE;
-               if (!vp_play_volume_is_realize(pNormalView->pVolumeHandle, &bIsRealize)) {
-                       VideoLogWarning("vp_play_volume_is_realize is fail");
-               }
-
-               if (bIsRealize) {
-                       /*update volume popup*/
-                       if (!vp_play_normal_view_volume_update(pNormalView)) {
-                               VideoLogWarning("vp_play_normal_view_volume_update is fail");
-                       }
-               }
-       }
-
-       if (pNormalView->pVolumePopupHandle) {
-               bool bIsRealize = FALSE;
-
-               if (!vp_play_volume_popup_is_realize(pNormalView->pVolumePopupHandle, &bIsRealize)) {
-                       VideoLogWarning("vp_play_volume_popup_is_realize is fail");
-               }
-
-               if (bIsRealize) {
-                       if (!vp_play_volume_popup_unrealize(pNormalView->pVolumePopupHandle)) {
-                               VideoLogWarning("vp_play_volume_popup_unrealize is fail");
-                       }
-               }
-       }
-
-       if (pNormalView->pBrightnessHandle) {
-               bool bIsRealize = FALSE;
-
-               if (!vp_play_brightness_is_realize(pNormalView->pBrightnessHandle, &bIsRealize)) {
-                       VideoLogWarning("vp_play_volume_is_realize is fail");
-               }
-               if (bIsRealize) {
-                       if (!vp_play_brightness_unrealize(pNormalView->pBrightnessHandle)) {
-                               VideoLogWarning("vp_play_brightness_unrealize is fail");
-                       }
-               }
-       }
-
-       bool bLock = FALSE;
-       vp_play_normal_view_get_lock_screen(pNormalView, &bLock);
-       if (bLock) {
-               vp_play_normal_view_set_lock_screen(pNormalView, bLock);
-       }
-
-       _vp_play_normal_view_set_sound_path_state(pNormalView);
-//     _vp_play_normal_view_set_rotate_lock_state(pNormalView);
-//     _vp_play_normal_view_set_volume_lock_state(pNormalView);
-
-       VideoLogWarning("share popup==%d,%d", pNormalView->bSharePanelFocusIn, pNormalView->bSharePanelPause);
-       if (pNormalView->bSharePanelFocusIn && pNormalView->bSharePanelPause) {
-               VideoLogWarning("pNormalView->bManualPause == FALSE");
-               pNormalView->bSharePanelPause = FALSE;
-               pNormalView->bSharepopup = FALSE;
-
-               vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-
-               if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                       VideoLogWarning("vp_mm_player_get_state is fail");
-               }
-               if (nState != VP_MM_PLAYER_STATE_PLAYING) {
-                       if (vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                               _vp_play_normal_view_check_during_call(pNormalView);
-                       }
-                       _vp_play_normal_view_set_play_state(pNormalView);
-               }
-       }
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_rotate_update(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("PlayView handle is NULL");
-               return FALSE;
-       }
-       NormalView *pNormalView = (NormalView *)pViewHandle;
-       _vp_play_normal_view_set_rotate_lock_state(pNormalView);
-       if (pNormalView->bShowLayout) {
-               _vp_play_normal_view_hide_layout(pNormalView, TRUE);
-       }
-       return TRUE;
-}
-
-bool vp_play_normal_view_set_share_panel_state(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("PlayView handle is NULL");
-               return FALSE;
-       }
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       pNormalView->bSharepopup = FALSE;
-       pNormalView->bSharePanelFocusIn = TRUE;
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_set_share_state(normal_view_handle pViewHandle, bool bState)
-{
-       if (!pViewHandle) {
-               VideoLogError("PlayView handle is NULL");
-               return FALSE;
-       }
-       NormalView *pNormalView = (NormalView *)pViewHandle;
-       pNormalView->bSharePanelstate = bState;
-       return TRUE;
-}
-
-bool vp_play_normal_view_get_share_state(normal_view_handle pViewHandle, bool *bState);
-{
-       if (!pViewHandle || !bState) {
-               VideoLogError("PlayView handle is NULL");
-               return FALSE;
-       }
-       NormalView *pNormalView = (NormalView *)pViewHandle;
-       *bState = pNormalView->bSharePanelstate;
-       return TRUE;
-}
-
-bool vp_play_normal_view_on_more_menu(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       VideoLogInfo("bIsPopupShow=%d,bIsSubtitleShow=%d", pNormalView->bIsPopupShow, pNormalView->bIsSubtitleShow);
-       if (pNormalView->bIsPopupShow || pNormalView->bIsSubtitleShow) {
-               if (pNormalView->pCtxPopup) {
-                       elm_ctxpopup_dismiss(pNormalView->pCtxPopup);
-               }
-               return TRUE;
-       }
-
-       if (pNormalView->pCtxPopup) {
-               elm_ctxpopup_dismiss(pNormalView->pCtxPopup);
-
-               if (!vp_play_volume_unrealize(pNormalView->pVolumeHandle)) {
-                       VideoLogWarning("vp_play_volume_unrealize is fail");
-               }
-       }
-       else {
-               __vp_normal_more_btn_clicked_cb((void *)pNormalView, pNormalView->pMoreBtn, NULL);
-       }
-
-       return TRUE;
-
-}
-
-bool vp_play_normal_view_volume_increase(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       if (pNormalView->pCtxPopup) {
-               elm_ctxpopup_dismiss(pNormalView->pCtxPopup);
-       }
-
-       _vp_play_normal_view_on_volume_popup(pNormalView, FALSE);
-
-       int nCurVal = 0;
-
-       vp_play_volume_increase_value(pNormalView->pVolumeHandle);
-       nCurVal = vp_play_volume_get_value(pNormalView->pVolumeHandle);
-
-       _vp_play_normal_view_set_volume_state(pNormalView);
-
-       pNormalView->nLastVolume = nCurVal;
-
-       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_volume_decrease(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       if (pNormalView->pCtxPopup) {
-               elm_ctxpopup_dismiss(pNormalView->pCtxPopup);
-       }
-
-       _vp_play_normal_view_on_volume_popup(pNormalView, FALSE);
-
-       int nCurVal = 0;
-
-       vp_play_volume_decrease_value(pNormalView->pVolumeHandle);
-       nCurVal = vp_play_volume_get_value(pNormalView->pVolumeHandle);
-
-       _vp_play_normal_view_set_volume_state(pNormalView);
-
-       pNormalView->nLastVolume = nCurVal;
-
-       _vp_play_normal_view_create_layout_hide_timer(pNormalView);
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_volume_mute(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       _vp_play_normal_view_on_volume_popup(pNormalView, FALSE);
-
-       int nMuteVal = vp_play_volume_get_mute_value(pNormalView->pVolumeHandle);
-       if (nMuteVal >0) {
-               pNormalView->nLastVolume = nMuteVal;
-               vp_play_volume_set_value(pNormalView->pVolumeHandle, pNormalView->nLastVolume);
-       } else {
-               vp_play_volume_set_mute_value(pNormalView->pVolumeHandle);
-               pNormalView->nLastVolume = 0;
-               vp_play_volume_set_value(pNormalView->pVolumeHandle, 0);
-       }
-       _vp_play_normal_view_set_volume_state(pNormalView);
-
-       return TRUE;
-}
-
-bool vp_play_normal_view_volume_update(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       if (!pNormalView->pVolumeHandle) {
-               return TRUE;
-       }
-
-       vp_play_volume_update_value(pNormalView->pVolumeHandle);
-       _vp_play_normal_view_set_volume_state(pNormalView);
-
-       return TRUE;
-}
-
-
-bool vp_play_normal_view_set_lock_screen(normal_view_handle pViewHandle, bool bLock)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       pNormalView->bLockScreen = bLock;
-       VP_EVAS_TIMER_DEL(pNormalView->pLockScreenTimer);
-
-       elm_object_part_content_unset(pNormalView->pMainLayout,VP_PLAY_SWALLOW_NORMAL_LOCKSCREEN);
-       VP_EVAS_DEL(pNormalView->pLockBtn);
-       PlayView *pPlayView = pNormalView->pPlayView;
-       Evas_Object *pParent = NULL;
-       if (!pNormalView->pSoundPathBtn) {
-               pParent = pNormalView->pMainLayout;
-
-       } else if (pNormalView->pFunctionLayout) {
-
-               pParent = pNormalView->pFunctionLayout;
-
-       } else {
-
-               pParent = pNormalView->pMainLayout;
-       }
-       if (!pPlayView) {
-               VideoLogError("pNormalView is NULL");
-               return FALSE;
-       }
-       if (bLock) {
-               VideoLogWarning("================ LOCK HOME KEY ==============");
-               vp_play_util_key_grab(pPlayView->pWin, VP_HOME_KEY);
-
-               _vp_play_normal_view_all_close_popup(pNormalView);
-
-               VP_EVAS_TIMER_DEL(pNormalView->pHideTimer);
-               VP_EVAS_TIMER_DEL(pNormalView->pHideFinishTimer);
-
-               _vp_play_normal_view_hide_layout(pNormalView, TRUE);
-               vp_play_volume_unset_mouse_callbacks(pNormalView->pVolumeHandle, pNormalView->pPlayView->pWin);
-
-               pNormalView->pLockScreenTimer =
-                       ecore_timer_add(VP_NORMAL_HIDE_SCREEN_LOCK_TIMER_INTERVAL,
-                       __vp_normal_lockscreen_timer_cb, (void *)pNormalView);
-
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_LOCKSCREEN_SHOW, "*");
-
-               pNormalView->pLockBtn = vp_button_create(
-                                               pParent, "playview/custom/flat_46_46/default", NULL,
-                                               (Evas_Smart_Cb)__vp_normal_function_btn_clicked_cb,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_press_cb,
-                                               (Evas_Smart_Cb)__vp_normal_control_btn_unpress_cb,
-                                               (void *)pNormalView);
-               if (!pNormalView->pLockBtn) {
-                       VideoLogError("elm_button_add is fail");
-                       return FALSE;
-               }
-
-
-               Evas_Object *pIcon = NULL;
-
-               pIcon = vp_button_create_icon(pNormalView->pLockBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_LOCK);
-               elm_object_part_content_set(pNormalView->pLockBtn, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
-
-               pIcon = vp_button_create_icon(pNormalView->pLockBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_LOCK_PRESS);
-               elm_object_part_content_set(pNormalView->pLockBtn, VP_PLAY_SWALLOW_BUTTON_PRESS_ICON, pIcon);
-
-               pIcon = vp_button_create_icon(pNormalView->pLockBtn, VP_PLAY_RESROUCE_EDJ_PATH, VP_PLAY_NORMAL_RES_LOCK);
-               elm_object_part_content_set(pNormalView->pLockBtn, VP_PLAY_SWALLOW_BUTTON_DIM_ICON, pIcon);
-
-               elm_object_part_content_set(pNormalView->pMainLayout,VP_PLAY_SWALLOW_NORMAL_LOCKSCREEN, pNormalView->pLockBtn);
-
-               evas_object_show(pNormalView->pLockBtn);
-
-               if (pNormalView->bManualPause == FALSE) {
-                       if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-                               VideoLogWarning("Start Fail");
-                       }
-                       _vp_play_normal_view_set_play_state(pNormalView);
-                       _vp_play_normal_view_on_capture_mode(pNormalView);
-               }
-       } else {
-               VideoLogWarning("================ UNLOCK HOME KEY ==============");
-               vp_play_util_key_ungrab(pPlayView->pWin, VP_HOME_KEY);
-
-               elm_object_signal_emit(pNormalView->pMainLayout, VP_NORMAL_SIGNAL_LOCKSCREEN_HIDE, "*");
-               vp_play_volume_set_mouse_callbacks(pNormalView->pVolumeHandle, pNormalView->pPlayView->pWin);
-               vp_play_util_key_grab(pPlayView->pWin, VP_VOLUME_UP_KEY);
-               vp_play_util_key_grab(pPlayView->pWin, VP_VOLUME_DOWN_KEY);
-               vp_play_util_key_grab(pPlayView->pWin, VP_VOLUME_MUTE);
-
-               _vp_play_normal_view_show_layout(pNormalView);
-       }
-       return TRUE;
-}
-
-bool vp_play_normal_view_get_lock_screen(normal_view_handle pViewHandle, bool *bLock)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       *bLock = pNormalView->bLockScreen;
-
-       return TRUE;
-}
-
-void vp_play_normal_view_hide_sound_popup(normal_view_handle pViewHandle)
-{
-
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       if (pNormalView->bIsPopupShow)
-       {
-
-               VP_EVAS_DEL(pNormalView->pPopup);
-               pNormalView->bIsPopupShow = FALSE;
-       }
-}
-
-void vp_play_normal_view_web_type_disconnect(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       if (!pNormalView->pPlayView) {
-               VideoLogError("pNormalView->pPlayView is NULL");
-               return;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-
-       if (pPlayView->nStartPosition<=0) {
-               int nPosition = 0;
-               if (!vp_mm_player_get_position(pNormalView->pPlayerHandle, &nPosition)) {
-                       VideoLogError("vp_mm_player_get_position is fail");
-               }
-                       if (nPosition>0)
-                               pNormalView->nStartPosition = nPosition;
-       } else {
-               pNormalView->nStartPosition = pPlayView->nStartPosition;
-       }
-
-       vp_mm_player_destroy(pNormalView->pPlayerHandle);
-       pNormalView->pPlayerHandle = NULL;
-
-       VideoLogInfo("pNormalView->nStartPosition : [%d]", pNormalView->nStartPosition);
-}
-
-void vp_play_normal_view_web_type_reconnect(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-
-       if (!pNormalView->pPlayView) {
-               VideoLogError("pNormalView->pPlayView is NULL");
-               return;
-       }
-
-       if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB) {
-               VideoLogInfo("Not WEB type");
-               return;
-       }
-
-       if (pNormalView->pPlayerHandle) {
-               vp_mm_player_destroy(pNormalView->pPlayerHandle);
-               pNormalView->pPlayerHandle = NULL;
-       }
-
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (pPlayView->nStartPosition > 0)
-               pNormalView->nStartPosition = pPlayView->nStartPosition;
-
-       VideoLogInfo("pNormalView->nStartPosition : [%d]", pNormalView->nStartPosition);
-       _vp_play_normal_view_play_start(pNormalView, FALSE);
-}
-
-//For mini controller
-bool vp_controller_play_normal_view_pause(normal_view_handle pViewHandle)
-{
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       if (!pNormalView) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       VideoLogWarning("Pause button");
-
-       if (!vp_mm_player_pause(pNormalView->pPlayerHandle)) {
-               VideoLogWarning("Pause Fail");
-       }
-
-       VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
-       pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
-       pNormalView->bManualPause = TRUE;
-       return TRUE;
-
-}
-
-bool vp_controller_play_normal_view_resume(normal_view_handle pViewHandle)
-{
-       VideoLogInfo("Resume button");
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       if (!pNormalView) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       _vp_play_normal_view_check_during_call(pNormalView);
-
-       if (!vp_mm_player_play(pNormalView->pPlayerHandle)) {
-               VideoLogWarning("Resume Fail");
-       }
-       VP_EVAS_IDLER_DEL(pNormalView->pControlIdler);
-       pNormalView->pControlIdler = ecore_idler_add(__vp_normal_control_idler_cb, (void *)pNormalView);
-       pNormalView->bManualPause = FALSE;
-       return TRUE;
-}
-
-bool vp_controller_play_normal_view_next_play(normal_view_handle pViewHandle)
-{
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       if (!pNormalView) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       if (pNormalView->bHLSMode == FALSE) {
-               if (pNormalView->nSpeedValue < 2) {
-                       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-                       _vp_play_normal_view_on_next_play(pNormalView, TRUE);
-               }
-       }
-       return TRUE;
-}
-
-bool vp_controller_play_normal_view_prev_play(normal_view_handle pViewHandle)
-{
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       if (!pNormalView) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       if (pNormalView->bHLSMode == FALSE) {
-               if (pNormalView->nSpeedValue < 2) {
-                       VP_EVAS_TIMER_DEL(pNormalView->pSpeedTimer);
-                       _vp_play_normal_view_on_prev_play(pNormalView, TRUE, FALSE);
-               }
-       }
-       return TRUE;
-}
-
-char *vp_controller_normal_view_get_thumbnail(normal_view_handle pViewHandle)
-{
-       char *szThumbnail = NULL;
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       if (!pNormalView) {
-               VideoLogError("pViewHandle is NULL ");
-               return NULL;
-       }
-       if (!pNormalView->szMediaURL)
-       {
-               VideoLogError("pNormalView->szMediaURL");
-               return NULL;
-       }
-       vp_media_contents_get_video_thumbnail_path(pNormalView->szMediaURL, &szThumbnail);
-       VideoLogInfo("thumbnail = %s:%s", pNormalView->szMediaURL, szThumbnail);
-       return szThumbnail;
-}
-
-char *vp_controller_normal_view_get_title(normal_view_handle pViewHandle)
-{
-       char *pTitle = NULL;
-       NormalView      *pNormalView= (NormalView *)pViewHandle;
-       if (!pNormalView) {
-               VideoLogError("pViewHandle is NULL");
-               return NULL;
-       }
-       if (!pNormalView->szMediaURL)
-       {
-               VideoLogError("pNormalView->szMediaURL IS null");
-               return NULL;
-       }
-
-       pTitle = vp_play_util_get_title_from_path(pNormalView->szMediaURL);
-       VideoLogInfo("title = %s", pTitle);
-       return pTitle;
-}
-
-int vp_controller_normal_view_get_duration(normal_view_handle pViewHandle)
-{
-       NormalView      *pNormalView= (NormalView *)pViewHandle;
-       if (!pNormalView) {
-               VideoLogError("pViewHandle is NULL");
-               return 0;
-       }
-       if (!pNormalView->szMediaURL)
-       {
-               VideoLogError("pNormalView->szMediaURL IS null");
-               return 0;
-       }
-
-       return pNormalView->nDuration;
-}
-
-bool vp_controller_normal_view_pop_view(normal_view_handle pViewHandle)
-{
-       NormalView      *pNormalView= (NormalView *)pViewHandle;
-       if (!pNormalView) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-       __vp_normal_naviframe_pop_cb(pNormalView, pNormalView->pNaviItem);
-       return TRUE;
-}
-
-int vp_controller_normal_view_get_played_state(normal_view_handle pViewHandle)
-{
-       NormalView      *pNormalView= (NormalView *)pViewHandle;
-       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-       if (!pNormalView) {
-               VideoLogError("pViewHandle is NULL");
-               return nState;
-       }
-       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-               VideoLogWarning("vp_mm_player_get_state is fail");
-       }
-       VideoLogError("state is %d", nState);
-
-       return (int)nState;
-}
-
-bool vp_controller_normal_view_add_played_state_cb(normal_view_handle pViewHandle, vp_normal_view_state_cb fState_cb)
-{
-       NormalView      *pNormalView= (NormalView *)pViewHandle;
-       if (!pNormalView) {
-               VideoLogError("pViewHandle is NULL");
-               return FALSE;
-       }
-
-       pNormalView->vp_mini_played_state_cb = fState_cb;
-       return TRUE;
-}
-
-void vp_play_normal_view_db_change(normal_view_handle pViewHandle)
-{
-       if (!pViewHandle) {
-               VideoLogError("pViewHandle is NULL");
-               return;
-       }
-
-       NormalView      *pNormalView = (NormalView *)pViewHandle;
-       PlayView *pPlayView = pNormalView->pPlayView;
-       if (!pPlayView) {
-               VideoLogError("pPlayView is NULL");
-               return;
-       }
-
-       if (pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_WEB &&
-                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_PREVIEW &&
-                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MESSAGE &&
-                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_EMAIL &&
-                       pNormalView->nLaunchingType != VIDEO_PLAY_TYPE_MULTI_PATH) {
-
-               char *pVideoId = NULL;
-               vp_media_contents_get_video_id(pNormalView->szMediaURL, &pVideoId);
-
-               VideoSecureLogInfo("change == %d, %s, %s", pNormalView->nLaunchingType, pNormalView->szMediaURL, pVideoId);
-               if (!vp_file_exists(pNormalView->szMediaURL) || !pVideoId) {
-                       VideoLogError("current file is deleted");
-                       VP_FREE(pVideoId);
-                       if (!pPlayView->pFunc) {
-                               VideoLogError("pPlayView pFunc is NULL");
-                               return;
-                       }
-
-                       if (!pPlayView->pFunc->vp_play_func_exit) {
-                               VideoLogError("pPlayView exit Func is NULL");
-                               return;
-                       }
-
-                       vp_mm_player_state_t nState = VP_MM_PLAYER_STATE_NONE;
-
-                       if (!vp_mm_player_get_state(pNormalView->pPlayerHandle, &nState)) {
-                               VideoLogWarning("vp_mm_player_get_state is fail");
-                       }
-                       if (nState == VP_MM_PLAYER_STATE_PAUSED) {
-                               vp_device_set_screen_off(FALSE);
-                               vp_device_display_lcd_unlock();
-
-                               pPlayView->pFunc->vp_play_func_exit(pPlayView);
-                       }
-               }
-               VP_FREE(pVideoId);
-       }
-}
index 1e6262a..2dd345d 100644 (file)
@@ -306,7 +306,7 @@ static Eina_Bool __vp_play_client_message_cb(void *pUserData, int nType, void *p
        return ECORE_CALLBACK_PASS_ON;
 }
 
-static Eina_Bool __vp_play_view_window_property_change (void *pUserData, int type, void *event)
+static Eina_Bool __vp_play_view_window_property_change(void *pUserData, int type, void *event)
 {
        if (!pUserData) {
                VideoLogError("[ERR] No exist pUserData.");
@@ -337,7 +337,7 @@ static Eina_Bool __vp_play_view_window_property_change (void *pUserData, int typ
                        switch (state) {
                        case ECORE_X_WINDOW_STATE_HINT_ICONIC:
                                VideoLogInfo("MINI : Iconified");
-                       break;
+                               break;
                        case ECORE_X_WINDOW_STATE_HINT_WITHDRAWN:
                                VideoLogInfo("MINI : Hide");
                                /* pause */
@@ -349,13 +349,13 @@ static Eina_Bool __vp_play_view_window_property_change (void *pUserData, int typ
                                if (!vp_play_multi_view_set_manual_pause(pPlayView->pMultiView, TRUE)) {
                                        VideoLogError("vp_play_normal_view_set_manual_pause fail");
                                }
-                       break;
+                               break;
                        case ECORE_X_WINDOW_STATE_HINT_NORMAL:
                                VideoLogInfo("MINI : Show");
-                       break;
+                               break;
                        default:
-                       // do something for handling error
-                       break;
+                               // do something for handling error
+                               break;
                        }
                }
        }
@@ -414,7 +414,7 @@ static Eina_Bool __vp_play_view_volume_timer_cb(void *pUserData)
        VP_EVAS_TIMER_DEL(pPlayView->pVolumeTimer);
 
        pPlayView->pVolumeTimer = ecore_timer_add(VP_PLAY_VIEW_VOLUME_SPEED_TIMER,
-                       __vp_play_view_volume_timer_cb, (void *)pPlayView);
+                                 __vp_play_view_volume_timer_cb, (void *)pPlayView);
 
        return EINA_FALSE;
 }
@@ -500,8 +500,9 @@ static void __vp_play_sound_route_change_cb(int nRoute, bool bAvailable, void *p
 
        PlayView *pPlayView = (PlayView *)pUserData;
 
-       if (pPlayView->pNotiPipe)
+       if (pPlayView->pNotiPipe) {
                ecore_pipe_write(pPlayView->pNotiPipe, pUserData, sizeof(PlayView));
+       }
 }
 
 static void __vp_play_sound_volume_change_cb(int nType, int nVolume, void *pUserData)
@@ -530,10 +531,18 @@ static void __vp_play_rotate_changed_cb(void *pUserData, Evas_Object *pObj, void
        video_play_rotate_t nRotate = VIDEO_PLAY_ROTATE_NONE;
 
        switch (nAngle) {
-       case 0:         nRotate = VIDEO_PLAY_ROTATE_NONE; break;
-       case 90:        nRotate = VIDEO_PLAY_ROTATE_90; break;
-       case 180:       nRotate = VIDEO_PLAY_ROTATE_180; break;
-       case 270:       nRotate = VIDEO_PLAY_ROTATE_270; break;
+       case 0:
+               nRotate = VIDEO_PLAY_ROTATE_NONE;
+               break;
+       case 90:
+               nRotate = VIDEO_PLAY_ROTATE_90;
+               break;
+       case 180:
+               nRotate = VIDEO_PLAY_ROTATE_180;
+               break;
+       case 270:
+               nRotate = VIDEO_PLAY_ROTATE_270;
+               break;
        }
 
        VideoLogWarning("CHANGE ROTATE : %d", nRotate);
@@ -543,7 +552,7 @@ static void __vp_play_rotate_changed_cb(void *pUserData, Evas_Object *pObj, void
        }
 }
 
-static void __vp_play_view_realize_cb (void *pUserData)
+static void __vp_play_view_realize_cb(void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("PlayView handle is NULL");
@@ -569,7 +578,7 @@ static void __vp_play_view_realize_cb (void *pUserData)
        pPlayView->pCallback->pRealizeCb(pPlayView->pUserData);
 }
 
-static void __vp_play_view_destroy_cb (void *pUserData)
+static void __vp_play_view_destroy_cb(void *pUserData)
 {
        if (!pUserData) {
                VideoLogError("PlayView handle is NULL");
@@ -606,7 +615,7 @@ static void __vp_play_view_destroy_cb (void *pUserData)
        elm_exit();
 }
 
-static Eina_Bool __vp_play_view_event_key_down_cb (void *pUserData, int nType, void *pEvent)
+static Eina_Bool __vp_play_view_event_key_down_cb(void *pUserData, int nType, void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("PlayView handle is NULL");
@@ -725,8 +734,7 @@ static Eina_Bool __vp_play_view_event_key_down_cb (void *pUserData, int nType, v
                if (pPlayView->nPlayMode == VIDEO_PLAY_MODE_NORMAL_VIEW) {
                        vp_play_normal_view_resume_or_pause(pPlayView->pNormalView);
                }
-       }
-       else if (!strcmp(pKeyEvent->keyname, VP_PLAY_NEXT_SONG_KEY)) {
+       } else if (!strcmp(pKeyEvent->keyname, VP_PLAY_NEXT_SONG_KEY)) {
                if (pPlayView->nPlayMode == VIDEO_PLAY_MODE_NORMAL_VIEW) {
                        vp_play_normal_view_next_play(pPlayView->pNormalView);
                }
@@ -796,7 +804,7 @@ static Eina_Bool __vp_play_view_event_key_down_cb (void *pUserData, int nType, v
 
        //For normal view hide control layout
        if (!strcmp(pKeyEvent->keyname, "Tab") || !strcmp(pKeyEvent->keyname, "Right") || !strcmp(pKeyEvent->keyname, "Left")
-               || !strcmp(pKeyEvent->keyname, "Up") || !strcmp(pKeyEvent->keyname, "Down")) {
+               || !strcmp(pKeyEvent->keyname, "Up") || !strcmp(pKeyEvent->keyname, "Down")) {
                if (pPlayView->nPlayMode == VIDEO_PLAY_MODE_NORMAL_VIEW) {
                        vp_play_normal_view_create_main_layout_hide_timer(pPlayView->pNormalView);
                }
@@ -817,7 +825,7 @@ static Eina_Bool __vp_play_view_event_key_down_cb (void *pUserData, int nType, v
        return EINA_FALSE;
 }
 
-static Eina_Bool __vp_play_view_event_key_up_cb (void *pUserData, int nType, void *pEvent)
+static Eina_Bool __vp_play_view_event_key_up_cb(void *pUserData, int nType, void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("PlayView handle is NULL");
@@ -1136,7 +1144,7 @@ static void __vp_play_view_func_exit(void *pViewHandle)
                Scenario 1 : Videos - Play - MultiWin - Idle - Change to PlayView(Maximize) - back => Launch Videos.
        */
        if (pPlayView->bRelaunchCaller &&
-               pPlayView->bActivate == TRUE) {
+               pPlayView->bActivate == TRUE) {
 
                vp_play_app_launch_videos(pPlayView->pWin, TRUE, (void *)pPlayView);
        }
@@ -1188,7 +1196,7 @@ static void _vp_play_view_create_volume_timer(PlayView *pPlayView)
        VP_EVAS_TIMER_DEL(pPlayView->pVolumeTimer);
 
        pPlayView->pVolumeTimer = ecore_timer_add(VP_PLAY_VIEW_VOLUME_TIMER,
-                       __vp_play_view_volume_timer_cb, (void *)pPlayView);
+                                 __vp_play_view_volume_timer_cb, (void *)pPlayView);
 
 }
 
@@ -1204,7 +1212,7 @@ static Evas_Object *_vp_play_view_create_window(Evas_Object *pParent, const char
 
        elm_win_title_set(pObj, pName);
        evas_object_smart_callback_add(pObj, "delete,request",
-                                      __vp_play_view_delete_request_cb, NULL);
+                                      __vp_play_view_delete_request_cb, NULL);
 
        elm_win_indicator_mode_set(pObj, ELM_WIN_INDICATOR_SHOW);
        elm_win_indicator_opacity_set(pObj, ELM_WIN_INDICATOR_TRANSPARENT);
@@ -1286,8 +1294,8 @@ static Evas_Object *_vp_play_view_create_layout(Evas_Object *pParent)
        }
 
        bRet = elm_layout_theme_set(pObj, VP_PLAY_CUSTOM_LAYOUT_KLASS,
-                                       VP_PLAY_CUSTOM_LAYOUT_GROUP,
-                                       VP_PLAY_CUSTOM_LAYOUT_STYLE);
+                                   VP_PLAY_CUSTOM_LAYOUT_GROUP,
+                                   VP_PLAY_CUSTOM_LAYOUT_STYLE);
        if (bRet != EINA_TRUE) {
                VideoLogError("elm_layout_theme_set fail");
        }
@@ -1579,13 +1587,14 @@ static void _vp_play_view_net_status_changed_cb(connection_type_e type, void *pU
        if (vp_play_util_rtsp_url_check((const char*)pPlayView->szMediaURL) == FALSE) {
                VideoLogWarning("Not a RTSP/RTP url. skip wifi key changed signal");
                return;
-       } else
+       } else {
                VideoLogWarning("RTSP/RTP url");
-/*
-   Network change info
-   WIFI(2) -> OFF(0) -> CELLULAR(1)
-   CELLULAR(1) -> WIFI(2)
-*/
+       }
+       /*
+          Network change info
+          WIFI(2) -> OFF(0) -> CELLULAR(1)
+          CELLULAR(1) -> WIFI(2)
+       */
        if (net_status == CONNECTION_TYPE_DISCONNECTED) {
                VideoSecureLogInfo("network off");
                if (pPlayView->nPlayMode == VIDEO_PLAY_MODE_NORMAL_VIEW) {
@@ -1614,8 +1623,9 @@ static void __vp_play_view_holl_ic_changed_cb(bool bCover_state, void *pUserData
        }
 
        PlayView *pPlayView = (PlayView *)pUserData;
-       if (pPlayView->bActivate == FALSE)
+       if (pPlayView->bActivate == FALSE) {
                return;
+       }
        VideoLogWarning("bCover_state : %d", bCover_state);
 
        if (bCover_state == FALSE) {
@@ -1767,9 +1777,9 @@ play_view_handle vp_play_view_create(Evas_Object *pParent, Ecore_X_Window nParen
        pPlayView->pVisiblility = ecore_event_handler_add(ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE, __vp_play_visibility_cb, (void *)pPlayView);
        pPlayView->pClientMessage = ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE, __vp_play_client_message_cb, (void *)pPlayView);
        pPlayView->pDeleteRequest = ecore_event_handler_add(ECORE_X_EVENT_WINDOW_DELETE_REQUEST, __vp_play_delete_request_cb, (void *)pPlayView);
-       pPlayView->pPropertyHandler = ecore_event_handler_add (ECORE_X_EVENT_WINDOW_PROPERTY, __vp_play_view_window_property_change, (void *)pPlayView);
-       pPlayView->pMouseInHandler = ecore_event_handler_add (ECORE_X_EVENT_MOUSE_IN, __vp_play_view_mouse_in_cb, (void *)pPlayView);
-       pPlayView->pMouseOutHandler = ecore_event_handler_add (ECORE_X_EVENT_MOUSE_OUT, __vp_play_view_mouse_out_cb, (void *)pPlayView);
+       pPlayView->pPropertyHandler = ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROPERTY, __vp_play_view_window_property_change, (void *)pPlayView);
+       pPlayView->pMouseInHandler = ecore_event_handler_add(ECORE_X_EVENT_MOUSE_IN, __vp_play_view_mouse_in_cb, (void *)pPlayView);
+       pPlayView->pMouseOutHandler = ecore_event_handler_add(ECORE_X_EVENT_MOUSE_OUT, __vp_play_view_mouse_out_cb, (void *)pPlayView);
 #endif
 
        pPlayView->pNotiPipe = ecore_pipe_add((Ecore_Pipe_Cb)__vp_play_view_noti_pipe_cb, (void *)pPlayView);
@@ -1877,7 +1887,7 @@ bool vp_play_view_realize(play_view_handle pViewHandle)
 
        pPlayView->bActivate = TRUE;
        pPlayView->bVisible = TRUE;
-       vp_play_normal_view_key_create(pPlayView,pPlayView->pNormalView);
+       vp_play_normal_view_key_create(pPlayView, pPlayView->pNormalView);
        vp_play_normal_view_set_share_panel_state(pPlayView->pNormalView);
        if (pPlayView->bRealized == TRUE) {
                VideoLogWarning("Already Realize state");
@@ -1907,8 +1917,8 @@ bool vp_play_view_realize(play_view_handle pViewHandle)
 
                if (pPlayView->connection) {
                        ret = connection_set_type_changed_cb(pPlayView->connection,
-                                       _vp_play_view_net_status_changed_cb,
-                                       (void *)pPlayView);
+                                                            _vp_play_view_net_status_changed_cb,
+                                                            (void *)pPlayView);
                        if (ret != CONNECTION_ERROR_NONE) {
                                VideoLogWarning("Fail to register network status callback [%d]\n", ret);
                        }
@@ -2205,12 +2215,12 @@ bool vp_play_view_get_visible_status(play_view_handle pViewHandle, bool *bVisibl
 }
 
 bool vp_play_view_add_multi_path(play_view_handle pViewHandle,
-                                                               const char *szURL,
-                                                               char *szTitle,
-                                                               char *szSubTitle,
-                                                               int nPosition,
-                                                               int nDuration,
-                                                               bool bIsSameAP)
+                                 const char *szURL,
+                                 char *szTitle,
+                                 char *szSubTitle,
+                                 int nPosition,
+                                 int nDuration,
+                                 bool bIsSameAP)
 {
        if (!pViewHandle) {
                VideoLogError("PlayView handle is NULL");
index 46e2d49..a3e9bc0 100644 (file)
@@ -46,9 +46,9 @@
 #define VP_BOOKMARK_PLAY_TIME_LENGTH   9
 #define VP_BOOKMARK_PLAY_TIME_FORMAT   "02u:%02u:%02u"
 #define VP_BOOKMARK_PLAY_TIME_ARGS(t) \
-        (t) / (60 * 60), \
-        ((t) / 60) % 60, \
-        (t) % 60
+       (t) / (60 * 60), \
+       ((t) / 60) % 60, \
+       (t) % 60
 
 typedef struct _BookmarkItem {
        Elm_Object_Item *pElmItem;
@@ -80,16 +80,16 @@ typedef struct _BookmarkWidget {
 } BookmarkWidget;
 
 static void _vp_play_bookmark_destory_handle(BookmarkWidget *
-               pBookmarkWidget);
+        pBookmarkWidget);
 static void _vp_play_bookmark_gengrid_item_update(BookmarkWidget *
-               pBookmarkWidget);
+        pBookmarkWidget);
 static void _vp_play_bookmark_gengrid_item_clear(BookmarkWidget *
-               pBookmarkWidget);
+        pBookmarkWidget);
 /* callbackk functions */
 
 static void __vp_play_bookmark_delete_btn_clicked_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -104,8 +104,8 @@ static void __vp_play_bookmark_delete_btn_clicked_cb(void *pUserData,
 }
 
 static void __vp_play_bookmark_delete_btn_press_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -120,20 +120,20 @@ static void __vp_play_bookmark_delete_btn_press_cb(void *pUserData,
 
        Evas_Object *pIcon = NULL;
        pIcon =
-               elm_object_part_content_get(pObj, VP_PLAY_SWALLOW_BUTTON_ICON);
+           elm_object_part_content_get(pObj, VP_PLAY_SWALLOW_BUTTON_ICON);
        if (pIcon) {
                evas_object_del(pIcon);
                pIcon = NULL;
        }
 
        pIcon =
-               vp_button_create_icon(pObj, VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_BOOKMARK_RES_DEL_PRESS);
+           vp_button_create_icon(pObj, VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_BOOKMARK_RES_DEL_PRESS);
        elm_object_part_content_set(pObj, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        BookmarkWidget *pBookmarkWidget =
-               (BookmarkWidget *) evas_object_data_get(pObj,
-                               VP_BOOKMARK_GENGRID_ITEM_DATA_KEY);
+           (BookmarkWidget *) evas_object_data_get(pObj,
+                   VP_BOOKMARK_GENGRID_ITEM_DATA_KEY);
        if (pBookmarkWidget == NULL) {
                VideoLogError("pBookmarkWidget is NULL");
                return;
@@ -146,13 +146,13 @@ static void __vp_play_bookmark_delete_btn_press_cb(void *pUserData,
        }
 
        if (!vp_media_contents_bookmark_delete
-                       (pBookmarkWidget->szMediaID, pBookmarkItem->nPos)) {
+               (pBookmarkWidget->szMediaID, pBookmarkItem->nPos)) {
                VideoLogError("vp_media_contents_bookmark_delete is fail");
                return;
        }
 
        pBookmarkWidget->pItemList =
-               g_list_remove(pBookmarkWidget->pItemList, (void *) pBookmarkItem);
+           g_list_remove(pBookmarkWidget->pItemList, (void *) pBookmarkItem);
 
        VP_EVAS_ITEM_DEL(pBookmarkItem->pElmItem);
 
@@ -164,8 +164,8 @@ static void __vp_play_bookmark_delete_btn_press_cb(void *pUserData,
 }
 
 static void __vp_play_bookmark_delete_btn_unpress_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -180,25 +180,25 @@ static void __vp_play_bookmark_delete_btn_unpress_cb(void *pUserData,
 
        Evas_Object *pIcon = NULL;
        pIcon =
-               elm_object_part_content_get(pObj, VP_PLAY_SWALLOW_BUTTON_ICON);
+           elm_object_part_content_get(pObj, VP_PLAY_SWALLOW_BUTTON_ICON);
        if (pIcon) {
                evas_object_del(pIcon);
                pIcon = NULL;
        }
 
        pIcon =
-               vp_button_create_icon(pObj, VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_BOOKMARK_RES_DEL);
+           vp_button_create_icon(pObj, VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_BOOKMARK_RES_DEL);
        elm_object_part_content_set(pObj, VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
 }
 
 static Evas_Object *__vp_play_bookmark_gengrid_icon_get_cb(const void
-               *pUserData,
-               Evas_Object *
-               pObj,
-               const char
-               *pPart)
+        *pUserData,
+        Evas_Object *
+        pObj,
+        const char
+        *pPart)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -230,28 +230,28 @@ static Evas_Object *__vp_play_bookmark_gengrid_icon_get_cb(const void
                        return NULL;
                }
                elm_layout_file_set(layout, VP_PLAY_BOOKMARK_ITEM_EDJ_PATH,
-                                   VP_PLAY_EDJ_GROUP_BOOKMARK_ITEM);
+                                   VP_PLAY_EDJ_GROUP_BOOKMARK_ITEM);
                elm_bg_load_size_set(bg, VP_BOOKMARK_THUMB_WIDTH,
-                                    VP_BOOKMARK_THUMB_HEIGHT);
+                                    VP_BOOKMARK_THUMB_HEIGHT);
                elm_bg_file_set(bg, pBookmarkItem->szFilePath, NULL);
                evas_object_size_hint_max_set(bg, VP_BOOKMARK_THUMB_WIDTH,
-                                             VP_BOOKMARK_THUMB_HEIGHT);
+                                             VP_BOOKMARK_THUMB_HEIGHT);
 
                evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND,
-                                                EVAS_HINT_EXPAND);
+                                                EVAS_HINT_EXPAND);
                evas_object_size_hint_align_set(bg, EVAS_HINT_FILL,
-                                               EVAS_HINT_FILL);
+                                               EVAS_HINT_FILL);
 
                elm_object_part_content_set(layout,
-                                           VP_PLAY_SWALLOW_BOOKMARK_ITEM_ICON,
-                                           bg);
+                                           VP_PLAY_SWALLOW_BOOKMARK_ITEM_ICON,
+                                           bg);
 
                snprintf(buf, VP_BOOKMARK_PLAY_TIME_LENGTH,
-                        "%" VP_BOOKMARK_PLAY_TIME_FORMAT,
-                        VP_BOOKMARK_PLAY_TIME_ARGS(pBookmarkItem->nPos / 1000));
+                        "%" VP_BOOKMARK_PLAY_TIME_FORMAT,
+                        VP_BOOKMARK_PLAY_TIME_ARGS(pBookmarkItem->nPos / 1000));
 
                elm_object_part_text_set(layout,
-                                        VP_PLAY_SWALLOW_BOOKMARK_ITEM_TXT, buf);
+                                        VP_PLAY_SWALLOW_BOOKMARK_ITEM_TXT, buf);
 
                evas_object_show(bg);
                evas_object_show(layout);
@@ -260,8 +260,8 @@ static Evas_Object *__vp_play_bookmark_gengrid_icon_get_cb(const void
 
        } else if (!strcmp(pPart, "elm.swallow.end")) {
                BookmarkWidget *pBookmarkWidget =
-                       (BookmarkWidget *) evas_object_data_get(pObj,
-                                       VP_BOOKMARK_GENGRID_DATA_KEY);
+                   (BookmarkWidget *) evas_object_data_get(pObj,
+                           VP_BOOKMARK_GENGRID_DATA_KEY);
                if (pBookmarkWidget == NULL) {
                        VideoLogError("pBookmarkWidget is NULL");
                        return NULL;
@@ -276,29 +276,29 @@ static Evas_Object *__vp_play_bookmark_gengrid_icon_get_cb(const void
 
                layout = elm_layout_add(pObj);
                elm_layout_file_set(layout, VP_PLAY_BOOKMARK_ITEM_EDJ_PATH,
-                                   VP_PLAY_EDJ_GROUP_BOOKMARK_ITEM_END);
+                                   VP_PLAY_EDJ_GROUP_BOOKMARK_ITEM_END);
                pBtn =
-                       vp_button_create(layout, "playview/custom/icon_48_48", NULL,
-                                        (Evas_Smart_Cb)
-                                        __vp_play_bookmark_delete_btn_clicked_cb,
-                                        (Evas_Smart_Cb)
-                                        __vp_play_bookmark_delete_btn_press_cb,
-                                        (Evas_Smart_Cb)
-                                        __vp_play_bookmark_delete_btn_unpress_cb,
-                                        (void *) pBookmarkItem);
+                   vp_button_create(layout, "playview/custom/icon_48_48", NULL,
+                                    (Evas_Smart_Cb)
+                                    __vp_play_bookmark_delete_btn_clicked_cb,
+                                    (Evas_Smart_Cb)
+                                    __vp_play_bookmark_delete_btn_press_cb,
+                                    (Evas_Smart_Cb)
+                                    __vp_play_bookmark_delete_btn_unpress_cb,
+                                    (void *) pBookmarkItem);
 
                evas_object_data_set(pBtn, VP_BOOKMARK_GENGRID_ITEM_DATA_KEY,
-                                    (void *) pBookmarkWidget);
+                                    (void *) pBookmarkWidget);
 
                pIcon =
-                       vp_button_create_icon(pBtn, VP_PLAY_RESROUCE_EDJ_PATH,
-                                             VP_PLAY_BOOKMARK_RES_DEL);
+                   vp_button_create_icon(pBtn, VP_PLAY_RESROUCE_EDJ_PATH,
+                                         VP_PLAY_BOOKMARK_RES_DEL);
                elm_object_part_content_set(pBtn, VP_PLAY_SWALLOW_BUTTON_ICON,
-                                           pIcon);
+                                           pIcon);
 
                elm_object_part_content_set(layout,
-                                           VP_PLAY_SWALLOW_BOOKMARK_ITEM_DEL,
-                                           pBtn);
+                                           VP_PLAY_SWALLOW_BOOKMARK_ITEM_DEL,
+                                           pBtn);
 
                evas_object_show(pBtn);
                evas_object_show(layout);
@@ -311,8 +311,8 @@ static Evas_Object *__vp_play_bookmark_gengrid_icon_get_cb(const void
 
 
 static void __vp_play_bookmark_longpress_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        VideoLogInfo("");
 
@@ -336,13 +336,13 @@ static void __vp_play_bookmark_longpress_cb(void *pUserData,
 }
 
 static void __vp_play_bookmark_scroll_cb(void *pUserData,
-               Evas_Object *pObj, void *pEvent)
+        Evas_Object *pObj, void *pEvent)
 {
        return;
 }
 
 static void __vp_play_bookmark_change_cb(void *pUserData,
-               Evas_Object *pObj, void *pEvent)
+        Evas_Object *pObj, void *pEvent)
 {
        if (pUserData == NULL) {
                VideoLogError("bookmark data is NULL");
@@ -355,13 +355,13 @@ static void __vp_play_bookmark_change_cb(void *pUserData,
        }
 
        elm_gengrid_item_bring_in(pBookmarkWidget->pLastItem,
-                                 ELM_GENGRID_ITEM_SCROLLTO_MIDDLE);
+                                 ELM_GENGRID_ITEM_SCROLLTO_MIDDLE);
        pBookmarkWidget->pLastItem = NULL;
 }
 
 static void __vp_play_bookmark_pressed_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (pUserData == NULL) {
                VideoLogError("bookmark data is NULL");
@@ -378,8 +378,8 @@ static void __vp_play_bookmark_pressed_cb(void *pUserData,
 
 
 static void __vp_play_bookmark_released_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (pUserData == NULL) {
                VideoLogError("bookmark data is NULL");
@@ -392,8 +392,8 @@ static void __vp_play_bookmark_released_cb(void *pUserData,
 
 
 static void __vp_play_bookmark_item_select_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -408,8 +408,8 @@ static void __vp_play_bookmark_item_select_cb(void *pUserData,
        BookmarkWidget *pBookmarkWidget = (BookmarkWidget *) pUserData;
        BookmarkItem *pBookmarkItem = NULL;
        pBookmarkItem =
-               (BookmarkItem *) elm_object_item_data_get((Elm_Object_Item *)
-                               pEvent);
+           (BookmarkItem *) elm_object_item_data_get((Elm_Object_Item *)
+                   pEvent);
 
        elm_gengrid_item_selected_set(pBookmarkItem->pElmItem, EINA_FALSE);
 
@@ -422,16 +422,16 @@ static void __vp_play_bookmark_item_select_cb(void *pUserData,
        } else {
                if (pBookmarkWidget->pSelectCb) {
                        pBookmarkWidget->pSelectCb(pBookmarkItem->nPos,
-                                                  pBookmarkItem->szFilePath,
-                                                  pBookmarkWidget->pUserData);
+                                                  pBookmarkItem->szFilePath,
+                                                  pBookmarkWidget->pUserData);
                }
        }
 }
 
 
 static void __vp_play_bookmark_btn_clicked_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (pUserData == NULL) {
                VideoLogError("bookmark data is NULL");
@@ -454,8 +454,8 @@ static void __vp_play_bookmark_btn_clicked_cb(void *pUserData,
 }
 
 static void __vp_play_bookmark_btn_press_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -470,25 +470,25 @@ static void __vp_play_bookmark_btn_press_cb(void *pUserData,
        if (pBookmarkWidget->pAddButton == pObj) {
                Evas_Object *pIcon = NULL;
                pIcon =
-                       elm_object_part_content_get(pBookmarkWidget->pAddButton,
-                                                   VP_PLAY_SWALLOW_BUTTON_ICON);
+                   elm_object_part_content_get(pBookmarkWidget->pAddButton,
+                                               VP_PLAY_SWALLOW_BUTTON_ICON);
                if (pIcon) {
                        evas_object_del(pIcon);
                        pIcon = NULL;
                }
 
                pIcon =
-                       vp_button_create_icon(pBookmarkWidget->pAddButton,
-                                             VP_PLAY_RESROUCE_EDJ_PATH,
-                                             VP_PLAY_BOOKMARK_RES_ADD_PRESS);
+                   vp_button_create_icon(pBookmarkWidget->pAddButton,
+                                         VP_PLAY_RESROUCE_EDJ_PATH,
+                                         VP_PLAY_BOOKMARK_RES_ADD_PRESS);
                elm_object_part_content_set(pBookmarkWidget->pAddButton,
-                                           VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                           VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
        }
 }
 
 static void __vp_play_bookmark_btn_unpress_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -504,19 +504,19 @@ static void __vp_play_bookmark_btn_unpress_cb(void *pUserData,
        if (pBookmarkWidget->pAddButton == pObj) {
                Evas_Object *pIcon = NULL;
                pIcon =
-                       elm_object_part_content_get(pBookmarkWidget->pAddButton,
-                                                   VP_PLAY_SWALLOW_BUTTON_ICON);
+                   elm_object_part_content_get(pBookmarkWidget->pAddButton,
+                                               VP_PLAY_SWALLOW_BUTTON_ICON);
                if (pIcon) {
                        evas_object_del(pIcon);
                        pIcon = NULL;
                }
 
                pIcon =
-                       vp_button_create_icon(pBookmarkWidget->pAddButton,
-                                             VP_PLAY_RESROUCE_EDJ_PATH,
-                                             VP_PLAY_BOOKMARK_RES_ADD);
+                   vp_button_create_icon(pBookmarkWidget->pAddButton,
+                                         VP_PLAY_RESROUCE_EDJ_PATH,
+                                         VP_PLAY_BOOKMARK_RES_ADD);
                elm_object_part_content_set(pBookmarkWidget->pAddButton,
-                                           VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                           VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
        }
 }
 
@@ -524,7 +524,7 @@ static void __vp_play_bookmark_btn_unpress_cb(void *pUserData,
 /* internal functions */
 
 static void _vp_play_bookmark_destory_handle(BookmarkWidget *
-               pBookmarkWidget)
+        pBookmarkWidget)
 {
        if (pBookmarkWidget == NULL) {
                VideoLogError("pBookmarkWidget is NULL");
@@ -549,8 +549,8 @@ static void _vp_play_bookmark_destory_handle(BookmarkWidget *
 }
 
 static Elm_Object_Item *_vp_play_bookmark_find_before_item(GList *pList,
-               int nPosition,
-               int *nPos)
+        int nPosition,
+        int *nPos)
 {
        if (pList == NULL) {
                VideoLogError("pBookmarkItem list is NULL");
@@ -567,7 +567,7 @@ static Elm_Object_Item *_vp_play_bookmark_find_before_item(GList *pList,
                if (pBookmarkItem) {
                        if (pBookmarkItem->nPos > nPosition) {
                                VideoLogError("Item : %d , nPosition : %d",
-                                             pBookmarkItem->nPos, nPosition);
+                                             pBookmarkItem->nPos, nPosition);
                                *nPos = idx + 1;
                                return pBookmarkItem->pElmItem;
                        }
@@ -579,7 +579,7 @@ static Elm_Object_Item *_vp_play_bookmark_find_before_item(GList *pList,
 
 
 static gint __vp_play_bookmark_compare_cb(BookmarkItem *pItem1,
-               BookmarkItem *pItem2)
+        BookmarkItem *pItem2)
 {
        if (pItem1 == NULL) {
                VideoLogError("pItem1 is NULL");
@@ -600,8 +600,8 @@ static gint __vp_play_bookmark_compare_cb(BookmarkItem *pItem1,
 
 
 static void _vp_play_bookmark_gengrid_item_append(BookmarkWidget *
-               pBookmarkWidget,
-               BookmarkItem *pItem)
+        pBookmarkWidget,
+        BookmarkItem *pItem)
 {
        if (pBookmarkWidget == NULL) {
                VideoLogError("pBookmarkWidget is NULL");
@@ -623,42 +623,42 @@ static void _vp_play_bookmark_gengrid_item_append(BookmarkWidget *
        pBookmarkWidget->pItemClass->item_style = "bookmark";
        pBookmarkWidget->pItemClass->func.text_get = NULL;
        pBookmarkWidget->pItemClass->func.content_get =
-               (void *) __vp_play_bookmark_gengrid_icon_get_cb;
+           (void *) __vp_play_bookmark_gengrid_icon_get_cb;
        pBookmarkWidget->pItemClass->func.state_get = NULL;
        pBookmarkWidget->pItemClass->func.del = NULL;
 
        Elm_Object_Item *pBeforeItem = NULL;
        int nPos = 0;
        pBeforeItem =
-               _vp_play_bookmark_find_before_item(pBookmarkWidget->pItemList,
-                               pItem->nPos, &nPos);
+           _vp_play_bookmark_find_before_item(pBookmarkWidget->pItemList,
+                                              pItem->nPos, &nPos);
 
        if (pBeforeItem) {
                pItem->pElmItem =
-                       elm_gengrid_item_insert_before(pBookmarkWidget->pGengrid,
-                                                      pBookmarkWidget->pItemClass,
-                                                      (void *) pItem, pBeforeItem,
-                                                      __vp_play_bookmark_item_select_cb,
-                                                      (void *) pBookmarkWidget);
+                   elm_gengrid_item_insert_before(pBookmarkWidget->pGengrid,
+                                                  pBookmarkWidget->pItemClass,
+                                                  (void *) pItem, pBeforeItem,
+                                                  __vp_play_bookmark_item_select_cb,
+                                                  (void *) pBookmarkWidget);
        } else {
                pItem->pElmItem =
-                       elm_gengrid_item_append(pBookmarkWidget->pGengrid,
-                                               pBookmarkWidget->pItemClass,
-                                               (void *) pItem,
-                                               __vp_play_bookmark_item_select_cb,
-                                               (void *) pBookmarkWidget);
+                   elm_gengrid_item_append(pBookmarkWidget->pGengrid,
+                                           pBookmarkWidget->pItemClass,
+                                           (void *) pItem,
+                                           __vp_play_bookmark_item_select_cb,
+                                           (void *) pBookmarkWidget);
        }
 
        pBookmarkWidget->pLastItem = pItem->pElmItem;
 
        pBookmarkWidget->pItemList =
-               g_list_insert_sorted(pBookmarkWidget->pItemList, pItem,
-                                    (GCompareFunc)
-                                    __vp_play_bookmark_compare_cb);
+           g_list_insert_sorted(pBookmarkWidget->pItemList, pItem,
+                                (GCompareFunc)
+                                __vp_play_bookmark_compare_cb);
 }
 
 static void _vp_play_bookmark_gengrid_item_update(BookmarkWidget *
-               pBookmarkWidget)
+        pBookmarkWidget)
 {
        if (pBookmarkWidget == NULL) {
                VideoLogError("pBookmarkWidget is NULL");
@@ -677,20 +677,20 @@ static void _vp_play_bookmark_gengrid_item_update(BookmarkWidget *
        for (i = 0; i < nCount; i++) {
                BookmarkItem *pBookmarkItem = NULL;
                pBookmarkItem =
-                       (BookmarkItem *) g_list_nth_data(pBookmarkWidget->pItemList,
-                                       i);
+                   (BookmarkItem *) g_list_nth_data(pBookmarkWidget->pItemList,
+                                                    i);
                if (pBookmarkItem) {
                        if (pBookmarkItem->pElmItem) {
                                elm_gengrid_item_update(pBookmarkItem->pElmItem);
                                elm_gengrid_item_selected_set(pBookmarkItem->pElmItem,
-                                                             EINA_FALSE);
+                                                             EINA_FALSE);
                        }
                }
        }
 }
 
 static void _vp_play_bookmark_gengrid_item_clear(BookmarkWidget *
-               pBookmarkWidget)
+        pBookmarkWidget)
 {
        if (pBookmarkWidget == NULL) {
                VideoLogError("pBookmarkWidget is NULL");
@@ -710,8 +710,8 @@ static void _vp_play_bookmark_gengrid_item_clear(BookmarkWidget *
                BookmarkItem *pBookmarkItem = NULL;
 
                pBookmarkItem =
-                       (BookmarkItem *) g_list_nth_data(pBookmarkWidget->pItemList,
-                                       i);
+                   (BookmarkItem *) g_list_nth_data(pBookmarkWidget->pItemList,
+                                                    i);
                if (pBookmarkItem) {
                        VP_FREE(pBookmarkItem->szFilePath);
                        VP_FREE(pBookmarkItem);
@@ -740,8 +740,8 @@ static Evas_Object *_vp_play_bookmark_create_layout(Evas_Object *pParent)
        }
 
        bRet =
-               elm_layout_file_set(pObj, VP_PLAY_BOOKMARK_EDJ_PATH,
-                                   VP_PLAY_EDJ_GROUP_BOOKMARK);
+           elm_layout_file_set(pObj, VP_PLAY_BOOKMARK_EDJ_PATH,
+                               VP_PLAY_EDJ_GROUP_BOOKMARK);
        if (bRet != EINA_TRUE) {
                VideoLogError("elm_layout_file_set fail");
                return NULL;
@@ -752,7 +752,7 @@ static Evas_Object *_vp_play_bookmark_create_layout(Evas_Object *pParent)
 
 
 static Evas_Object *_vp_play_bookmark_create_gengrid(Evas_Object *
-               pParent)
+        pParent)
 {
        if (!pParent) {
                VideoLogError("Parent is NULL");
@@ -768,21 +768,21 @@ static Evas_Object *_vp_play_bookmark_create_gengrid(Evas_Object *
        }
 
        elm_gengrid_item_size_set(pObj, VP_BOOKMARK_ITEM_WIDTH,
-                                 VP_BOOKMARK_ITEM_HEIGHT);
+                                 VP_BOOKMARK_ITEM_HEIGHT);
 
        elm_gengrid_align_set(pObj, 0.0, 0.0);
        elm_gengrid_horizontal_set(pObj, EINA_TRUE);
        elm_gengrid_multi_select_set(pObj, EINA_TRUE);
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_show(pObj);
 
        return pObj;
 }
 
 static void _vp_play_bookmark_layout_del_cb(void *data, Evas *e,
-               Evas_Object *obj,
-               void *event_info)
+        Evas_Object *obj,
+        void *event_info)
 {
        if (data == NULL) {
                VideoLogError("pBookmarkWidget is NULL");
@@ -796,7 +796,7 @@ static void _vp_play_bookmark_layout_del_cb(void *data, Evas *e,
 }
 
 static bool _vp_play_bookmark_init_layout(BookmarkWidget *
-               pBookmarkWidget)
+        pBookmarkWidget)
 {
        if (pBookmarkWidget == NULL) {
                VideoLogError("pBookmarkWidget is NULL");
@@ -811,29 +811,29 @@ static bool _vp_play_bookmark_init_layout(BookmarkWidget *
                return FALSE;
        }
        evas_object_event_callback_add(pBookmarkWidget->pLayout,
-                                      EVAS_CALLBACK_DEL,
-                                      _vp_play_bookmark_layout_del_cb,
-                                      (void *) pBookmarkWidget);
+                                      EVAS_CALLBACK_DEL,
+                                      _vp_play_bookmark_layout_del_cb,
+                                      (void *) pBookmarkWidget);
 
        pBookmarkWidget->pGengrid =
-               _vp_play_bookmark_create_gengrid(pBookmarkWidget->pLayout);
+           _vp_play_bookmark_create_gengrid(pBookmarkWidget->pLayout);
        if (pBookmarkWidget->pGengrid == NULL) {
                VideoLogError("_vp_play_bookmark_create_gengrid is fail");
                return FALSE;
        }
 
        evas_object_data_set(pBookmarkWidget->pGengrid,
-                            VP_BOOKMARK_GENGRID_DATA_KEY,
-                            (void *) pBookmarkWidget);
+                            VP_BOOKMARK_GENGRID_DATA_KEY,
+                            (void *) pBookmarkWidget);
 
        pBookmarkWidget->pAddButton =
-               vp_button_create(pParent, "playview/custom/icon_44_44", NULL,
-                                (Evas_Smart_Cb)
-                                __vp_play_bookmark_btn_clicked_cb,
-                                (Evas_Smart_Cb) __vp_play_bookmark_btn_press_cb,
-                                (Evas_Smart_Cb)
-                                __vp_play_bookmark_btn_unpress_cb,
-                                (void *) pBookmarkWidget);
+           vp_button_create(pParent, "playview/custom/icon_44_44", NULL,
+                            (Evas_Smart_Cb)
+                            __vp_play_bookmark_btn_clicked_cb,
+                            (Evas_Smart_Cb) __vp_play_bookmark_btn_press_cb,
+                            (Evas_Smart_Cb)
+                            __vp_play_bookmark_btn_unpress_cb,
+                            (void *) pBookmarkWidget);
        if (!pBookmarkWidget->pAddButton) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
@@ -841,35 +841,35 @@ static bool _vp_play_bookmark_init_layout(BookmarkWidget *
 
        Evas_Object *pIcon = NULL;
        pIcon =
-               vp_button_create_icon(pBookmarkWidget->pAddButton,
-                                     VP_PLAY_RESROUCE_EDJ_PATH,
-                                     VP_PLAY_BOOKMARK_RES_ADD);
+           vp_button_create_icon(pBookmarkWidget->pAddButton,
+                                 VP_PLAY_RESROUCE_EDJ_PATH,
+                                 VP_PLAY_BOOKMARK_RES_ADD);
        elm_object_part_content_set(pBookmarkWidget->pAddButton,
-                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
+                                   VP_PLAY_SWALLOW_BUTTON_ICON, pIcon);
 
        elm_object_part_content_set(pBookmarkWidget->pLayout,
-                                   VP_PLAY_SWALLOW_BOOKMARK_ADD_BUTTON,
-                                   pBookmarkWidget->pAddButton);
+                                   VP_PLAY_SWALLOW_BOOKMARK_ADD_BUTTON,
+                                   pBookmarkWidget->pAddButton);
        elm_object_part_content_set(pBookmarkWidget->pLayout,
-                                   VP_PLAY_SWALLOW_BOOKMARK_LIST,
-                                   pBookmarkWidget->pGengrid);
+                                   VP_PLAY_SWALLOW_BOOKMARK_LIST,
+                                   pBookmarkWidget->pGengrid);
 
        evas_object_smart_callback_add(pBookmarkWidget->pGengrid,
-                                      "longpressed",
-                                      __vp_play_bookmark_longpress_cb,
-                                      (void *) pBookmarkWidget);
+                                      "longpressed",
+                                      __vp_play_bookmark_longpress_cb,
+                                      (void *) pBookmarkWidget);
        evas_object_smart_callback_add(pBookmarkWidget->pGengrid, "scroll",
-                                      __vp_play_bookmark_scroll_cb,
-                                      (void *) pBookmarkWidget);
+                                      __vp_play_bookmark_scroll_cb,
+                                      (void *) pBookmarkWidget);
        evas_object_smart_callback_add(pBookmarkWidget->pGengrid, "changed",
-                                      __vp_play_bookmark_change_cb,
-                                      (void *) pBookmarkWidget);
+                                      __vp_play_bookmark_change_cb,
+                                      (void *) pBookmarkWidget);
        evas_object_smart_callback_add(pBookmarkWidget->pGengrid, "pressed",
-                                      __vp_play_bookmark_pressed_cb,
-                                      (void *) pBookmarkWidget);
+                                      __vp_play_bookmark_pressed_cb,
+                                      (void *) pBookmarkWidget);
        evas_object_smart_callback_add(pBookmarkWidget->pGengrid, "released",
-                                      __vp_play_bookmark_released_cb,
-                                      (void *) pBookmarkWidget);
+                                      __vp_play_bookmark_released_cb,
+                                      (void *) pBookmarkWidget);
 
        return TRUE;
 }
@@ -946,7 +946,7 @@ bool vp_play_bookmark_realize(bookmark_handle pWidgetHandle)
        int nCnt = 0;
        int idx = 0;
        if (!vp_media_contents_bookmark_list_get
-                       (pBookmarkWidget->szMediaID, &pList)) {
+               (pBookmarkWidget->szMediaID, &pList)) {
                VideoLogError("vp_media_contents_bookmark_list_get is Fail");
                return FALSE;
        }
@@ -960,7 +960,7 @@ bool vp_play_bookmark_realize(bookmark_handle pWidgetHandle)
                        char *szPath = NULL;
                        int nPos = 0;
                        if (!vp_media_contents_bookmark_get_item_info
-                                       (pItem, &szPath, &nPos)) {
+                               (pItem, &szPath, &nPos)) {
                                VideoLogWarning
                                ("vp_media_contents_bookmark_get_item_info is Fail");
                                continue;
@@ -979,7 +979,7 @@ bool vp_play_bookmark_realize(bookmark_handle pWidgetHandle)
                        VP_FREE(szPath);
 
                        _vp_play_bookmark_gengrid_item_append(pBookmarkWidget,
-                                                             pBookmarkItem);
+                                                             pBookmarkItem);
                }
        }
 
@@ -1020,7 +1020,7 @@ bool vp_play_bookmark_unrealize(bookmark_handle pWidgetHandle)
 }
 
 bool vp_play_bookmark_is_realize(bookmark_handle pWidgetHandle,
-                                bool *bIsRealize)
+                                 bool *bIsRealize)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -1048,8 +1048,8 @@ Evas_Object *vp_play_bookmark_get_object(bookmark_handle pWidgetHandle)
 }
 
 bool vp_play_bookmark_set_capture_callback(bookmark_handle pWidgetHandle,
-               BookmarkCaptureStartCbFunc
-               func)
+        BookmarkCaptureStartCbFunc
+        func)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -1064,9 +1064,9 @@ bool vp_play_bookmark_set_capture_callback(bookmark_handle pWidgetHandle,
 }
 
 bool vp_play_bookmark_set_item_select_callback(bookmark_handle
-               pWidgetHandle,
-               BookmarkItemSelectCbFunc
-               func)
+        pWidgetHandle,
+        BookmarkItemSelectCbFunc
+        func)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -1081,7 +1081,7 @@ bool vp_play_bookmark_set_item_select_callback(bookmark_handle
 }
 
 bool vp_play_bookmark_set_user_param(bookmark_handle pWidgetHandle,
-                                    void *pUserData)
+                                     void *pUserData)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -1096,7 +1096,7 @@ bool vp_play_bookmark_set_user_param(bookmark_handle pWidgetHandle,
 }
 
 bool vp_play_bookmark_set_media_url(bookmark_handle pWidgetHandle,
-                                   const char *szMediaURL)
+                                    const char *szMediaURL)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -1114,7 +1114,7 @@ bool vp_play_bookmark_set_media_url(bookmark_handle pWidgetHandle,
        VP_STRDUP(pBookmarkWidget->szMediaURL, szMediaURL);
 
        if (!vp_media_contents_get_video_id
-                       (szMediaURL, &(pBookmarkWidget->szMediaID))) {
+               (szMediaURL, &(pBookmarkWidget->szMediaID))) {
                VideoLogError("vp_media_contents_get_video_id is fail");
                return FALSE;
        }
@@ -1125,7 +1125,7 @@ bool vp_play_bookmark_set_media_url(bookmark_handle pWidgetHandle,
 }
 
 bool vp_play_bookmark_set_edit_mode(bookmark_handle pWidgetHandle,
-                                   bool bEditMode)
+                                    bool bEditMode)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -1143,7 +1143,7 @@ bool vp_play_bookmark_set_edit_mode(bookmark_handle pWidgetHandle,
 }
 
 bool vp_play_bookmark_get_edit_mode(bookmark_handle pWidgetHandle,
-                                   bool *bEditMode)
+                                    bool *bEditMode)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -1158,7 +1158,7 @@ bool vp_play_bookmark_get_edit_mode(bookmark_handle pWidgetHandle,
 }
 
 bool vp_play_bookmark_get_pressed_status(bookmark_handle pWidgetHandle,
-               bool *bPressed)
+        bool *bPressed)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -1174,7 +1174,7 @@ bool vp_play_bookmark_get_pressed_status(bookmark_handle pWidgetHandle,
 }
 
 bool vp_play_bookmark_insert_item(bookmark_handle pWidgetHandle,
-                                 const char *szBookmarkURL, int nPos)
+                                  const char *szBookmarkURL, int nPos)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -1184,7 +1184,7 @@ bool vp_play_bookmark_insert_item(bookmark_handle pWidgetHandle,
        BookmarkWidget *pBookmarkWidget = (BookmarkWidget *) pWidgetHandle;
 
        if (!vp_media_contents_bookmark_insert
-                       (pBookmarkWidget->szMediaID, nPos, szBookmarkURL)) {
+               (pBookmarkWidget->szMediaID, nPos, szBookmarkURL)) {
                VideoLogError("vp_media_contents_bookmark_insert is fail");
                return FALSE;
        }
@@ -1205,7 +1205,7 @@ bool vp_play_bookmark_insert_item(bookmark_handle pWidgetHandle,
 }
 
 bool vp_play_bookmark_get_item_count(bookmark_handle pWidgetHandle,
-                                    int *nCount)
+                                     int *nCount)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
index e0a392b..5f76fae 100644 (file)
@@ -68,19 +68,19 @@ typedef struct _BrightnessWidget {
 } BrightnessWidget;
 
 static void _vp_play_brightness_destory_handle(BrightnessWidget *
-               pBrightnessWidget);
+        pBrightnessWidget);
 static double _vp_play_brightness_get_mouse_pos_ratio(Evas_Object *pObj,
-               bool bLandscape,
-               int nCurY);
+        bool bLandscape,
+        int nCurY);
 static void _vp_play_brightness_set_value(BrightnessWidget *
-               pBrightnessWidget, int nValue);
+        pBrightnessWidget, int nValue);
 static void _vp_play_brightness_create_timer(BrightnessWidget *
-               pBrightnessWidget);
+        pBrightnessWidget);
 
 /* callback functions */
 static void __vp_brightness_mouse_down_cb(void *pUserData, Evas *e,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -93,19 +93,19 @@ static void __vp_brightness_mouse_down_cb(void *pUserData, Evas *e,
        }
 
        Evas_Event_Mouse_Down *pMouseDownEvent =
-               (Evas_Event_Mouse_Down *) pEvent;
+           (Evas_Event_Mouse_Down *) pEvent;
 
        double dRatio =
-               _vp_play_brightness_get_mouse_pos_ratio(pBrightnessWidget->
-                               pLayout,
-                               pBrightnessWidget->
-                               bLandscape,
-                               pMouseDownEvent->canvas.
-                               y);
+           _vp_play_brightness_get_mouse_pos_ratio(pBrightnessWidget->
+                   pLayout,
+                   pBrightnessWidget->
+                   bLandscape,
+                   pMouseDownEvent->canvas.
+                   y);
 
        int nCurVal =
-               pBrightnessWidget->nMaxVal -
-               (dRatio * pBrightnessWidget->nMaxVal);
+           pBrightnessWidget->nMaxVal -
+           (dRatio * pBrightnessWidget->nMaxVal);
 
        _vp_play_brightness_set_value(pBrightnessWidget, nCurVal);
 
@@ -115,7 +115,7 @@ static void __vp_brightness_mouse_down_cb(void *pUserData, Evas *e,
 }
 
 static void __vp_brightness_mouse_up_cb(void *pUserData, Evas *e,
-                                       Evas_Object *pObj, void *pEvent)
+                                        Evas_Object *pObj, void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -130,15 +130,15 @@ static void __vp_brightness_mouse_up_cb(void *pUserData, Evas *e,
        }
 
        double dRatio =
-               _vp_play_brightness_get_mouse_pos_ratio(pBrightnessWidget->
-                               pLayout,
-                               pBrightnessWidget->
-                               bLandscape,
-                               pMouseUpEvent->canvas.y);
+           _vp_play_brightness_get_mouse_pos_ratio(pBrightnessWidget->
+                   pLayout,
+                   pBrightnessWidget->
+                   bLandscape,
+                   pMouseUpEvent->canvas.y);
 
        int nCurVal =
-               pBrightnessWidget->nMaxVal -
-               (dRatio * pBrightnessWidget->nMaxVal);
+           pBrightnessWidget->nMaxVal -
+           (dRatio * pBrightnessWidget->nMaxVal);
 
        _vp_play_brightness_set_value(pBrightnessWidget, nCurVal);
        _vp_play_brightness_create_timer(pBrightnessWidget);
@@ -147,8 +147,8 @@ static void __vp_brightness_mouse_up_cb(void *pUserData, Evas *e,
 }
 
 static void __vp_brightness_mouse_move_cb(void *pUserData, Evas *e,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -158,24 +158,24 @@ static void __vp_brightness_mouse_move_cb(void *pUserData, Evas *e,
        BrightnessWidget *pBrightnessWidget = (BrightnessWidget *) pUserData;
 
        Evas_Event_Mouse_Move *pMouseMoveEvent =
-               (Evas_Event_Mouse_Move *) pEvent;
+           (Evas_Event_Mouse_Move *) pEvent;
 
        if (pBrightnessWidget->bIsRealize == FALSE
-                       || pBrightnessWidget->bMouseDown == FALSE) {
+               || pBrightnessWidget->bMouseDown == FALSE) {
                return;
        }
 
        double dRatio =
-               _vp_play_brightness_get_mouse_pos_ratio(pBrightnessWidget->
-                               pLayout,
-                               pBrightnessWidget->
-                               bLandscape,
-                               pMouseMoveEvent->cur.
-                               canvas.y);
+           _vp_play_brightness_get_mouse_pos_ratio(pBrightnessWidget->
+                   pLayout,
+                   pBrightnessWidget->
+                   bLandscape,
+                   pMouseMoveEvent->cur.
+                   canvas.y);
 
        int nCurVal =
-               pBrightnessWidget->nMaxVal -
-               (dRatio * pBrightnessWidget->nMaxVal);
+           pBrightnessWidget->nMaxVal -
+           (dRatio * pBrightnessWidget->nMaxVal);
 
        if (nCurVal != pBrightnessWidget->nCurVal) {
                _vp_play_brightness_set_value(pBrightnessWidget, nCurVal);
@@ -195,7 +195,7 @@ static Eina_Bool __vp_brightness_hide_timer_cb(void *pUserData)
        VP_EVAS_TIMER_DEL(pBrightnessWidget->pHideTimer);
 
        if (!vp_play_brightness_unrealize
-                       ((brightness_handle) pBrightnessWidget)) {
+               ((brightness_handle) pBrightnessWidget)) {
                VideoLogWarning("vp_play_brightness_unrealize is fail");
        }
 
@@ -206,7 +206,7 @@ static Eina_Bool __vp_brightness_hide_timer_cb(void *pUserData)
 
 /* internal functions */
 static void _vp_play_brightness_destory_handle(BrightnessWidget *
-               pBrightnessWidget)
+        pBrightnessWidget)
 {
        if (pBrightnessWidget == NULL) {
                VideoLogError("pBrightnessWidget is NULL");
@@ -221,8 +221,8 @@ static void _vp_play_brightness_destory_handle(BrightnessWidget *
 }
 
 static double _vp_play_brightness_get_mouse_pos_ratio(Evas_Object *pObj,
-               bool bLandscape,
-               int nCurY)
+        bool bLandscape,
+        int nCurY)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -256,7 +256,7 @@ static double _vp_play_brightness_get_mouse_pos_ratio(Evas_Object *pObj,
 
 
 static void _vp_play_brightness_set_widget_position(BrightnessWidget *
-               pBrightnessWidget)
+        pBrightnessWidget)
 {
        if (pBrightnessWidget == NULL) {
                VideoLogError("pBrightnessWidget is NULL");
@@ -268,23 +268,23 @@ static void _vp_play_brightness_set_widget_position(BrightnessWidget *
        int nHeight = 0;
 
        elm_win_screen_size_get(pBrightnessWidget->pParent, NULL, NULL,
-                               &nWidth, &nHeight);
+                               &nWidth, &nHeight);
 
        if (bLandscape) {
                evas_object_move(pBrightnessWidget->pLayout,
-                                nHeight -
-                                VP_BRIGHTNESS_LANDSCAPE_POS_X * VP_SCALE,
-                                VP_BRIGHTNESS_LANDSCAPE_POS_Y * VP_SCALE);
+                                nHeight -
+                                VP_BRIGHTNESS_LANDSCAPE_POS_X * VP_SCALE,
+                                VP_BRIGHTNESS_LANDSCAPE_POS_Y * VP_SCALE);
        } else {
                evas_object_move(pBrightnessWidget->pLayout,
-                                nWidth - VP_BRIGHTNESS_PORTRAIT_POS_X * VP_SCALE,
-                                VP_BRIGHTNESS_PORTRAIT_POS_Y * VP_SCALE);
+                                nWidth - VP_BRIGHTNESS_PORTRAIT_POS_X * VP_SCALE,
+                                VP_BRIGHTNESS_PORTRAIT_POS_Y * VP_SCALE);
        }
 }
 
 static void _vp_play_brightness_update_icon(BrightnessWidget *
-               pBrightnessWidget,
-               double nValueRatio)
+        pBrightnessWidget,
+        double nValueRatio)
 {
        if (pBrightnessWidget == NULL) {
                VideoLogError("pBrightnessWidget is NULL");
@@ -305,12 +305,12 @@ static void _vp_play_brightness_update_icon(BrightnessWidget *
        }
        path = g_strdup_printf(VP_PLAY_BRIGHTNESS_POPUP_ICON_PATH, req);
        elm_image_file_set(pBrightnessWidget->pIcon,
-                          VP_PLAY_RESROUCE_EDJ_PATH, path);
+                          VP_PLAY_RESROUCE_EDJ_PATH, path);
        g_free(path);
 }
 
 static void _vp_play_brightness_update_value(BrightnessWidget *
-               pBrightnessWidget)
+        pBrightnessWidget)
 {
        if (pBrightnessWidget == NULL) {
                VideoLogError("pBrightnessWidget is NULL");
@@ -321,28 +321,28 @@ static void _vp_play_brightness_update_value(BrightnessWidget *
        char szPlayingTime[VP_BRIGHTNESS_TEXT_MAX_LEN] = { 0, };
 
        snprintf(szPlayingTime, VP_BRIGHTNESS_TEXT_MAX_LEN, "%d",
-                pBrightnessWidget->nCurVal);
+                pBrightnessWidget->nCurVal);
 
        nValueRatio =
-               ((double) pBrightnessWidget->nCurVal /
-                (double)(pBrightnessWidget->nMaxVal -
-                         pBrightnessWidget->nMinVal));
+           ((double) pBrightnessWidget->nCurVal /
+            (double)(pBrightnessWidget->nMaxVal -
+                     pBrightnessWidget->nMinVal));
 
        if (!edje_object_part_drag_value_set
-                       (_EDJ(pBrightnessWidget->pLayout),
-                        VP_PLAY_SWALLOW_BRIGHTNESS_POPUP_DRAG_RECT, 0.0, nValueRatio)) {
+               (_EDJ(pBrightnessWidget->pLayout),
+                VP_PLAY_SWALLOW_BRIGHTNESS_POPUP_DRAG_RECT, 0.0, nValueRatio)) {
                VideoLogWarning("Drag value set fail : %lf", nValueRatio);
        }
 
        elm_object_part_text_set(pBrightnessWidget->pLayout,
-                                VP_PLAY_SWALLOW_BRIGHTNESS_POPUP_VALUE_LABEL,
-                                szPlayingTime);
+                                VP_PLAY_SWALLOW_BRIGHTNESS_POPUP_VALUE_LABEL,
+                                szPlayingTime);
        /*update brightness icon */
        _vp_play_brightness_update_icon(pBrightnessWidget, nValueRatio);
 }
 
 static void _vp_play_brightness_create_timer(BrightnessWidget *
-               pBrightnessWidget)
+        pBrightnessWidget)
 {
        if (pBrightnessWidget == NULL) {
                VideoLogError("pBrightnessWidgetis NULL");
@@ -352,9 +352,9 @@ static void _vp_play_brightness_create_timer(BrightnessWidget *
        VP_EVAS_TIMER_DEL(pBrightnessWidget->pHideTimer);
 
        pBrightnessWidget->pHideTimer =
-               ecore_timer_add(VP_BRIGHTNESS_HIDE_LAYOUT_TIMER_INTERVAL,
-                               __vp_brightness_hide_timer_cb,
-                               (void *) pBrightnessWidget);
+           ecore_timer_add(VP_BRIGHTNESS_HIDE_LAYOUT_TIMER_INTERVAL,
+                           __vp_brightness_hide_timer_cb,
+                           (void *) pBrightnessWidget);
 }
 
 static Eina_Bool __vp_brightness_popup_device_timer_cb(void *pUserData)
@@ -377,7 +377,7 @@ static Eina_Bool __vp_brightness_popup_device_timer_cb(void *pUserData)
 }
 
 static void _vp_play_brightness_set_value(BrightnessWidget *
-               pBrightnessWidget, int nValue)
+        pBrightnessWidget, int nValue)
 {
        if (pBrightnessWidget == NULL) {
                VideoLogError("pBrightnessWidget is NULL");
@@ -392,15 +392,15 @@ static void _vp_play_brightness_set_value(BrightnessWidget *
 
        if (pBrightnessWidget->pDeviceTimer == NULL) {
                pBrightnessWidget->pDeviceTimer = ecore_timer_add(0.1,
-                                                 __vp_brightness_popup_device_timer_cb,
-                                                 (void *)
-                                                 pBrightnessWidget);
+                                                 __vp_brightness_popup_device_timer_cb,
+                                                 (void *)
+                                                 pBrightnessWidget);
        }
 }
 
 
 static Evas_Object *_vp_play_brightness_create_layout(Evas_Object *
-               pParent)
+        pParent)
 {
        if (!pParent) {
                VideoLogError("Parent is NULL");
@@ -417,8 +417,8 @@ static Evas_Object *_vp_play_brightness_create_layout(Evas_Object *
        }
 
        bRet =
-               elm_layout_file_set(pObj, VP_PLAY_BRIGHTNESS_POPUP_EDJ_PATH,
-                                   VP_PLAY_EDJ_GROUP_BRIGHTNESS_POPUP);
+           elm_layout_file_set(pObj, VP_PLAY_BRIGHTNESS_POPUP_EDJ_PATH,
+                               VP_PLAY_EDJ_GROUP_BRIGHTNESS_POPUP);
        if (bRet != EINA_TRUE) {
                VideoLogError("elm_layout_file_set fail");
                return NULL;
@@ -438,19 +438,19 @@ static Evas_Object *_vp_play_brightness_create_icon(Evas_Object *pParent)
 
        Evas_Object *pIcon = elm_image_add(pParent);
        evas_object_size_hint_weight_set(pIcon, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pIcon, EVAS_HINT_FILL,
-                                       EVAS_HINT_FILL);
+                                       EVAS_HINT_FILL);
        elm_object_part_content_set(pParent,
-                                   VP_PLAY_SWALLOW_BRIGHTNESS_POPUP_ICON,
-                                   pIcon);
+                                   VP_PLAY_SWALLOW_BRIGHTNESS_POPUP_ICON,
+                                   pIcon);
        evas_object_show(pIcon);
 
        return pIcon;
 }
 
 static bool _vp_play_brightness_init_layout(BrightnessWidget *
-               pBrightnessWidget)
+        pBrightnessWidget)
 {
        if (pBrightnessWidget == NULL) {
                VideoLogError("pBrightnessWidget is NULL");
@@ -460,33 +460,33 @@ static bool _vp_play_brightness_init_layout(BrightnessWidget *
        Evas_Object *pParent = pBrightnessWidget->pParent;
 
        pBrightnessWidget->pLayout =
-               _vp_play_brightness_create_layout(pParent);
+           _vp_play_brightness_create_layout(pParent);
        if (pBrightnessWidget->pLayout == NULL) {
                VideoLogError("_vp_play_brightness_create_layout is fail");
                return FALSE;
        }
 
        pBrightnessWidget->pIcon =
-               _vp_play_brightness_create_icon(pBrightnessWidget->pLayout);
+           _vp_play_brightness_create_icon(pBrightnessWidget->pLayout);
        if (pBrightnessWidget->pIcon == NULL) {
                VideoLogError("_vp_play_brightness_create_icon is fail");
                return FALSE;
        }
 
        evas_object_event_callback_add(pBrightnessWidget->pLayout,
-                                      EVAS_CALLBACK_MOUSE_DOWN,
-                                      __vp_brightness_mouse_down_cb,
-                                      (void *) pBrightnessWidget);
+                                      EVAS_CALLBACK_MOUSE_DOWN,
+                                      __vp_brightness_mouse_down_cb,
+                                      (void *) pBrightnessWidget);
 
        evas_object_event_callback_add(pBrightnessWidget->pLayout,
-                                      EVAS_CALLBACK_MOUSE_UP,
-                                      __vp_brightness_mouse_up_cb,
-                                      (void *) pBrightnessWidget);
+                                      EVAS_CALLBACK_MOUSE_UP,
+                                      __vp_brightness_mouse_up_cb,
+                                      (void *) pBrightnessWidget);
 
        evas_object_event_callback_add(pBrightnessWidget->pLayout,
-                                      EVAS_CALLBACK_MOUSE_MOVE,
-                                      __vp_brightness_mouse_move_cb,
-                                      (void *) pBrightnessWidget);
+                                      EVAS_CALLBACK_MOUSE_MOVE,
+                                      __vp_brightness_mouse_move_cb,
+                                      (void *) pBrightnessWidget);
 
        return TRUE;
 }
@@ -532,7 +532,7 @@ brightness_handle vp_play_brightness_create(Evas_Object *pParent)
        }
 
        pBrightnessWidget->nBrightnessUnit =
-               pBrightnessWidget->nMaxVal / VP_BRIGHTNESS_BRIGHTNESS_UNIT;
+           pBrightnessWidget->nMaxVal / VP_BRIGHTNESS_BRIGHTNESS_UNIT;
 
        if (!vp_device_get_brightness(&(pBrightnessWidget->nCurVal))) {
                VideoLogError("vp_device_get_brightness fail");
@@ -553,7 +553,7 @@ void vp_play_brightness_destroy(brightness_handle pBrightnessHandle)
        }
 
        BrightnessWidget *pBrightnessWidget =
-               (BrightnessWidget *) pBrightnessHandle;
+           (BrightnessWidget *) pBrightnessHandle;
 
        _vp_play_brightness_destory_handle(pBrightnessWidget);
 }
@@ -566,14 +566,14 @@ bool vp_play_brightness_realize(brightness_handle pBrightnessHandle)
        }
 
        BrightnessWidget *pBrightnessWidget =
-               (BrightnessWidget *) pBrightnessHandle;
+           (BrightnessWidget *) pBrightnessHandle;
 
        pBrightnessWidget->bIsRealize = TRUE;
 
        _vp_play_brightness_set_widget_position(pBrightnessWidget);
 
        _vp_play_brightness_set_value(pBrightnessWidget,
-                                     pBrightnessWidget->nCurVal);
+                                     pBrightnessWidget->nCurVal);
 
        evas_object_show(pBrightnessWidget->pLayout);
 
@@ -590,7 +590,7 @@ bool vp_play_brightness_unrealize(brightness_handle pBrightnessHandle)
        }
 
        BrightnessWidget *pBrightnessWidget =
-               (BrightnessWidget *) pBrightnessHandle;
+           (BrightnessWidget *) pBrightnessHandle;
 
        pBrightnessWidget->bIsRealize = FALSE;
 
@@ -600,8 +600,8 @@ bool vp_play_brightness_unrealize(brightness_handle pBrightnessHandle)
 }
 
 bool vp_play_brightness_set_landscape_mode(brightness_handle
-               pBrightnessHandle,
-               bool bLandscape)
+        pBrightnessHandle,
+        bool bLandscape)
 {
        if (pBrightnessHandle == NULL) {
                VideoLogError("pBrightnessHandle is NULL");
@@ -609,7 +609,7 @@ bool vp_play_brightness_set_landscape_mode(brightness_handle
        }
 
        BrightnessWidget *pBrightnessWidget =
-               (BrightnessWidget *) pBrightnessHandle;
+           (BrightnessWidget *) pBrightnessHandle;
 
        pBrightnessWidget->bLandscape = bLandscape;
 
@@ -620,7 +620,7 @@ bool vp_play_brightness_set_landscape_mode(brightness_handle
 }
 
 bool vp_play_brightness_is_realize(brightness_handle pBrightnessHandle,
-                                  bool *bIsRealize)
+                                   bool *bIsRealize)
 {
        if (pBrightnessHandle == NULL) {
                VideoLogError("pBrightnessHandle is NULL");
@@ -628,7 +628,7 @@ bool vp_play_brightness_is_realize(brightness_handle pBrightnessHandle,
        }
 
        BrightnessWidget *pBrightnessWidget =
-               (BrightnessWidget *) pBrightnessHandle;
+           (BrightnessWidget *) pBrightnessHandle;
 
        *bIsRealize = pBrightnessWidget->bIsRealize;
 
@@ -636,7 +636,7 @@ bool vp_play_brightness_is_realize(brightness_handle pBrightnessHandle,
 }
 
 bool vp_play_brightness_set_value(brightness_handle pBrightnessHandle,
-                                 int nCurVal)
+                                  int nCurVal)
 {
        if (pBrightnessHandle == NULL) {
                VideoLogError("pBrightnessHandle is NULL");
@@ -644,7 +644,7 @@ bool vp_play_brightness_set_value(brightness_handle pBrightnessHandle,
        }
 
        BrightnessWidget *pBrightnessWidget =
-               (BrightnessWidget *) pBrightnessHandle;
+           (BrightnessWidget *) pBrightnessHandle;
 
        _vp_play_brightness_create_timer(pBrightnessWidget);
 
@@ -661,7 +661,7 @@ bool vp_play_brightness_set_value(brightness_handle pBrightnessHandle,
        }
 
        _vp_play_brightness_set_value(pBrightnessWidget,
-                                     pBrightnessWidget->nCurVal);
+                                     pBrightnessWidget->nCurVal);
 
        return TRUE;
 }
index 8009861..f155a8d 100644 (file)
@@ -21,9 +21,9 @@
 #include "vp-play-log.h"
 
 Evas_Object *vp_button_create(Evas_Object *pParent, const char *pStyle,
-                             const char *pTxt, Evas_Smart_Cb pClickFunc,
-                             Evas_Smart_Cb pPressFunc,
-                             Evas_Smart_Cb pUnpressFunc, void *pUserData)
+                              const char *pTxt, Evas_Smart_Cb pClickFunc,
+                              Evas_Smart_Cb pPressFunc,
+                              Evas_Smart_Cb pUnpressFunc, void *pUserData)
 {
        if (!pParent) {
                VideoLogError("pParent is NULL");
@@ -47,22 +47,22 @@ Evas_Object *vp_button_create(Evas_Object *pParent, const char *pStyle,
        }
 
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
 
        evas_object_smart_callback_add(pObj, "clicked", pClickFunc,
-                                      pUserData);
+                                      pUserData);
        evas_object_smart_callback_add(pObj, "pressed", pPressFunc,
-                                      pUserData);
+                                      pUserData);
        evas_object_smart_callback_add(pObj, "unpressed", pUnpressFunc,
-                                      pUserData);
+                                      pUserData);
 
        return pObj;
 }
 
 Evas_Object *vp_button_create_icon(Evas_Object *pParent,
-                                  const char *pEdjPath,
-                                  const char *pGroupName)
+                                   const char *pEdjPath,
+                                   const char *pGroupName)
 {
        if (!pParent) {
                VideoLogError("pParent is NULL");
@@ -76,7 +76,7 @@ Evas_Object *vp_button_create_icon(Evas_Object *pParent,
                return NULL;
        }
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(pObj, EVAS_HINT_FILL, EVAS_HINT_FILL);
 
        return pObj;
@@ -84,8 +84,8 @@ Evas_Object *vp_button_create_icon(Evas_Object *pParent,
 
 
 Evas_Object *vp_button_create_image(Evas_Object *pParent,
-                                   const char *pEdjPath,
-                                   const char *pGroupName)
+                                    const char *pEdjPath,
+                                    const char *pGroupName)
 {
        if (!pParent) {
                VideoLogError("pParent is NULL");
@@ -103,11 +103,11 @@ Evas_Object *vp_button_create_image(Evas_Object *pParent,
 }
 
 Evas_Object *vp_navirame_button_create(Evas_Object *pParent,
-                                      const char *pStyle,
-                                      const char *pEdjPath,
-                                      const char *pGroupName,
-                                      Evas_Smart_Cb pClickFunc,
-                                      void *pUserData)
+                                       const char *pStyle,
+                                       const char *pEdjPath,
+                                       const char *pGroupName,
+                                       Evas_Smart_Cb pClickFunc,
+                                       void *pUserData)
 {
        if (!pParent) {
                VideoLogError("pParent is NULL");
@@ -116,8 +116,9 @@ Evas_Object *vp_navirame_button_create(Evas_Object *pParent,
 
        Evas_Object *pImage = NULL;
        Evas_Object *btn = elm_button_add(pParent);
-       if (!btn)
+       if (!btn) {
                return NULL;
+       }
 
        if (pStyle) {
                elm_object_style_set(btn, pStyle);
@@ -128,7 +129,7 @@ Evas_Object *vp_navirame_button_create(Evas_Object *pParent,
        pImage = elm_image_add(pParent);
        elm_image_file_set(pImage, pEdjPath, pGroupName);
        evas_object_size_hint_aspect_set(pImage, EVAS_ASPECT_CONTROL_BOTH, 1,
-                                        1);
+                                        1);
        elm_image_resizable_set(pImage, EINA_TRUE, EINA_TRUE);
        elm_object_part_content_set(btn, "icon", pImage);
 
index c62a736..6066612 100644 (file)
@@ -24,7 +24,7 @@
 
 
 Evas_Object *vp_play_loading_ani_create(Evas_Object *pParent,
-                                       video_loading_size_t nSize)
+                                        video_loading_size_t nSize)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -33,17 +33,18 @@ Evas_Object *vp_play_loading_ani_create(Evas_Object *pParent,
 
        Evas_Object *progressbar = NULL;
        progressbar = elm_progressbar_add(pParent);
-       if (nSize == VIDEO_LOADING_SIZE_SMALL)
+       if (nSize == VIDEO_LOADING_SIZE_SMALL) {
                elm_object_style_set(progressbar, "process_small");
-       else if (nSize == VIDEO_LOADING_SIZE_MIDUM)
+       } else if (nSize == VIDEO_LOADING_SIZE_MIDUM) {
                elm_object_style_set(progressbar, "process_medium");
-       else if (nSize == VIDEO_LOADING_SIZE_LARGE)
+       } else if (nSize == VIDEO_LOADING_SIZE_LARGE) {
                elm_object_style_set(progressbar, "process_large");
-       else
+       } else {
                elm_object_style_set(progressbar, "process_Xlarge");
+       }
        evas_object_size_hint_align_set(progressbar, EVAS_HINT_FILL, 0.5);
        evas_object_size_hint_weight_set(progressbar, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
        evas_object_show(progressbar);
        elm_progressbar_pulse(progressbar, EINA_TRUE);
 
index 313df81..238a6bb 100644 (file)
 #include "vp-util.h"
 
 Evas_Object *vp_popup_create(Evas_Object *pParent,
-                            video_popup_style_t nStyle, char *szTitle,
-                            char *szContent, double dTimeOut,
-                            Evas_Smart_Cb pTimeoutFunc,
-                            Eext_Event_Cb pCancelKeyCb,
-                            Evas_Object_Event_Cb pCancelMouseCb,
-                            void *pUserData)
+                             video_popup_style_t nStyle, char *szTitle,
+                             char *szContent, double dTimeOut,
+                             Evas_Smart_Cb pTimeoutFunc,
+                             Eext_Event_Cb pCancelKeyCb,
+                             Evas_Object_Event_Cb pCancelMouseCb,
+                             void *pUserData)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -62,11 +62,11 @@ Evas_Object *vp_popup_create(Evas_Object *pParent,
 
        if (nStyle == POPUP_STYLE_FULLSCREEN_NO_TITLE_NO_CANCEL_BTN) {
                elm_layout_theme_set(pObj, "popup", "fullsrceen/notitle",
-                                    "default");
+                                    "default");
        }
 
        evas_object_size_hint_weight_set(pObj, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                                        EVAS_HINT_EXPAND);
 
        if (szTitle) {
                elm_object_part_text_set(pObj, "title,text", szTitle);
@@ -80,26 +80,26 @@ Evas_Object *vp_popup_create(Evas_Object *pParent,
                elm_popup_timeout_set(pObj, dTimeOut);
                if (pTimeoutFunc) {
                        evas_object_smart_callback_add(pObj, "timeout", pTimeoutFunc,
-                                                      (void *) pUserData);
+                                                      (void *) pUserData);
                }
        }
 
        if (pCancelKeyCb) {
                eext_object_event_callback_add(pObj, EEXT_CALLBACK_BACK,
-                                              pCancelKeyCb, (void *) pUserData);
+                                              pCancelKeyCb, (void *) pUserData);
        }
 
        if (nStyle == POPUP_STYLE_DEFAULT_NO_CANCEL_BTN
-                       || nStyle == POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN
-                       || nStyle == POPUP_STYLE_EXPAND_NO_CANCEL_BTN
-                       || nStyle == POPUP_STYLE_PROGRESS_WITH_NO_CANCEL_BTN)
+               || nStyle == POPUP_STYLE_MENU_LIST_NO_CANCEL_BTN
+               || nStyle == POPUP_STYLE_EXPAND_NO_CANCEL_BTN
+               || nStyle == POPUP_STYLE_PROGRESS_WITH_NO_CANCEL_BTN)
                evas_object_smart_callback_add(pObj, "block,clicked",
-                                              pCancelKeyCb, (void *) pUserData);
+                                              pCancelKeyCb, (void *) pUserData);
 
        if (pCancelMouseCb) {
                evas_object_event_callback_add(pObj, EVAS_CALLBACK_MOUSE_UP,
-                                              pCancelMouseCb,
-                                              (void *) pUserData);
+                                              pCancelMouseCb,
+                                              (void *) pUserData);
        }
 
        return pObj;
@@ -107,13 +107,13 @@ Evas_Object *vp_popup_create(Evas_Object *pParent,
 
 
 Evas_Object *vp_two_button_popup_create(Evas_Object *pParent,
-                                       char *szTitle,
-                                       char *szContent,
-                                       char *pLeftButtonText,
-                                       Evas_Smart_Cb leftButtonCb,
-                                       char *pRightButtonText,
-                                       Evas_Smart_Cb rightButtonCb,
-                                       const void *pUserData)
+                                        char *szTitle,
+                                        char *szContent,
+                                        char *pLeftButtonText,
+                                        Evas_Smart_Cb leftButtonCb,
+                                        char *pRightButtonText,
+                                        Evas_Smart_Cb rightButtonCb,
+                                        const void *pUserData)
 {
        Evas_Object *pPopup = NULL;
        Evas_Object *pBtn1 = NULL;
@@ -131,13 +131,15 @@ Evas_Object *vp_two_button_popup_create(Evas_Object *pParent,
                return NULL;
        }
 
-       if (szTitle)
+       if (szTitle) {
                elm_object_part_text_set(pPopup, "title,text", szTitle);
+       }
 
        evas_object_size_hint_weight_set(pPopup, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
-       if (szContent)
+                                        EVAS_HINT_EXPAND);
+       if (szContent) {
                elm_object_part_text_set(pPopup, "default", szContent);
+       }
 
        pBtn1 = elm_button_add(pPopup);
        elm_object_style_set(pBtn1, "popup");
@@ -145,7 +147,7 @@ Evas_Object *vp_two_button_popup_create(Evas_Object *pParent,
        elm_object_part_content_set(pPopup, "button1", pBtn1);
        if (leftButtonCb)
                evas_object_smart_callback_add(pBtn1, "clicked", leftButtonCb,
-                                              (const void *) pUserData);
+                                              (const void *) pUserData);
 
        pBtn2 = elm_button_add(pPopup);
        elm_object_style_set(pBtn2, "popup");
@@ -154,7 +156,7 @@ Evas_Object *vp_two_button_popup_create(Evas_Object *pParent,
 
        if (rightButtonCb)
                evas_object_smart_callback_add(pBtn2, "clicked", rightButtonCb,
-                                              (const void *) pUserData);
+                                              (const void *) pUserData);
 
        evas_object_show(pPopup);
 
@@ -163,22 +165,23 @@ Evas_Object *vp_two_button_popup_create(Evas_Object *pParent,
 
 #ifdef _SUBTITLE_MULTI_LANGUAGE
 Evas_Object *vp_title_two_button_popup_create(Evas_Object *pParent,
-               char *szTitle,
-               char *szContent,
-               char *pLeftButtonText,
-               Evas_Smart_Cb leftButtonCb,
-               char *pRightButtonText,
-               Evas_Smart_Cb rightButtonCb,
-               const void *pUserData)
+        char *szTitle,
+        char *szContent,
+        char *pLeftButtonText,
+        Evas_Smart_Cb leftButtonCb,
+        char *pRightButtonText,
+        Evas_Smart_Cb rightButtonCb,
+        const void *pUserData)
 {
        Evas_Object *pPopup = NULL;
        pPopup =
-               vp_two_button_popup_create(pParent, NULL, szContent,
-                                          pLeftButtonText, leftButtonCb,
-                                          pRightButtonText, rightButtonCb,
-                                          pUserData);
-       if (szTitle && pPopup)
+           vp_two_button_popup_create(pParent, NULL, szContent,
+                                      pLeftButtonText, leftButtonCb,
+                                      pRightButtonText, rightButtonCb,
+                                      pUserData);
+       if (szTitle && pPopup) {
                elm_object_part_text_set(pPopup, "title,text", szTitle);
+       }
 
        return pPopup;
 }
@@ -198,8 +201,8 @@ bool vp_popup_check_landspace_by_win(Evas_Object *pWin)
 }
 
 void vp_popup_set_popup_min_size(Evas_Object *pWin, Evas_Object *pBox,
-                                int nListCount,
-                                video_list_popup_style_t eStyle)
+                                 int nListCount,
+                                 video_list_popup_style_t eStyle)
 {
        if (!pWin) {
                VideoLogError("win is NULL.");
@@ -225,10 +228,10 @@ void vp_popup_set_popup_min_size(Evas_Object *pWin, Evas_Object *pBox,
                case VIDEO_POPUP_2_TEXT_1_ICON:
                        if (vp_popup_check_landspace_by_win(pWin)) {
                                nMinHeight =
-                                       VP_POPUP_LIST_2_TEXT_1_ICON_HEIGHT_L(nListCount);
+                                   VP_POPUP_LIST_2_TEXT_1_ICON_HEIGHT_L(nListCount);
                        } else {
                                nMinHeight =
-                                       VP_POPUP_LIST_2_TEXT_1_ICON_HEIGHT(nListCount);
+                                   VP_POPUP_LIST_2_TEXT_1_ICON_HEIGHT(nListCount);
                        }
                        break;
                case VIDEO_POPUP_LOADING_LIST:
@@ -245,7 +248,7 @@ void vp_popup_set_popup_min_size(Evas_Object *pWin, Evas_Object *pBox,
                }
 
                evas_object_size_hint_min_set(pBox,
-                                             VP_POPUP_LIST_WIDTH * VP_SCALE,
-                                             nMinHeight * VP_SCALE);
+                                             VP_POPUP_LIST_WIDTH * VP_SCALE,
+                                             nMinHeight * VP_SCALE);
        }
 }
index 36648e6..7b6034b 100644 (file)
@@ -52,14 +52,14 @@ typedef struct _ProgressWidget {
 
 
 static void _vp_play_progressbar_destory_handle(ProgressWidget *
-               pProgressWidget);
+        pProgressWidget);
 
 
 
 /* callback functions */
 static void __vp_play_progressbar_key_focus_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+        Evas_Object *pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -74,14 +74,14 @@ static void __vp_play_progressbar_key_focus_cb(void *pUserData,
 
 
        elm_object_signal_emit(pProgressWidget->pLayout,
-                              VP_NORMAL_SIGNAL_PROGRESS_PRESS, "*");
+                              VP_NORMAL_SIGNAL_PROGRESS_PRESS, "*");
 
        VideoLogInfo("progress focus in");
 }
 
 static void __vp_play_progressbar_key_unfocus_cb(void *pUserData,
-               Evas_Object *pObj,
-               void *pEventInfo)
+        Evas_Object *pObj,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pUserData is NULL");
@@ -95,7 +95,7 @@ static void __vp_play_progressbar_key_unfocus_cb(void *pUserData,
        }
 
        elm_object_signal_emit(pProgressWidget->pLayout,
-                              VP_NORMAL_SIGNAL_PROGRESS_UNPRESS, "*");
+                              VP_NORMAL_SIGNAL_PROGRESS_UNPRESS, "*");
 
        VideoLogInfo("progress focus out");
 }
@@ -103,7 +103,7 @@ static void __vp_play_progressbar_key_unfocus_cb(void *pUserData,
 /* internal functions */
 
 static void _vp_play_progressbar_value_update(ProgressWidget *
-               pProgressWidget)
+        pProgressWidget)
 {
        if (pProgressWidget == NULL) {
                VideoLogError("pProgressWidget is NULL");
@@ -120,31 +120,31 @@ static void _vp_play_progressbar_value_update(ProgressWidget *
        char szPlayingTime[PROGRESSBAR_TIME_LENGTH] = { 0, };
 
        snprintf(szPlayingTime, PROGRESSBAR_TIME_LENGTH,
-                "%" PROGRESSBAR_TIME_FORMAT,
-                PROGRESSBAR_TIME_ARGS(pProgressWidget->nCurrentPos / 1000));
+                "%" PROGRESSBAR_TIME_FORMAT,
+                PROGRESSBAR_TIME_ARGS(pProgressWidget->nCurrentPos / 1000));
 
        dPlayedRatio =
-               ((double) pProgressWidget->nCurrentPos /
-                (double) pProgressWidget->nDuration);
+           ((double) pProgressWidget->nCurrentPos /
+            (double) pProgressWidget->nDuration);
        dBufferingRatio =
-               ((double) pProgressWidget->nBufferingPos / (double) 100);
+           ((double) pProgressWidget->nBufferingPos / (double) 100);
 
        edje_object_part_drag_value_set(_EDJ(pProgressWidget->pLayout),
-                                       VP_PLAY_SWALLOW_PROGRESS_DRAG_RECT,
-                                       dPlayedRatio, 0.0);
+                                       VP_PLAY_SWALLOW_PROGRESS_DRAG_RECT,
+                                       dPlayedRatio, 0.0);
        edje_object_part_drag_value_set(_EDJ(pProgressWidget->pLayout),
-                                       "pv.progress.buffering",
-                                       dBufferingRatio, 0.0);
+                                       "pv.progress.buffering",
+                                       dBufferingRatio, 0.0);
 
        //elm_object_part_text_set(pProgressWidget->pStartLabel, "elm.text", szPlayingTime);
        elm_object_part_text_set(pProgressWidget->pLayout,
-                                VP_PLAY_SWALLOW_PROGRESS_PLAYING_LABEL,
-                                szPlayingTime);
+                                VP_PLAY_SWALLOW_PROGRESS_PLAYING_LABEL,
+                                szPlayingTime);
 
 }
 
 static void _vp_play_progressbar_destory_handle(ProgressWidget *
-               pProgressWidget)
+        pProgressWidget)
 {
        if (pProgressWidget == NULL) {
                VideoLogError("pProgressWidget is NULL");
@@ -154,11 +154,11 @@ static void _vp_play_progressbar_destory_handle(ProgressWidget *
        vp_play_progressbar_unrealize((progressbar_handle) pProgressWidget);
        if (pProgressWidget->pFocusPoint) {
                evas_object_smart_callback_del(pProgressWidget->pFocusPoint,
-                                              "focused",
-                                              __vp_play_progressbar_key_focus_cb);
+                                              "focused",
+                                              __vp_play_progressbar_key_focus_cb);
                evas_object_smart_callback_del(pProgressWidget->pFocusPoint,
-                                              "unfocused",
-                                              __vp_play_progressbar_key_unfocus_cb);
+                                              "unfocused",
+                                              __vp_play_progressbar_key_unfocus_cb);
                VP_EVAS_DEL(pProgressWidget->pFocusPoint);
        }
 
@@ -171,9 +171,9 @@ static void _vp_play_progressbar_destory_handle(ProgressWidget *
 }
 
 static Evas_Object *_vp_play_progressbar_create_layout(Evas_Object *
-               pParent,
-               video_progressbar_type_t
-               nType)
+        pParent,
+        video_progressbar_type_t
+        nType)
 {
        if (!pParent) {
                VideoLogError("Parent is NULL");
@@ -191,8 +191,8 @@ static Evas_Object *_vp_play_progressbar_create_layout(Evas_Object *
 
        if (nType == VIDEO_PROGRESSBAR_TYPE_NORMAL) {
                bRet =
-                       elm_layout_file_set(pObj, VP_PLAY_PROGRESSBAR_EDJ_PATH,
-                                           VP_PLAY_EDJ_GROUP_PROGRESSBAR);
+                   elm_layout_file_set(pObj, VP_PLAY_PROGRESSBAR_EDJ_PATH,
+                                       VP_PLAY_EDJ_GROUP_PROGRESSBAR);
                if (bRet != EINA_TRUE) {
                        VideoLogError("elm_layout_file_set fail");
                        return NULL;
@@ -207,8 +207,8 @@ static Evas_Object *_vp_play_progressbar_create_layout(Evas_Object *
 }
 
 static void _vp_play_progressbar_layout_del_cb(void *pUserData, Evas *e,
-               Evas_Object *pObject,
-               void *pEventInfo)
+        Evas_Object *pObject,
+        void *pEventInfo)
 {
        if (pUserData == NULL) {
                VideoLogError("pProgressWidget is NULL");
@@ -223,7 +223,7 @@ static void _vp_play_progressbar_layout_del_cb(void *pUserData, Evas *e,
 }
 
 static bool _vp_play_progressbar_init_layout(ProgressWidget *
-               pProgressWidget)
+        pProgressWidget)
 {
        if (pProgressWidget == NULL) {
                VideoLogError("pProgressWidget is NULL");
@@ -233,54 +233,54 @@ static bool _vp_play_progressbar_init_layout(ProgressWidget *
        Evas_Object *pParent = pProgressWidget->pParent;
 
        pProgressWidget->pLayout =
-               _vp_play_progressbar_create_layout(pParent,
-                               pProgressWidget->nType);
+           _vp_play_progressbar_create_layout(pParent,
+                                              pProgressWidget->nType);
        if (pProgressWidget->pLayout == NULL) {
                VideoLogError("_vp_play_progressbar_create_layout is fail");
                return FALSE;
        }
 
        evas_object_event_callback_add(pProgressWidget->pLayout,
-                                      EVAS_CALLBACK_DEL,
-                                      _vp_play_progressbar_layout_del_cb,
-                                      (void *) pProgressWidget);
+                                      EVAS_CALLBACK_DEL,
+                                      _vp_play_progressbar_layout_del_cb,
+                                      (void *) pProgressWidget);
 
 
        pProgressWidget->pFocusPoint =
-               vp_button_create(pProgressWidget->pLayout, "focus", NULL, NULL,
-                                NULL, NULL, (void *) pProgressWidget);
+           vp_button_create(pProgressWidget->pLayout, "focus", NULL, NULL,
+                            NULL, NULL, (void *) pProgressWidget);
        if (!pProgressWidget->pFocusPoint) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
        }
 
        elm_object_focus_next_object_set(pProgressWidget->pFocusPoint,
-                                        pProgressWidget->pFocusPoint,
-                                        ELM_FOCUS_RIGHT);
+                                        pProgressWidget->pFocusPoint,
+                                        ELM_FOCUS_RIGHT);
        elm_object_focus_next_object_set(pProgressWidget->pFocusPoint,
-                                        pProgressWidget->pFocusPoint,
-                                        ELM_FOCUS_LEFT);
+                                        pProgressWidget->pFocusPoint,
+                                        ELM_FOCUS_LEFT);
 
        evas_object_smart_callback_add(pProgressWidget->pFocusPoint,
-                                      "focused",
-                                      __vp_play_progressbar_key_focus_cb,
-                                      pProgressWidget);
+                                      "focused",
+                                      __vp_play_progressbar_key_focus_cb,
+                                      pProgressWidget);
        evas_object_smart_callback_add(pProgressWidget->pFocusPoint,
-                                      "unfocused",
-                                      __vp_play_progressbar_key_unfocus_cb,
-                                      pProgressWidget);
+                                      "unfocused",
+                                      __vp_play_progressbar_key_unfocus_cb,
+                                      pProgressWidget);
 
        elm_object_part_content_set(pProgressWidget->pLayout,
-                                   "pv.progress.point.focus",
-                                   pProgressWidget->pFocusPoint);
+                                   "pv.progress.point.focus",
+                                   pProgressWidget->pFocusPoint);
 
        return TRUE;
 }
 
 
 progressbar_handle vp_play_progressbar_create(Evas_Object *pParent,
-               video_progressbar_type_t
-               nType)
+        video_progressbar_type_t
+        nType)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -352,7 +352,7 @@ bool vp_play_progressbar_unrealize(progressbar_handle pWidgetHandle)
 }
 
 Evas_Object *vp_play_progressbar_get_object(progressbar_handle
-               pWidgetHandle)
+        pWidgetHandle)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -364,7 +364,7 @@ Evas_Object *vp_play_progressbar_get_object(progressbar_handle
 }
 
 Evas_Object *vp_play_progressbar_get_focus_object(progressbar_handle
-               pWidgetHandle)
+        pWidgetHandle)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -376,7 +376,7 @@ Evas_Object *vp_play_progressbar_get_focus_object(progressbar_handle
 }
 
 bool vp_play_progressbar_set_duration(progressbar_handle pWidgetHandle,
-                                     int nDuration)
+                                      int nDuration)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -394,19 +394,19 @@ bool vp_play_progressbar_set_duration(progressbar_handle pWidgetHandle,
        pProgressWidget->nDuration = nDuration;
 
        snprintf(szDurationTime, PROGRESSBAR_TIME_LENGTH,
-                "%" PROGRESSBAR_TIME_FORMAT,
-                PROGRESSBAR_TIME_ARGS(pProgressWidget->nDuration / 1000));
+                "%" PROGRESSBAR_TIME_FORMAT,
+                PROGRESSBAR_TIME_ARGS(pProgressWidget->nDuration / 1000));
 
        //elm_object_part_text_set(pProgressWidget->pTotalLabel, "elm.text", szDurationTime);
        elm_object_part_text_set(pProgressWidget->pLayout,
-                                VP_PLAY_SWALLOW_PROGRESS_DURATION_LABEL,
-                                szDurationTime);
+                                VP_PLAY_SWALLOW_PROGRESS_DURATION_LABEL,
+                                szDurationTime);
 
        return TRUE;
 }
 
 bool vp_play_progressbar_set_position(progressbar_handle pWidgetHandle,
-                                     int nPosition)
+                                      int nPosition)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -423,8 +423,8 @@ bool vp_play_progressbar_set_position(progressbar_handle pWidgetHandle,
 }
 
 bool vp_play_progressbar_set_buffering_position(progressbar_handle
-               pWidgetHandle,
-               int nBufferinPosition)
+        pWidgetHandle,
+        int nBufferinPosition)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -441,8 +441,8 @@ bool vp_play_progressbar_set_buffering_position(progressbar_handle
 }
 
 bool vp_play_progressbar_set_landscape_mode(progressbar_handle
-               pWidgetHandle,
-               bool bLandscape)
+        pWidgetHandle,
+        bool bLandscape)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -457,12 +457,12 @@ bool vp_play_progressbar_set_landscape_mode(progressbar_handle
 
        if (bLandscape) {
                elm_object_signal_emit(pProgressWidget->pLayout,
-                                      VP_NORMAL_SIGNAL_PROGRESS_LANDSCAPE_MODE,
-                                      "*");
+                                      VP_NORMAL_SIGNAL_PROGRESS_LANDSCAPE_MODE,
+                                      "*");
        } else {
                elm_object_signal_emit(pProgressWidget->pLayout,
-                                      VP_NORMAL_SIGNAL_PROGRESS_PORTRAIT_MODE,
-                                      "*");
+                                      VP_NORMAL_SIGNAL_PROGRESS_PORTRAIT_MODE,
+                                      "*");
        }
 
        return TRUE;
@@ -470,7 +470,7 @@ bool vp_play_progressbar_set_landscape_mode(progressbar_handle
 }
 
 bool vp_play_progressbar_set_opacity(progressbar_handle pWidgetHandle,
-                                    bool bOpacity)
+                                     bool bOpacity)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -486,11 +486,11 @@ bool vp_play_progressbar_set_opacity(progressbar_handle pWidgetHandle,
 
        if (bOpacity) {
                elm_object_signal_emit(pProgressWidget->pLayout,
-                                      VP_NORMAL_SIGNAL_PROGRESS_OPACITY_60, "*");
+                                      VP_NORMAL_SIGNAL_PROGRESS_OPACITY_60, "*");
        } else {
                elm_object_signal_emit(pProgressWidget->pLayout,
-                                      VP_NORMAL_SIGNAL_PROGRESS_OPACITY_DEFAULT,
-                                      "*");
+                                      VP_NORMAL_SIGNAL_PROGRESS_OPACITY_DEFAULT,
+                                      "*");
        }
 
        return TRUE;
index f0a2e30..82ac7ed 100644 (file)
 #define VP_SUBTITLE_LANDSCAPE_H                        530
 
 #define VP_NORMAL_SUTITLE_TEXT_STYLE \
-               "DEFAULT='font=Tizen:style=Roman align=center valign=bottom wrap=word'"\
-               "br='\n'" \
-               "ps='ps'" \
-               "hilight='+ font=Tizen:style=Roman'" \
-               "b='+ font=Tizen:style=Roman'" \
-               "tab='\t'"
+       "DEFAULT='font=Tizen:style=Roman align=center valign=bottom wrap=word'"\
+       "br='\n'" \
+       "ps='ps'" \
+       "hilight='+ font=Tizen:style=Roman'" \
+       "b='+ font=Tizen:style=Roman'" \
+       "tab='\t'"
 
 void _vp_play_subtitle_destroy_handle(Subtitle *pSubtitle);
 /* callback functions */
@@ -73,8 +73,8 @@ void _vp_play_subtitle_destroy_handle(Subtitle *pSubtitle)
 }
 
 static Evas_Object *_vp_play_subtitle_create_layout(Evas_Object *pParent,
-               vp_subtitle_type_t
-               nType)
+        vp_subtitle_type_t
+        nType)
 {
        if (!pParent) {
                VideoLogError("Parent is NULL");
@@ -93,12 +93,12 @@ static Evas_Object *_vp_play_subtitle_create_layout(Evas_Object *pParent,
        if (nType == VP_SUBTITLE_TYPE_NORMAL) {
                //bRet = elm_layout_file_set(pObj, VP_PLAY_SUBTITLE_EDJ_PATH, VP_PLAY_EDJ_GROUP_SUBTITLE);
                bRet =
-                       elm_layout_file_set(pObj, VP_PLAY_SUBTITLE_EDJ_PATH,
-                                           VP_PLAY_EDJ_GROUP_SUBTITLE_MULTI);
+                   elm_layout_file_set(pObj, VP_PLAY_SUBTITLE_EDJ_PATH,
+                                       VP_PLAY_EDJ_GROUP_SUBTITLE_MULTI);
        } else if (nType == VP_SUBTITLE_TYPE_MULTI) {
                bRet =
-                       elm_layout_file_set(pObj, VP_PLAY_SUBTITLE_EDJ_PATH,
-                                           VP_PLAY_EDJ_GROUP_SUBTITLE_MULTI);
+                   elm_layout_file_set(pObj, VP_PLAY_SUBTITLE_EDJ_PATH,
+                                       VP_PLAY_EDJ_GROUP_SUBTITLE_MULTI);
        }
 
        if (bRet != EINA_TRUE) {
@@ -110,8 +110,8 @@ static Evas_Object *_vp_play_subtitle_create_layout(Evas_Object *pParent,
 }
 
 static void _vp_play_subtitle_layout_del_cb(void *pUserData, Evas *e,
-               Evas_Object *pObject,
-               void *pEventInfo)
+        Evas_Object *pObject,
+        void *pEventInfo)
 {
        if (!pUserData) {
                VideoLogError("pSubtitle is NULL");
@@ -123,7 +123,7 @@ static void _vp_play_subtitle_layout_del_cb(void *pUserData, Evas *e,
 }
 
 static bool _vp_play_subtitle_init_layout(Subtitle *pSubtitle,
-               vp_subtitle_type_t nType)
+        vp_subtitle_type_t nType)
 {
        if (pSubtitle == NULL) {
                VideoLogError("pSubtitle is NULL");
@@ -140,8 +140,8 @@ static bool _vp_play_subtitle_init_layout(Subtitle *pSubtitle,
        pSubtitle->pTextBlock = NULL;
 
        evas_object_event_callback_add(pSubtitle->pLayout, EVAS_CALLBACK_DEL,
-                                      _vp_play_subtitle_layout_del_cb,
-                                      (void *) pSubtitle);
+                                      _vp_play_subtitle_layout_del_cb,
+                                      (void *) pSubtitle);
 
        return TRUE;
 }
@@ -245,22 +245,22 @@ void vp_play_subtitle_text_update(Subtitle *pSubtitle, const char *szTxt)
 
 #ifdef SUBTITLE_K_FEATURE
        szTxtFormat =
-               g_strdup_printf(VP_SUBTITLE_STRING_TXT_FORMAT, nSize, szFontEdge,
-                               pSubtitle->szFontName, szFontWeight, szColor,
-                               szBGColor, szBGColorOn, szAlignment, szOutput);
+           g_strdup_printf(VP_SUBTITLE_STRING_TXT_FORMAT, nSize, szFontEdge,
+                           pSubtitle->szFontName, szFontWeight, szColor,
+                           szBGColor, szBGColorOn, szAlignment, szOutput);
 #else
        szTxtFormat =
-               g_strdup_printf(VP_SUBTITLE_STRING_TXT_FORMAT, nSize, szFontEdge,
-                               pSubtitle->szFontName, szFontWeight, szColor,
-                               szBGColor, szBGColorOn, szOutput);
+           g_strdup_printf(VP_SUBTITLE_STRING_TXT_FORMAT, nSize, szFontEdge,
+                           pSubtitle->szFontName, szFontWeight, szColor,
+                           szBGColor, szBGColorOn, szOutput);
 #endif
 
        if (pSubtitle->pTextBlock) {
                evas_object_textblock_text_markup_set(pSubtitle->pTextBlock,
-                                                     szTxtFormat);
+                                                     szTxtFormat);
        } else {
                elm_object_part_text_set(pSubtitle->pLayout,
-                                        VP_PLAY_PART_SUBTITLE_TEXT, szTxtFormat);
+                                        VP_PLAY_PART_SUBTITLE_TEXT, szTxtFormat);
        }
 
        VP_FREE(szFontEdge);
@@ -280,7 +280,7 @@ void vp_play_subtitle_text_update(Subtitle *pSubtitle, const char *szTxt)
 
 /* external functions */
 subtitle_handle vp_play_subtitle_create(Evas_Object *pParent,
-                                       vp_subtitle_type_t nType)
+                                        vp_subtitle_type_t nType)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -363,7 +363,7 @@ bool vp_play_subtitle_unrealize(subtitle_handle pWidgetHandle)
 }
 
 bool vp_play_subtitle_is_realize(subtitle_handle pWidgetHandle,
-                                bool *bIsRealize)
+                                 bool *bIsRealize)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -391,7 +391,7 @@ Evas_Object *vp_play_subtitle_get_object(subtitle_handle pWidgetHandle)
 }
 
 bool vp_play_subtitle_set_font(subtitle_handle pWidgetHandle,
-                              char *szFontName)
+                               char *szFontName)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -417,7 +417,7 @@ bool vp_play_subtitle_set_font(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_get_font(subtitle_handle pWidgetHandle,
-                              char **szFontName)
+                               char **szFontName)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -469,7 +469,7 @@ bool vp_play_subtitle_get_edge(subtitle_handle pWidgetHandle, int *nEdge)
 }
 
 bool vp_play_subtitle_set_size(subtitle_handle pWidgetHandle,
-                              video_subtitle_size_t nSize)
+                               video_subtitle_size_t nSize)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -489,7 +489,7 @@ bool vp_play_subtitle_set_size(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_get_size(subtitle_handle pWidgetHandle,
-                              video_subtitle_size_t *nSize)
+                               video_subtitle_size_t *nSize)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -504,7 +504,7 @@ bool vp_play_subtitle_get_size(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_set_size_zoom(subtitle_handle pWidgetHandle,
-                                   float fZoom)
+                                    float fZoom)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -526,7 +526,7 @@ bool vp_play_subtitle_set_size_zoom(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_get_size_zoom(subtitle_handle pWidgetHandle,
-                                   float *fZoom)
+                                    float *fZoom)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -542,7 +542,7 @@ bool vp_play_subtitle_get_size_zoom(subtitle_handle pWidgetHandle,
 
 #ifndef SUBTITLE_K_FEATURE
 bool vp_play_subtitle_set_color(subtitle_handle pWidgetHandle,
-                               video_subtitle_color_t nColor)
+                                video_subtitle_color_t nColor)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -561,7 +561,7 @@ bool vp_play_subtitle_set_color(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_get_color(subtitle_handle pWidgetHandle,
-                               video_subtitle_color_t *nColor)
+                                video_subtitle_color_t *nColor)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -576,7 +576,7 @@ bool vp_play_subtitle_get_color(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_set_bg_color(subtitle_handle pWidgetHandle,
-                                  video_subtitle_color_t nColor)
+                                   video_subtitle_color_t nColor)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -596,7 +596,7 @@ bool vp_play_subtitle_set_bg_color(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_get_bg_color(subtitle_handle pWidgetHandle,
-                                  video_subtitle_color_t *nColor)
+                                   video_subtitle_color_t *nColor)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -611,7 +611,7 @@ bool vp_play_subtitle_get_bg_color(subtitle_handle pWidgetHandle,
 }
 #else
 bool vp_play_subtitle_get_color(subtitle_handle pWidgetHandle,
-                               char **pColorHex)
+                                char **pColorHex)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -631,7 +631,7 @@ bool vp_play_subtitle_get_color(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_set_color(subtitle_handle pWidgetHandle,
-                               char *pColorHex)
+                                char *pColorHex)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -651,7 +651,7 @@ bool vp_play_subtitle_set_color(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_get_bg_color(subtitle_handle pWidgetHandle,
-                                  char **pColorHex)
+                                   char **pColorHex)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -671,7 +671,7 @@ bool vp_play_subtitle_get_bg_color(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_set_bg_color(subtitle_handle pWidgetHandle,
-                                  char *pColorHex)
+                                   char *pColorHex)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -692,7 +692,7 @@ bool vp_play_subtitle_set_bg_color(subtitle_handle pWidgetHandle,
 #endif
 
 bool vp_play_subtitle_set_text(subtitle_handle pWidgetHandle,
-                              const char *szText)
+                               const char *szText)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -712,7 +712,7 @@ bool vp_play_subtitle_set_text(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_get_text(subtitle_handle pWidgetHandle,
-                              char **szText)
+                               char **szText)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -727,7 +727,7 @@ bool vp_play_subtitle_get_text(subtitle_handle pWidgetHandle,
 
 #ifdef SUBTITLE_K_FEATURE
 bool vp_play_subtitle_set_alignment(subtitle_handle pWidgetHandle,
-                                   vp_subtitle_alignment_t nAlignment)
+                                    vp_subtitle_alignment_t nAlignment)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -748,7 +748,7 @@ bool vp_play_subtitle_set_alignment(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_get_alignment(subtitle_handle pWidgetHandle,
-                                   vp_subtitle_alignment_t *nAlignment)
+                                    vp_subtitle_alignment_t *nAlignment)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -763,7 +763,7 @@ bool vp_play_subtitle_get_alignment(subtitle_handle pWidgetHandle,
 }
 
 bool vp_play_subtitle_set_caption_win_color(subtitle_handle pWidgetHandle,
-               bool bShowCaption)
+        bool bShowCaption)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -775,8 +775,8 @@ bool vp_play_subtitle_set_caption_win_color(subtitle_handle pWidgetHandle,
        if (!bShowCaption) {
                VideoLogWarning("Hide caption window!");
                vp_play_util_set_object_color(_EDJ(pSubtitle->pLayout), 0, 0, 0,
-                                             0,
-                                             VP_SUBTITLE_SET_CAPTION_WINDOW_COLOR_ID);
+                                             0,
+                                             VP_SUBTITLE_SET_CAPTION_WINDOW_COLOR_ID);
                return TRUE;
        }
 
@@ -788,8 +788,8 @@ bool vp_play_subtitle_set_caption_win_color(subtitle_handle pWidgetHandle,
                ("pText is NULL or length is zero, need hide caption window!");
                pSubtitle->bShowCaptionWin = FALSE;
                vp_play_util_set_object_color(_EDJ(pSubtitle->pLayout), 0, 0, 0,
-                                             0,
-                                             VP_SUBTITLE_SET_CAPTION_WINDOW_COLOR_ID);
+                                             0,
+                                             VP_SUBTITLE_SET_CAPTION_WINDOW_COLOR_ID);
                if (pText) {
                        VP_FREE(pText);
                }
@@ -798,7 +798,7 @@ bool vp_play_subtitle_set_caption_win_color(subtitle_handle pWidgetHandle,
 
        char *pCaptionWinColorHex = NULL;
        if (!vp_play_preference_get_subtitle_caption_win_color_hex_key
-                       (&pCaptionWinColorHex)) {
+               (&pCaptionWinColorHex)) {
                VideoLogWarning
                ("vp_play_preference_get_subtitle_caption_win_color_hex_key failed");
        }
@@ -811,19 +811,19 @@ bool vp_play_subtitle_set_caption_win_color(subtitle_handle pWidgetHandle,
                int b = 0;
                int a = 0;
                vp_play_util_convert_hex_to_rgba(pCaptionWinColorHex, &r, &g, &b,
-                                                &a);
+                                                &a);
                vp_play_util_set_object_color(elm_layout_edje_get
-                                             (pSubtitle->pLayout), r, g, b, a,
-                                             VP_SUBTITLE_SET_CAPTION_WINDOW_COLOR_ID);
+                                             (pSubtitle->pLayout), r, g, b, a,
+                                             VP_SUBTITLE_SET_CAPTION_WINDOW_COLOR_ID);
        }
        VP_FREE(pText);
        return TRUE;
 }
 
 bool vp_play_subtitle_get_geometry(subtitle_handle pWidgetHandle,
-                                  bool bLandscape, Evas_Coord *x,
-                                  Evas_Coord *y, Evas_Coord *w,
-                                  Evas_Coord *h)
+                                   bool bLandscape, Evas_Coord *x,
+                                   Evas_Coord *y, Evas_Coord *w,
+                                   Evas_Coord *h)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -854,7 +854,7 @@ bool vp_play_subtitle_get_geometry(subtitle_handle pWidgetHandle,
 #endif
 
 bool vp_play_subtitle_get_size_formatted(subtitle_handle pWidgetHandle,
-               Evas_Coord *ww, Evas_Coord *hh)
+        Evas_Coord *ww, Evas_Coord *hh)
 {
        if (pWidgetHandle == NULL) {
                VideoLogError("pWidgetHandle is NULL");
@@ -868,7 +868,7 @@ bool vp_play_subtitle_get_size_formatted(subtitle_handle pWidgetHandle,
        }
 
        evas_object_textblock_size_formatted_get(pSubtitle->pTextBlock, ww,
-                       hh);
+               hh);
 
        return TRUE;
 }
index 13f013d..fad0e2a 100644 (file)
@@ -60,20 +60,20 @@ typedef struct _VolumePopupWidget {
 } VolumePopupWidget;
 
 static void _vp_play_volume_popup_destory_handle(VolumePopupWidget *
-               pVolumeWidget);
+        pVolumeWidget);
 static double _vp_play_volume_popup_get_mouse_pos_ratio(Evas_Object *
-               pObj,
-               bool bLandscape,
-               int nCurY);
+        pObj,
+        bool bLandscape,
+        int nCurY);
 static void _vp_play_volume_popup_set_value(VolumePopupWidget *
-               pVolumeWidget, int nValue);
+        pVolumeWidget, int nValue);
 static void _vp_play_volume_popup_create_timer(VolumePopupWidget *
-               pVolumeWidget);
+        pVolumeWidget);
 
 /* callback functions */
 static void __vp_volume_popup_mouse_down_cb(void *pUserData, Evas *e,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -86,17 +86,17 @@ static void __vp_volume_popup_mouse_down_cb(void *pUserData, Evas *e,
        }
 
        Evas_Event_Mouse_Down *pMouseDownEvent =
-               (Evas_Event_Mouse_Down *) pEvent;
+           (Evas_Event_Mouse_Down *) pEvent;
 
        double dRatio =
-               _vp_play_volume_popup_get_mouse_pos_ratio(pVolumeWidget->pLayout,
-                               pVolumeWidget->
-                               bLandscape,
-                               pMouseDownEvent->canvas.
-                               y);
+           _vp_play_volume_popup_get_mouse_pos_ratio(pVolumeWidget->pLayout,
+                   pVolumeWidget->
+                   bLandscape,
+                   pMouseDownEvent->canvas.
+                   y);
 
        int nCurVal =
-               pVolumeWidget->nMaxVal - (dRatio * pVolumeWidget->nMaxVal);
+           pVolumeWidget->nMaxVal - (dRatio * pVolumeWidget->nMaxVal);
 
        _vp_play_volume_popup_set_value(pVolumeWidget, nCurVal);
 
@@ -106,8 +106,8 @@ static void __vp_volume_popup_mouse_down_cb(void *pUserData, Evas *e,
 }
 
 static void __vp_volume_popup_mouse_up_cb(void *pUserData, Evas *e,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -122,14 +122,14 @@ static void __vp_volume_popup_mouse_up_cb(void *pUserData, Evas *e,
        }
 
        double dRatio =
-               _vp_play_volume_popup_get_mouse_pos_ratio(pVolumeWidget->pLayout,
-                               pVolumeWidget->
-                               bLandscape,
-                               pMouseUpEvent->canvas.
-                               y);
+           _vp_play_volume_popup_get_mouse_pos_ratio(pVolumeWidget->pLayout,
+                   pVolumeWidget->
+                   bLandscape,
+                   pMouseUpEvent->canvas.
+                   y);
 
        int nCurVal =
-               pVolumeWidget->nMaxVal - (dRatio * pVolumeWidget->nMaxVal);
+           pVolumeWidget->nMaxVal - (dRatio * pVolumeWidget->nMaxVal);
 
        _vp_play_volume_popup_set_value(pVolumeWidget, nCurVal);
        _vp_play_volume_popup_create_timer(pVolumeWidget);
@@ -138,8 +138,8 @@ static void __vp_volume_popup_mouse_up_cb(void *pUserData, Evas *e,
 }
 
 static void __vp_volume_popup_mouse_move_cb(void *pUserData, Evas *e,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -149,22 +149,22 @@ static void __vp_volume_popup_mouse_move_cb(void *pUserData, Evas *e,
        VolumePopupWidget *pVolumeWidget = (VolumePopupWidget *) pUserData;
 
        Evas_Event_Mouse_Move *pMouseMoveEvent =
-               (Evas_Event_Mouse_Move *) pEvent;
+           (Evas_Event_Mouse_Move *) pEvent;
 
        if (pVolumeWidget->bIsRealize == FALSE
-                       || pVolumeWidget->bMouseDown == FALSE) {
+               || pVolumeWidget->bMouseDown == FALSE) {
                return;
        }
 
        double dRatio =
-               _vp_play_volume_popup_get_mouse_pos_ratio(pVolumeWidget->pLayout,
-                               pVolumeWidget->
-                               bLandscape,
-                               pMouseMoveEvent->cur.
-                               canvas.y);
+           _vp_play_volume_popup_get_mouse_pos_ratio(pVolumeWidget->pLayout,
+                   pVolumeWidget->
+                   bLandscape,
+                   pMouseMoveEvent->cur.
+                   canvas.y);
 
        int nCurVal =
-               pVolumeWidget->nMaxVal - (dRatio * pVolumeWidget->nMaxVal);
+           pVolumeWidget->nMaxVal - (dRatio * pVolumeWidget->nMaxVal);
 
        if (nCurVal != pVolumeWidget->nCurVal) {
                _vp_play_volume_popup_set_value(pVolumeWidget, nCurVal);
@@ -184,7 +184,7 @@ static Eina_Bool __vp_volume_popup_hide_timer_cb(void *pUserData)
        VP_EVAS_TIMER_DEL(pVolumeWidget->pHideTimer);
 
        if (!vp_play_volume_popup_unrealize
-                       ((volume_popup_handle) pVolumeWidget)) {
+               ((volume_popup_handle) pVolumeWidget)) {
                VideoLogWarning("vp_play_volume_popup_unrealize is fail");
        }
 
@@ -195,7 +195,7 @@ static Eina_Bool __vp_volume_popup_hide_timer_cb(void *pUserData)
 
 /* internal functions */
 static void _vp_play_volume_popup_destory_handle(VolumePopupWidget *
-               pVolumeWidget)
+        pVolumeWidget)
 {
        if (pVolumeWidget == NULL) {
                VideoLogError("pVolumeWidget is NULL");
@@ -210,9 +210,9 @@ static void _vp_play_volume_popup_destory_handle(VolumePopupWidget *
 }
 
 static double _vp_play_volume_popup_get_mouse_pos_ratio(Evas_Object *
-               pObj,
-               bool bLandscape,
-               int nCurY)
+        pObj,
+        bool bLandscape,
+        int nCurY)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -246,7 +246,7 @@ static double _vp_play_volume_popup_get_mouse_pos_ratio(Evas_Object *
 
 
 static void _vp_play_volume_popup_set_widget_position(VolumePopupWidget *
-               pVolumeWidget)
+        pVolumeWidget)
 {
        if (pVolumeWidget == NULL) {
                VideoLogError("pVolumeWidget is NULL");
@@ -257,18 +257,18 @@ static void _vp_play_volume_popup_set_widget_position(VolumePopupWidget *
 
        if (bLandscape) {
                evas_object_move(pVolumeWidget->pLayout,
-                                VP_VOLUME_POPUP_LANDSCAPE_POS_X * VP_SCALE,
-                                VP_VOLUME_POPUP_LANDSCAPE_POS_Y * VP_SCALE);
+                                VP_VOLUME_POPUP_LANDSCAPE_POS_X * VP_SCALE,
+                                VP_VOLUME_POPUP_LANDSCAPE_POS_Y * VP_SCALE);
        } else {
                evas_object_move(pVolumeWidget->pLayout,
-                                VP_VOLUME_POPUP_PORTRAIT_POS_X * VP_SCALE,
-                                VP_VOLUME_POPUP_PORTRAIT_POS_Y * VP_SCALE);
+                                VP_VOLUME_POPUP_PORTRAIT_POS_X * VP_SCALE,
+                                VP_VOLUME_POPUP_PORTRAIT_POS_Y * VP_SCALE);
        }
 }
 
 
 static void _vp_play_volume_popup_update_value(VolumePopupWidget *
-               pVolumeWidget)
+        pVolumeWidget)
 {
        if (pVolumeWidget == NULL) {
                VideoLogError("pVolumeWidget is NULL");
@@ -279,28 +279,28 @@ static void _vp_play_volume_popup_update_value(VolumePopupWidget *
        char szPlayingTime[VP_VOLUME_POPUP_TEXT_MAX_LEN] = { 0, };
 
        snprintf(szPlayingTime, VP_VOLUME_POPUP_TEXT_MAX_LEN, "%d",
-                pVolumeWidget->nCurVal);
+                pVolumeWidget->nCurVal);
 
        nVolumeRatio =
-               ((double) pVolumeWidget->nCurVal /
-                (double) pVolumeWidget->nMaxVal);
+           ((double) pVolumeWidget->nCurVal /
+            (double) pVolumeWidget->nMaxVal);
 
        if (!edje_object_part_drag_value_set
-                       (_EDJ(pVolumeWidget->pLayout),
-                        VP_PLAY_SWALLOW_VOLUME_POPUP_DRAG_RECT, 0.0, nVolumeRatio)) {
+               (_EDJ(pVolumeWidget->pLayout),
+                VP_PLAY_SWALLOW_VOLUME_POPUP_DRAG_RECT, 0.0, nVolumeRatio)) {
                VideoLogWarning("Drag value set fail : %lf", nVolumeRatio);
        }
 
        elm_object_part_text_set(pVolumeWidget->pLayout,
-                                VP_PLAY_SWALLOW_VOLUME_POPUP_VALUE_LABEL,
-                                szPlayingTime);
+                                VP_PLAY_SWALLOW_VOLUME_POPUP_VALUE_LABEL,
+                                szPlayingTime);
 
        if (pVolumeWidget->nCurVal == 0) {
                edje_object_signal_emit(_EDJ(pVolumeWidget->pLayout), "set,mute",
-                                       "volume.popup.icon");
+                                       "volume.popup.icon");
        } else {
                edje_object_signal_emit(_EDJ(pVolumeWidget->pLayout),
-                                       "set,volume", "volume.popup.icon");
+                                       "set,volume", "volume.popup.icon");
        }
 }
 
@@ -325,7 +325,7 @@ static Eina_Bool __vp_volume_popup_device_timer_cb(void *pUserData)
 }
 
 static void _vp_play_volume_popup_set_value(VolumePopupWidget *
-               pVolumeWidget, int nValue)
+        pVolumeWidget, int nValue)
 {
        if (pVolumeWidget == NULL) {
                VideoLogError("pParent is NULL");
@@ -338,14 +338,14 @@ static void _vp_play_volume_popup_set_value(VolumePopupWidget *
 
        if (pVolumeWidget->pDeviceTimer == NULL) {
                pVolumeWidget->pDeviceTimer = ecore_timer_add(0.1,
-                                             __vp_volume_popup_device_timer_cb,
-                                             (void *)
-                                             pVolumeWidget);
+                                             __vp_volume_popup_device_timer_cb,
+                                             (void *)
+                                             pVolumeWidget);
        }
 }
 
 static void _vp_play_volume_popup_create_timer(VolumePopupWidget *
-               pVolumeWidget)
+        pVolumeWidget)
 {
        if (pVolumeWidget == NULL) {
                VideoLogError("pParent is NULL");
@@ -355,13 +355,13 @@ static void _vp_play_volume_popup_create_timer(VolumePopupWidget *
        VP_EVAS_TIMER_DEL(pVolumeWidget->pHideTimer);
 
        pVolumeWidget->pHideTimer =
-               ecore_timer_add(VP_VOLUME_POPUP_HIDE_LAYOUT_TIMER_INTERVAL,
-                               __vp_volume_popup_hide_timer_cb,
-                               (void *) pVolumeWidget);
+           ecore_timer_add(VP_VOLUME_POPUP_HIDE_LAYOUT_TIMER_INTERVAL,
+                           __vp_volume_popup_hide_timer_cb,
+                           (void *) pVolumeWidget);
 }
 
 static Evas_Object *_vp_play_volume_popup_create_layout(Evas_Object *
-               pParent)
+        pParent)
 {
        if (!pParent) {
                VideoLogError("Parent is NULL");
@@ -378,8 +378,8 @@ static Evas_Object *_vp_play_volume_popup_create_layout(Evas_Object *
        }
 
        bRet =
-               elm_layout_file_set(pObj, VP_PLAY_VOLUME_POPUP_EDJ_PATH,
-                                   VP_PLAY_EDJ_GROUP_VOLUME_POPUP);
+           elm_layout_file_set(pObj, VP_PLAY_VOLUME_POPUP_EDJ_PATH,
+                               VP_PLAY_EDJ_GROUP_VOLUME_POPUP);
        if (bRet != EINA_TRUE) {
                VideoLogError("elm_layout_file_set fail");
                return NULL;
@@ -392,7 +392,7 @@ static Evas_Object *_vp_play_volume_popup_create_layout(Evas_Object *
 
 
 static bool _vp_play_volume_popup_init_layout(VolumePopupWidget *
-               pVolumeWidget)
+        pVolumeWidget)
 {
        if (pVolumeWidget == NULL) {
                VideoLogError("pVolumeWidget is NULL");
@@ -407,19 +407,19 @@ static bool _vp_play_volume_popup_init_layout(VolumePopupWidget *
                return FALSE;
        }
        evas_object_event_callback_add(pVolumeWidget->pLayout,
-                                      EVAS_CALLBACK_MOUSE_DOWN,
-                                      __vp_volume_popup_mouse_down_cb,
-                                      (void *) pVolumeWidget);
+                                      EVAS_CALLBACK_MOUSE_DOWN,
+                                      __vp_volume_popup_mouse_down_cb,
+                                      (void *) pVolumeWidget);
 
        evas_object_event_callback_add(pVolumeWidget->pLayout,
-                                      EVAS_CALLBACK_MOUSE_UP,
-                                      __vp_volume_popup_mouse_up_cb,
-                                      (void *) pVolumeWidget);
+                                      EVAS_CALLBACK_MOUSE_UP,
+                                      __vp_volume_popup_mouse_up_cb,
+                                      (void *) pVolumeWidget);
 
        evas_object_event_callback_add(pVolumeWidget->pLayout,
-                                      EVAS_CALLBACK_MOUSE_MOVE,
-                                      __vp_volume_popup_mouse_move_cb,
-                                      (void *) pVolumeWidget);
+                                      EVAS_CALLBACK_MOUSE_MOVE,
+                                      __vp_volume_popup_mouse_move_cb,
+                                      (void *) pVolumeWidget);
 
        return TRUE;
 }
@@ -477,7 +477,7 @@ void vp_play_volume_popup_destroy(volume_popup_handle pVolumeHandle)
        }
 
        VolumePopupWidget *pVolumeWidget =
-               (VolumePopupWidget *) pVolumeHandle;
+           (VolumePopupWidget *) pVolumeHandle;
 
        _vp_play_volume_popup_destory_handle(pVolumeWidget);
 }
@@ -490,14 +490,14 @@ bool vp_play_volume_popup_realize(volume_popup_handle pVolumeHandle)
        }
 
        VolumePopupWidget *pVolumeWidget =
-               (VolumePopupWidget *) pVolumeHandle;
+           (VolumePopupWidget *) pVolumeHandle;
 
        pVolumeWidget->bIsRealize = TRUE;
 
        _vp_play_volume_popup_set_widget_position(pVolumeWidget);
 
        _vp_play_volume_popup_set_value(pVolumeWidget,
-                                       pVolumeWidget->nCurVal);
+                                       pVolumeWidget->nCurVal);
 
        evas_object_show(pVolumeWidget->pLayout);
        _vp_play_volume_popup_create_timer(pVolumeWidget);
@@ -513,7 +513,7 @@ bool vp_play_volume_popup_unrealize(volume_popup_handle pVolumeHandle)
        }
 
        VolumePopupWidget *pVolumeWidget =
-               (VolumePopupWidget *) pVolumeHandle;
+           (VolumePopupWidget *) pVolumeHandle;
 
        pVolumeWidget->bIsRealize = FALSE;
 
@@ -523,8 +523,8 @@ bool vp_play_volume_popup_unrealize(volume_popup_handle pVolumeHandle)
 }
 
 bool vp_play_volume_popup_set_landscape_mode(volume_popup_handle
-               pVolumeHandle,
-               bool bLandscape)
+        pVolumeHandle,
+        bool bLandscape)
 {
        if (pVolumeHandle == NULL) {
                VideoLogError("pParent is NULL");
@@ -532,7 +532,7 @@ bool vp_play_volume_popup_set_landscape_mode(volume_popup_handle
        }
 
        VolumePopupWidget *pVolumeWidget =
-               (VolumePopupWidget *) pVolumeHandle;
+           (VolumePopupWidget *) pVolumeHandle;
 
        pVolumeWidget->bLandscape = bLandscape;
 
@@ -543,7 +543,7 @@ bool vp_play_volume_popup_set_landscape_mode(volume_popup_handle
 }
 
 bool vp_play_volume_popup_is_realize(volume_popup_handle pVolumeHandle,
-                                    bool *bIsRealize)
+                                     bool *bIsRealize)
 {
        if (pVolumeHandle == NULL) {
                VideoLogError("pParent is NULL");
@@ -551,7 +551,7 @@ bool vp_play_volume_popup_is_realize(volume_popup_handle pVolumeHandle,
        }
 
        VolumePopupWidget *pVolumeWidget =
-               (VolumePopupWidget *) pVolumeHandle;
+           (VolumePopupWidget *) pVolumeHandle;
 
        *bIsRealize = pVolumeWidget->bIsRealize;
 
@@ -560,7 +560,7 @@ bool vp_play_volume_popup_is_realize(volume_popup_handle pVolumeHandle,
 
 
 bool vp_play_volume_popup_set_value(volume_popup_handle pVolumeHandle,
-                                   int nCurVal)
+                                    int nCurVal)
 {
        if (pVolumeHandle == NULL) {
                VideoLogError("pParent is NULL");
@@ -568,7 +568,7 @@ bool vp_play_volume_popup_set_value(volume_popup_handle pVolumeHandle,
        }
 
        VolumePopupWidget *pVolumeWidget =
-               (VolumePopupWidget *) pVolumeHandle;
+           (VolumePopupWidget *) pVolumeHandle;
 
        _vp_play_volume_popup_create_timer(pVolumeWidget);
 
@@ -585,7 +585,7 @@ bool vp_play_volume_popup_set_value(volume_popup_handle pVolumeHandle,
        }
 
        _vp_play_volume_popup_set_value(pVolumeWidget,
-                                       pVolumeWidget->nCurVal);
+                                       pVolumeWidget->nCurVal);
 
        return TRUE;
 }
@@ -621,7 +621,7 @@ bool vp_play_volume_popup_get_max_value(int *nMaxVal)
 
 
 bool vp_play_volume_popup_is_mute(volume_popup_handle pVolumeHandle,
-                                 bool *bIsMute)
+                                  bool *bIsMute)
 {
        if (pVolumeHandle == NULL) {
                VideoLogError("pParent is NULL");
@@ -629,7 +629,7 @@ bool vp_play_volume_popup_is_mute(volume_popup_handle pVolumeHandle,
        }
 
        VolumePopupWidget *pVolumeWidget =
-               (VolumePopupWidget *) pVolumeHandle;
+           (VolumePopupWidget *) pVolumeHandle;
 
        if (pVolumeWidget->nCurVal == 0) {
                *bIsMute = TRUE;
index 505cf20..940f2e2 100644 (file)
@@ -72,17 +72,17 @@ typedef struct _VolumeWidget {
 
 static void _vp_play_volume_destory_handle(VolumeWidget *pVolumeWidget);
 static double _vp_play_volume_get_mouse_pos_ratio(Evas_Object *pObj,
-               bool bLandscape,
-               int nCurY,
-               Evas_Object *pWin);
+        bool bLandscape,
+        int nCurY,
+        Evas_Object *pWin);
 static bool _vp_play_volume_set_value(VolumeWidget *pVolumeWidget,
-                                     int nValue);
+                                      int nValue);
 static void _vp_play_volume_create_timer(VolumeWidget *pVolumeWidget);
 
 /* callback functions */
 static void __vp_volume_focus_key_down_cb(void *pUserData, Evas *e,
-               Evas_Object *pObj,
-               void *pEvent)
+        Evas_Object *pObj,
+        void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -93,10 +93,12 @@ static void __vp_volume_focus_key_down_cb(void *pUserData, Evas *e,
 
        Evas_Event_Key_Down *ev = pEvent;
 
-       if (!ev)
+       if (!ev) {
                return;
-       if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
+       }
+       if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) {
                return;
+       }
 
        VideoLogInfo("KEY: %s", ev->keyname);
 
@@ -108,7 +110,7 @@ static void __vp_volume_focus_key_down_cb(void *pUserData, Evas *e,
 }
 
 static void __vp_volume_mouse_down_cb(void *pUserData, Evas *e,
-                                     Evas_Object *pObj, void *pEvent)
+                                      Evas_Object *pObj, void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -121,16 +123,16 @@ static void __vp_volume_mouse_down_cb(void *pUserData, Evas *e,
        }
 
        Evas_Event_Mouse_Down *pMouseDownEvent =
-               (Evas_Event_Mouse_Down *) pEvent;
+           (Evas_Event_Mouse_Down *) pEvent;
 
        double dRatio =
-               _vp_play_volume_get_mouse_pos_ratio(pVolumeWidget->pLayout,
-                               pVolumeWidget->bLandscape,
-                               pMouseDownEvent->canvas.y,
-                               pVolumeWidget->pWin);
+           _vp_play_volume_get_mouse_pos_ratio(pVolumeWidget->pLayout,
+                                               pVolumeWidget->bLandscape,
+                                               pMouseDownEvent->canvas.y,
+                                               pVolumeWidget->pWin);
 
        int nCurVal =
-               pVolumeWidget->nMaxVal - (dRatio * pVolumeWidget->nMaxVal);
+           pVolumeWidget->nMaxVal - (dRatio * pVolumeWidget->nMaxVal);
 
        _vp_play_volume_set_value(pVolumeWidget, nCurVal);
 
@@ -140,7 +142,7 @@ static void __vp_volume_mouse_down_cb(void *pUserData, Evas *e,
 }
 
 static void __vp_volume_mouse_up_cb(void *pUserData, Evas *e,
-                                   Evas_Object *pObj, void *pEvent)
+                                    Evas_Object *pObj, void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -155,13 +157,13 @@ static void __vp_volume_mouse_up_cb(void *pUserData, Evas *e,
        }
 
        double dRatio =
-               _vp_play_volume_get_mouse_pos_ratio(pVolumeWidget->pLayout,
-                               pVolumeWidget->bLandscape,
-                               pMouseUpEvent->canvas.y,
-                               pVolumeWidget->pWin);
+           _vp_play_volume_get_mouse_pos_ratio(pVolumeWidget->pLayout,
+                                               pVolumeWidget->bLandscape,
+                                               pMouseUpEvent->canvas.y,
+                                               pVolumeWidget->pWin);
 
        int nCurVal =
-               pVolumeWidget->nMaxVal - (dRatio * pVolumeWidget->nMaxVal);
+           pVolumeWidget->nMaxVal - (dRatio * pVolumeWidget->nMaxVal);
 
        _vp_play_volume_set_value(pVolumeWidget, nCurVal);
        _vp_play_volume_create_timer(pVolumeWidget);
@@ -170,7 +172,7 @@ static void __vp_volume_mouse_up_cb(void *pUserData, Evas *e,
 }
 
 static void __vp_volume_mouse_move_cb(void *pUserData, Evas *e,
-                                     Evas_Object *pObj, void *pEvent)
+                                      Evas_Object *pObj, void *pEvent)
 {
        if (!pUserData) {
                VideoLogError("pUserData is NULL");
@@ -180,21 +182,21 @@ static void __vp_volume_mouse_move_cb(void *pUserData, Evas *e,
        VolumeWidget *pVolumeWidget = (VolumeWidget *) pUserData;
 
        Evas_Event_Mouse_Move *pMouseMoveEvent =
-               (Evas_Event_Mouse_Move *) pEvent;
+           (Evas_Event_Mouse_Move *) pEvent;
 
        if (pVolumeWidget->bIsRealize == FALSE
-                       || pVolumeWidget->bMouseDown == FALSE) {
+               || pVolumeWidget->bMouseDown == FALSE) {
                return;
        }
 
        double dRatio =
-               _vp_play_volume_get_mouse_pos_ratio(pVolumeWidget->pLayout,
-                               pVolumeWidget->bLandscape,
-                               pMouseMoveEvent->cur.canvas.y,
-                               pVolumeWidget->pWin);
+           _vp_play_volume_get_mouse_pos_ratio(pVolumeWidget->pLayout,
+                                               pVolumeWidget->bLandscape,
+                                               pMouseMoveEvent->cur.canvas.y,
+                                               pVolumeWidget->pWin);
 
        int nCurVal =
-               pVolumeWidget->nMaxVal - (dRatio * pVolumeWidget->nMaxVal);
+           pVolumeWidget->nMaxVal - (dRatio * pVolumeWidget->nMaxVal);
 
        if (nCurVal != pVolumeWidget->nCurVal) {
                _vp_play_volume_set_value(pVolumeWidget, nCurVal);
@@ -241,9 +243,9 @@ static void _vp_play_volume_destory_handle(VolumeWidget *pVolumeWidget)
 }
 
 static double _vp_play_volume_get_mouse_pos_ratio(Evas_Object *pObj,
-               bool bLandscape,
-               int nCurY,
-               Evas_Object *pWin)
+        bool bLandscape,
+        int nCurY,
+        Evas_Object *pWin)
 {
        if (pObj == NULL) {
                VideoLogError("pObj is NULL");
@@ -261,35 +263,33 @@ static double _vp_play_volume_get_mouse_pos_ratio(Evas_Object *pObj,
                if (bLandscape) {
                        nHeight = VP_VOLUME_LANDSCAPE_HEIGHT;
                        nCurrent =
-                               nCurY - VP_VOLUME_LANDSCAPE_POS_Y - VP_VOLUME_TOP_PADDING_H +
-                               10;
+                           nCurY - VP_VOLUME_LANDSCAPE_POS_Y - VP_VOLUME_TOP_PADDING_H +
+                           10;
                } else {
                        nHeight = 350;
                        nCurrent =
-                               nCurY - VP_VOLUME_PORTRAIT_POS_Y - VP_VOLUME_TOP_PADDING_H -
-                               310;
+                           nCurY - VP_VOLUME_PORTRAIT_POS_Y - VP_VOLUME_TOP_PADDING_H -
+                           310;
                }
-       }
-       else if ((elm_config_scale_get() - 1.8) == 0.0) {
+       } else if ((elm_config_scale_get() - 1.8) == 0.0) {
                if (bLandscape) {
                        nHeight = 125;
                        nCurrent =
-                               nCurY - VP_VOLUME_LANDSCAPE_POS_Y - VP_VOLUME_TOP_PADDING_H + 70;
+                           nCurY - VP_VOLUME_LANDSCAPE_POS_Y - VP_VOLUME_TOP_PADDING_H + 70;
                } else {
                        nHeight = 255;
                        nCurrent =
-                               nCurY - VP_VOLUME_PORTRAIT_POS_Y - VP_VOLUME_TOP_PADDING_H - 42;
+                           nCurY - VP_VOLUME_PORTRAIT_POS_Y - VP_VOLUME_TOP_PADDING_H - 42;
                }
-       }
-       else {
+       } else {
                if (bLandscape) {
                        nHeight = 145;
                        nCurrent =
-                               nCurY - VP_VOLUME_LANDSCAPE_POS_Y - VP_VOLUME_TOP_PADDING_H + 60;
+                           nCurY - VP_VOLUME_LANDSCAPE_POS_Y - VP_VOLUME_TOP_PADDING_H + 60;
                } else {
                        nHeight = 300;
                        nCurrent =
-                               nCurY - VP_VOLUME_PORTRAIT_POS_Y - VP_VOLUME_TOP_PADDING_H - 56;
+                           nCurY - VP_VOLUME_PORTRAIT_POS_Y - VP_VOLUME_TOP_PADDING_H - 56;
                }
        }
 
@@ -307,8 +307,8 @@ static double _vp_play_volume_get_mouse_pos_ratio(Evas_Object *pObj,
 
 
 static void _vp_play_volume_set_widget_position(VolumeWidget *
-               pVolumeWidget,
-               Evas_Object *pWin)
+        pVolumeWidget,
+        Evas_Object *pWin)
 {
        if (pVolumeWidget == NULL) {
                VideoLogError("pVolumeWidget is NULL");
@@ -322,41 +322,39 @@ static void _vp_play_volume_set_widget_position(VolumeWidget *
 
        if ((elm_config_scale_get() - 2.6) == 0.0) {
                if (bLandscape) {
-               elm_object_signal_emit(pVolumeWidget->pLayout,
-                                      VP_NORMAL_SIGNAL_VOLUME_LANDSCAPE_MODE,
-                                      "*");
-               evas_object_move(pVolumeWidget->pLayout, h - 80, w / 10);
-       } else {
-               elm_object_signal_emit(pVolumeWidget->pLayout,
-                                      VP_NORMAL_SIGNAL_VOLUME_PORTRAIT_MODE,
-                                      "*");
-               evas_object_move(pVolumeWidget->pLayout, w - w / 9, (5 * h) / 16);
-       }
-       }
-       else if ((elm_config_scale_get() - 1.8) == 0.0) {
+                       elm_object_signal_emit(pVolumeWidget->pLayout,
+                                              VP_NORMAL_SIGNAL_VOLUME_LANDSCAPE_MODE,
+                                              "*");
+                       evas_object_move(pVolumeWidget->pLayout, h - 80, w / 10);
+               } else {
+                       elm_object_signal_emit(pVolumeWidget->pLayout,
+                                              VP_NORMAL_SIGNAL_VOLUME_PORTRAIT_MODE,
+                                              "*");
+                       evas_object_move(pVolumeWidget->pLayout, w - w / 9, (5 * h) / 16);
+               }
+       } else if ((elm_config_scale_get() - 1.8) == 0.0) {
                if (bLandscape) {
-               elm_object_signal_emit(pVolumeWidget->pLayout,
-                                      VP_NORMAL_SIGNAL_VOLUME_LANDSCAPE_MODE,
-                                      "*");
-               evas_object_move(pVolumeWidget->pLayout, h - h / 16, w / 16);
-       } else {
-               elm_object_signal_emit(pVolumeWidget->pLayout,
-                                      VP_NORMAL_SIGNAL_VOLUME_PORTRAIT_MODE,
-                                      "*");
-               evas_object_move(pVolumeWidget->pLayout, w - w / 10, h / 5);
+                       elm_object_signal_emit(pVolumeWidget->pLayout,
+                                              VP_NORMAL_SIGNAL_VOLUME_LANDSCAPE_MODE,
+                                              "*");
+                       evas_object_move(pVolumeWidget->pLayout, h - h / 16, w / 16);
+               } else {
+                       elm_object_signal_emit(pVolumeWidget->pLayout,
+                                              VP_NORMAL_SIGNAL_VOLUME_PORTRAIT_MODE,
+                                              "*");
+                       evas_object_move(pVolumeWidget->pLayout, w - w / 10, h / 5);
                }
-       }
-       else {
+       } else {
                if (bLandscape) {
-               elm_object_signal_emit(pVolumeWidget->pLayout,
-                                      VP_NORMAL_SIGNAL_VOLUME_LANDSCAPE_MODE,
-                                      "*");
-               evas_object_move(pVolumeWidget->pLayout, h - h / 16, w / 16);
+                       elm_object_signal_emit(pVolumeWidget->pLayout,
+                                              VP_NORMAL_SIGNAL_VOLUME_LANDSCAPE_MODE,
+                                              "*");
+                       evas_object_move(pVolumeWidget->pLayout, h - h / 16, w / 16);
                } else {
-               elm_object_signal_emit(pVolumeWidget->pLayout,
-                                      VP_NORMAL_SIGNAL_VOLUME_PORTRAIT_MODE,
-                                      "*");
-               evas_object_move(pVolumeWidget->pLayout, w - w / 10, h / 5);
+                       elm_object_signal_emit(pVolumeWidget->pLayout,
+                                              VP_NORMAL_SIGNAL_VOLUME_PORTRAIT_MODE,
+                                              "*");
+                       evas_object_move(pVolumeWidget->pLayout, w - w / 10, h / 5);
                }
        }
 }
@@ -373,21 +371,21 @@ static void _vp_play_volume_update_value(VolumeWidget *pVolumeWidget)
        char szPlayingTime[VP_VOLUME_TEXT_MAX_LEN] = { 0, };
 
        snprintf(szPlayingTime, VP_VOLUME_TEXT_MAX_LEN, "%d",
-                pVolumeWidget->nCurVal);
+                pVolumeWidget->nCurVal);
 
        nVolumeRatio =
-               ((double) pVolumeWidget->nCurVal /
-                (double) pVolumeWidget->nMaxVal);
+           ((double) pVolumeWidget->nCurVal /
+            (double) pVolumeWidget->nMaxVal);
 
        if (!edje_object_part_drag_value_set
-                       (_EDJ(pVolumeWidget->pLayout), VP_PLAY_SWALLOW_VOLUME_DRAG_RECT,
-                        0.0, nVolumeRatio)) {
+               (_EDJ(pVolumeWidget->pLayout), VP_PLAY_SWALLOW_VOLUME_DRAG_RECT,
+                0.0, nVolumeRatio)) {
                VideoLogWarning("Drag value set fail : %lf", nVolumeRatio);
        }
 
        elm_object_part_text_set(pVolumeWidget->pLayout,
-                                VP_PLAY_SWALLOW_VOLUME_VALUE_LABEL,
-                                szPlayingTime);
+                                VP_PLAY_SWALLOW_VOLUME_VALUE_LABEL,
+                                szPlayingTime);
 }
 
 static Eina_Bool __vp_volume_device_timer_cb(void *pUserData)
@@ -414,7 +412,7 @@ static Eina_Bool __vp_volume_device_timer_cb(void *pUserData)
                _vp_play_volume_update_value(pVolumeWidget);
                if (pVolumeWidget->pChangeVolFunc) {
                        pVolumeWidget->pChangeVolFunc(pVolumeWidget->nCurVal,
-                                                     pVolumeWidget->pUserData);
+                                                     pVolumeWidget->pUserData);
                }
 
                VideoLogWarning
@@ -426,7 +424,7 @@ static Eina_Bool __vp_volume_device_timer_cb(void *pUserData)
 }
 
 static bool _vp_play_volume_set_value(VolumeWidget *pVolumeWidget,
-                                     int nValue)
+                                      int nValue)
 {
        if (pVolumeWidget == NULL) {
                VideoLogError("pParent is NULL");
@@ -434,18 +432,20 @@ static bool _vp_play_volume_set_value(VolumeWidget *pVolumeWidget,
        }
 
        pVolumeWidget->nTmpVal = pVolumeWidget->nCurVal;
-       if (nValue > 0)
+       if (nValue > 0) {
                pVolumeWidget->nMuteVal = 0;
+       }
 
        int nMaxValue = 0;
-       if (vp_sound_get_max_volume(&nMaxValue) && nValue <= nMaxValue)
+       if (vp_sound_get_max_volume(&nMaxValue) && nValue <= nMaxValue) {
                pVolumeWidget->nTmpVal = nValue;
+       }
 
        if (pVolumeWidget->pDeviceTimer == NULL) {
                pVolumeWidget->pDeviceTimer = ecore_timer_add(0.1,
-                                             __vp_volume_device_timer_cb,
-                                             (void *)
-                                             pVolumeWidget);
+                                             __vp_volume_device_timer_cb,
+                                             (void *)
+                                             pVolumeWidget);
        }
 
        return TRUE;
@@ -461,9 +461,9 @@ static void _vp_play_volume_create_timer(VolumeWidget *pVolumeWidget)
        VP_EVAS_TIMER_DEL(pVolumeWidget->pHideTimer);
 
        pVolumeWidget->pHideTimer =
-               ecore_timer_add(VP_VOLUME_HIDE_LAYOUT_TIMER_INTERVAL,
-                               __vp_volume_hide_timer_cb,
-                               (void *) pVolumeWidget);
+           ecore_timer_add(VP_VOLUME_HIDE_LAYOUT_TIMER_INTERVAL,
+                           __vp_volume_hide_timer_cb,
+                           (void *) pVolumeWidget);
 }
 
 static Evas_Object *_vp_play_volume_create_layout(Evas_Object *pParent)
@@ -483,8 +483,8 @@ static Evas_Object *_vp_play_volume_create_layout(Evas_Object *pParent)
        }
 
        bRet =
-               elm_layout_file_set(pObj, VP_PLAY_VOLUME_EDJ_PATH,
-                                   VP_PLAY_EDJ_GROUP_VOLUME);
+           elm_layout_file_set(pObj, VP_PLAY_VOLUME_EDJ_PATH,
+                               VP_PLAY_EDJ_GROUP_VOLUME);
        if (bRet != EINA_TRUE) {
                VideoLogError("elm_layout_file_set fail");
                return NULL;
@@ -511,8 +511,8 @@ static bool _vp_play_volume_init_layout(VolumeWidget *pVolumeWidget)
                return FALSE;
        }
        pVolumeWidget->pFocusPoint =
-               vp_button_create(pVolumeWidget->pLayout, "focus", NULL, NULL,
-                                NULL, NULL, (void *) pVolumeWidget);
+           vp_button_create(pVolumeWidget->pLayout, "focus", NULL, NULL,
+                            NULL, NULL, (void *) pVolumeWidget);
        if (!pVolumeWidget->pFocusPoint) {
                VideoLogError("elm_button_add is fail");
                return FALSE;
@@ -520,16 +520,16 @@ static bool _vp_play_volume_init_layout(VolumeWidget *pVolumeWidget)
 
        elm_object_focus_allow_set(pVolumeWidget->pFocusPoint, EINA_FALSE);
        elm_object_part_content_set(pVolumeWidget->pLayout,
-                                   "pv.volume.point.focus",
-                                   pVolumeWidget->pFocusPoint);
+                                   "pv.volume.point.focus",
+                                   pVolumeWidget->pFocusPoint);
 
        return TRUE;
 }
 
 /* external functions */
 volume_handle vp_play_volume_create(Evas_Object *pParent,
-                                   void *pPlayerHandle,
-                                   NormalVolumeChangeCbFunc pFunc)
+                                    void *pPlayerHandle,
+                                    NormalVolumeChangeCbFunc pFunc)
 {
        if (pParent == NULL) {
                VideoLogError("pParent is NULL");
@@ -588,12 +588,12 @@ void vp_play_volume_destroy(volume_handle pVolumeHandle)
        VolumeWidget *pVolumeWidget = (VolumeWidget *) pVolumeHandle;
 
        vp_play_volume_unset_mouse_callbacks(pVolumeWidget,
-                                            pVolumeWidget->pWin);
+                                            pVolumeWidget->pWin);
        _vp_play_volume_destory_handle(pVolumeWidget);
 }
 
 bool vp_play_volume_realize(volume_handle pVolumeHandle,
-                           Evas_Object *pWin)
+                            Evas_Object *pWin)
 {
        VideoLogInfo("");
        if (pVolumeHandle == NULL) {
@@ -634,8 +634,8 @@ bool vp_play_volume_unrealize(volume_handle pVolumeHandle)
 }
 
 bool vp_play_volume_set_landscape_mode(volume_handle pVolumeHandle,
-                                      bool bLandscape,
-                                      Evas_Object *pWin)
+                                       bool bLandscape,
+                                       Evas_Object *pWin)
 {
        if (pVolumeHandle == NULL) {
                VideoLogError("pVolumeHandle is NULL");
@@ -653,7 +653,7 @@ bool vp_play_volume_set_landscape_mode(volume_handle pVolumeHandle,
 }
 
 bool vp_play_volume_set_user_data(volume_handle pVolumeHandle,
-                                 void *pUserData)
+                                  void *pUserData)
 {
        if (pVolumeHandle == NULL) {
                VideoLogError("pVolumeHandle is NULL");
@@ -668,7 +668,7 @@ bool vp_play_volume_set_user_data(volume_handle pVolumeHandle,
 }
 
 bool vp_play_volume_is_realize(volume_handle pVolumeHandle,
-                              bool *bIsRealize)
+                               bool *bIsRealize)
 {
        if (pVolumeHandle == NULL) {
                VideoLogError("pVolumeHandle is NULL");
@@ -870,8 +870,9 @@ bool vp_play_volume_set_mute_value(volume_handle pVolumeHandle)
 
        VolumeWidget *pVolumeWidget = (VolumeWidget *) pVolumeHandle;
 
-       if (pVolumeWidget->nMuteVal == 0)
+       if (pVolumeWidget->nMuteVal == 0) {
                pVolumeWidget->nMuteVal = pVolumeWidget->nCurVal;
+       }
 
        return TRUE;
 }
@@ -890,24 +891,24 @@ bool vp_play_volume_set_focus_in(volume_handle pVolumeHandle)
        elm_object_focus_set(pVolumeWidget->pFocusPoint, EINA_TRUE);
 
        elm_object_focus_next_object_set(pVolumeWidget->pFocusPoint,
-                                        pVolumeWidget->pFocusPoint,
-                                        ELM_FOCUS_UP);
+                                        pVolumeWidget->pFocusPoint,
+                                        ELM_FOCUS_UP);
        elm_object_focus_next_object_set(pVolumeWidget->pFocusPoint,
-                                        pVolumeWidget->pFocusPoint,
-                                        ELM_FOCUS_DOWN);
+                                        pVolumeWidget->pFocusPoint,
+                                        ELM_FOCUS_DOWN);
 
        evas_object_event_callback_del(pVolumeWidget->pFocusPoint,
-                                      EVAS_CALLBACK_KEY_DOWN,
-                                      __vp_volume_focus_key_down_cb);
+                                      EVAS_CALLBACK_KEY_DOWN,
+                                      __vp_volume_focus_key_down_cb);
        evas_object_event_callback_add(pVolumeWidget->pFocusPoint,
-                                      EVAS_CALLBACK_KEY_DOWN,
-                                      __vp_volume_focus_key_down_cb,
-                                      (void *) pVolumeWidget);
+                                      EVAS_CALLBACK_KEY_DOWN,
+                                      __vp_volume_focus_key_down_cb,
+                                      (void *) pVolumeWidget);
        return TRUE;
 }
 
 bool vp_play_volume_set_mouse_callbacks(volume_handle pVolumeHandle,
-                                       Evas_Object *pWin)
+                                        Evas_Object *pWin)
 {
        if (pVolumeHandle == NULL) {
                VideoLogError("pVolumeHandle is NULL");
@@ -918,24 +919,24 @@ bool vp_play_volume_set_mouse_callbacks(volume_handle pVolumeHandle,
        pVolumeWidget->pWin = pWin;
 
        evas_object_event_callback_add(pVolumeWidget->pLayout,
-                                      EVAS_CALLBACK_MOUSE_DOWN,
-                                      __vp_volume_mouse_down_cb,
-                                      (void *) pVolumeWidget);
+                                      EVAS_CALLBACK_MOUSE_DOWN,
+                                      __vp_volume_mouse_down_cb,
+                                      (void *) pVolumeWidget);
 
        evas_object_event_callback_add(pVolumeWidget->pLayout,
-                                      EVAS_CALLBACK_MOUSE_UP,
-                                      __vp_volume_mouse_up_cb,
-                                      (void *) pVolumeWidget);
+                                      EVAS_CALLBACK_MOUSE_UP,
+                                      __vp_volume_mouse_up_cb,
+                                      (void *) pVolumeWidget);
 
        evas_object_event_callback_add(pVolumeWidget->pLayout,
-                                      EVAS_CALLBACK_MOUSE_MOVE,
-                                      __vp_volume_mouse_move_cb,
-                                      (void *) pVolumeWidget);
+                                      EVAS_CALLBACK_MOUSE_MOVE,
+                                      __vp_volume_mouse_move_cb,
+                                      (void *) pVolumeWidget);
        return TRUE;
 }
 
 bool vp_play_volume_unset_mouse_callbacks(volume_handle pVolumeHandle,
-               Evas_Object *pWin)
+        Evas_Object *pWin)
 {
        if (pVolumeHandle == NULL) {
                VideoLogError("pVolumeHandle is NULL");
@@ -946,15 +947,15 @@ bool vp_play_volume_unset_mouse_callbacks(volume_handle pVolumeHandle,
        pVolumeWidget->pWin = pWin;
 
        evas_object_event_callback_del(pVolumeWidget->pLayout,
-                                      EVAS_CALLBACK_MOUSE_DOWN,
-                                      __vp_volume_mouse_down_cb);
+                                      EVAS_CALLBACK_MOUSE_DOWN,
+                                      __vp_volume_mouse_down_cb);
 
        evas_object_event_callback_del(pVolumeWidget->pLayout,
-                                      EVAS_CALLBACK_MOUSE_UP,
-                                      __vp_volume_mouse_up_cb);
+                                      EVAS_CALLBACK_MOUSE_UP,
+                                      __vp_volume_mouse_up_cb);
 
        evas_object_event_callback_del(pVolumeWidget->pLayout,
-                                      EVAS_CALLBACK_MOUSE_MOVE,
-                                      __vp_volume_mouse_move_cb);
+                                      EVAS_CALLBACK_MOUSE_MOVE,
+                                      __vp_volume_mouse_move_cb);
        return TRUE;
 }
index 1a54741..5967df6 100644 (file)
@@ -66,12 +66,12 @@ static void appCreateInternal()
 
 #ifdef _MULTI_WINDOW
        elm_win_wm_desktop_layout_support_set(
-               (Evas_Object *)mp_mgr_get_main_window(), EINA_TRUE);
+           (Evas_Object *)mp_mgr_get_main_window(), EINA_TRUE);
 
        evas_object_data_set((Evas_Object *)mp_mgr_get_main_window(),
-               "id_startup_by", (void *)-1);
+                            "id_startup_by", (void *) - 1);
        evas_object_data_set((Evas_Object *)mp_mgr_get_main_window(),
-               "id_layout_pos", (void *)-1);
+                            "id_layout_pos", (void *) - 1);
 #endif
 
        evas_object_show((Evas_Object *)mp_mgr_get_main_window());
@@ -108,9 +108,9 @@ static void appControl(app_control_h pAppSvcHandle, void *pUserData)
                return;
        }
 
-/*
-* for split window
-*/
+       /*
+       * for split window
+       */
 #ifdef _MULTI_WINDOW
        if (!pAppSvcHandle) {
                VideoLogInfo("[ERR] No exist pAppSveHandle.");
@@ -124,44 +124,44 @@ static void appControl(app_control_h pAppSvcHandle, void *pUserData)
        int id = -1;
 
        int id_startup_by = (int)evas_object_data_get(
-                               (Evas_Object *)mp_mgr_get_main_window(),
-                               "id_startup_by");
+                               (Evas_Object *)mp_mgr_get_main_window(),
+                               "id_startup_by");
        int id_layout_pos = (int)evas_object_data_get(
-                               (Evas_Object *)mp_mgr_get_main_window(),
-                               "id_layout_pos");
+                               (Evas_Object *)mp_mgr_get_main_window(),
+                               "id_layout_pos");
 
        if (app_control_get_extra_data(pAppSvcHandle, "window_startup_type",
-               &val_startup) != APP_CONTROL_ERROR_NONE) {
+                                      &val_startup) != APP_CONTROL_ERROR_NONE) {
                val_startup = strdup("0");
        }
 
        if (app_control_get_extra_data(pAppSvcHandle, "window_layout_id",
-               &val_layout) != APP_CONTROL_ERROR_NONE) {
+                                      &val_layout) != APP_CONTROL_ERROR_NONE) {
                val_layout = strdup("-1");
        }
 
        if (id_startup_by == -1) {
                id = elm_win_aux_hint_add(
-                       (Evas_Object *)mp_mgr_get_main_window(),
-                       "wm.policy.win.startup.by", val_startup);
+                        (Evas_Object *)mp_mgr_get_main_window(),
+                        "wm.policy.win.startup.by", val_startup);
                evas_object_data_set((Evas_Object *)mp_mgr_get_main_window(),
-                       "id_startup_by", (void *)id);
+                                    "id_startup_by", (void *)id);
        } else {
                elm_win_aux_hint_val_set(
-                       (Evas_Object *)mp_mgr_get_main_window(), id_startup_by,
-                       val_startup);
+                   (Evas_Object *)mp_mgr_get_main_window(), id_startup_by,
+                   val_startup);
        }
 
        if (id_layout_pos == -1) {
                id = elm_win_aux_hint_add(
-                       (Evas_Object *)mp_mgr_get_main_window(),
-                       "wm.policy.win.zone.desk.layout.pos", val_layout);
+                        (Evas_Object *)mp_mgr_get_main_window(),
+                        "wm.policy.win.zone.desk.layout.pos", val_layout);
                evas_object_data_set((Evas_Object *)mp_mgr_get_main_window(),
-                       "id_layout_pos", (void *)id);
+                                    "id_layout_pos", (void *)id);
        } else {
                elm_win_aux_hint_val_set(
-                       (Evas_Object *)mp_mgr_get_main_window(), id_layout_pos,
-                       val_layout);
+                   (Evas_Object *)mp_mgr_get_main_window(), id_layout_pos,
+                   val_layout);
        }
 
        VideoLogInfo("val_startup : [%s]", val_startup);
@@ -177,11 +177,11 @@ static void appControl(app_control_h pAppSvcHandle, void *pUserData)
        char *operation = NULL;
        int nRet = service_get_operation(pAppSvcHandle, &operation);
        if (nRet == APP_CONTROL_ERROR_NONE &&
-               strcmp(operation,
-                       "http://tizen.org/appcontrol/operation/main") == 0) {
+               strcmp(operation,
+                      "http://tizen.org/appcontrol/operation/main") == 0) {
                if (is_first_run == 1) {
                        elm_win_activate(
-                               (Evas_Object *)mp_mgr_get_main_window());
+                           (Evas_Object *)mp_mgr_get_main_window());
 
                        VideoLogInfo("is_first_run is true");
                        /* mp_library_mgr_resume_wall_render(); */
@@ -244,12 +244,12 @@ static void appUpdateLanguage(app_event_info_h pEventInfo, void *pUserData)
 
        char *locale = NULL;
        int retcode = system_settings_get_value_string(
-                       SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &locale);
+                         SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &locale);
 
        if (retcode != SYSTEM_SETTINGS_ERROR_NONE) {
                VideoLogInfo(
-                       "[ERR] failed to get updated language[retcode = %d]",
-                       retcode);
+                   "[ERR] failed to get updated language[retcode = %d]",
+                   retcode);
        } else {
                if (locale) {
                        elm_language_set(locale);
@@ -266,17 +266,17 @@ EXPORT_API int main(int argc, char *argv[])
 
        VideoLogInfo("======================================================");
        VideoLogInfo(" Measuring exec() launching  time - %ld:%ldus",
-               startTimeVal.tv_sec, startTimeVal.tv_usec);
+                    startTimeVal.tv_sec, startTimeVal.tv_usec);
        VideoLogInfo("======================================================");
 
        ui_app_lifecycle_callback_s st_appEventService;
        app_event_handler_h hLanguageChangedHandle = NULL;
 
        nRet = ui_app_add_event_handler(&hLanguageChangedHandle,
-                       APP_EVENT_LANGUAGE_CHANGED, appUpdateLanguage, NULL);
+                                       APP_EVENT_LANGUAGE_CHANGED, appUpdateLanguage, NULL);
        if (nRet != APP_ERROR_NONE) {
                VideoLogError("Fail to add handler for LANGUAGE_CHANGED [%d]",
-                       nRet);
+                             nRet);
                return -1;
        }
 
@@ -285,13 +285,13 @@ EXPORT_API int main(int argc, char *argv[])
        st_appEventService.pause = appPause;
        st_appEventService.resume = appResume;
        st_appEventService.app_control = appControl;
-/*
-       st_appEventService.low_memory = appBattery;
-       st_appEventService.low_battery = NULL;
-       st_appEventService.device_orientation = NULL; //appRotate;
-       st_appEventService.language_changed = appUpdateLanguage;
-       st_appEventService.region_format_changed = NULL;
-*/
+       /*
+               st_appEventService.low_memory = appBattery;
+               st_appEventService.low_battery = NULL;
+               st_appEventService.device_orientation = NULL; //appRotate;
+               st_appEventService.language_changed = appUpdateLanguage;
+               st_appEventService.region_format_changed = NULL;
+       */
        nRet = ui_app_main(argc, argv, &st_appEventService, NULL);
        if (nRet != APP_ERROR_NONE) {
                VideoLogInfo("[ERR] app_efl_main().");
index 957f34d..f0bc358 100644 (file)
 #include "vp-file-util.h"
 
 /* download cb type. for download pipe data */
-typedef enum
-{
+typedef enum {
        VPP_DOWNLOAD_CB_TYPE_STATE_CHANGED,
        VPP_DOWNLOAD_CB_TYPE_PROGRESS,
-}VppDownloadCbType;
+} VppDownloadCbType;
 
 
 // download item
-typedef struct
-{
+typedef struct {
        int                                             id;                             /* downloader id */
 
        char                                    *pDownloadUrl;  /* download url */
@@ -59,28 +57,26 @@ typedef struct
        Ecore_Pipe                              *pDownloadPipe; /* internal pipe */
 
        void                                    *pUserdata;             /* user data */
-}__VppDownloadItem;
+} __VppDownloadItem;
 
 
 // download list
-typedef struct
-{
+typedef struct {
        Ecore_Timer     *downloadTimer;                         /* internal timer */
 
        int                     currentDownloadingCount;        /* downloading item count */
 
        Eina_List       *downloadList;                          /* download item list */
-}__VppDownloadListData;
+} __VppDownloadListData;
 
 
 /* download pipe data */
-typedef struct
-{
+typedef struct {
        __VppDownloadItem       *pItem;                 /* download item */
        unsigned long long      received;               /* received file size from progress callback*/
        VppDownloadCbType       eCbType;                /* pipe callback type */
        VppDownloadState        eState;                 /* downloader state */
-}VppDownloadPipeData;
+} VppDownloadPipeData;
 
 
 __VppDownloadListData *g_download_list = NULL;
@@ -121,28 +117,24 @@ VppDownloadCreateItem(const char *pUrl, const char *pDstFolder, const char *pDst
 {
        __VppDownloadItem*      pItem   = NULL;
 
-       if (pUrl == NULL)
-       {
+       if (pUrl == NULL) {
                VideoLogError("pUrl == NULL!!!");
                return NULL;
        }
 
 
-       if (pDstFolder == NULL)
-       {
+       if (pDstFolder == NULL) {
                VideoLogError("pDstFolder == NULL!!!");
                return NULL;
        }
 
-       if (cb.stateChangedCb == NULL)
-       {
+       if (cb.stateChangedCb == NULL) {
                VideoLogError("cb.stateChangedCb == NULL!!!");
                return NULL;
        }
 
        pItem                                           = calloc(1, sizeof(__VppDownloadItem));
-       if (pItem == NULL)
-       {
+       if (pItem == NULL) {
                VideoLogError("pItem calloc fail!!!");
                return NULL;
        }
@@ -155,21 +147,15 @@ VppDownloadCreateItem(const char *pUrl, const char *pDstFolder, const char *pDst
        pItem->pUserdata                = userData;
        pItem->bSetNoti                 = TRUE;
 
-       if (pDstName != NULL)
-       {
+       if (pDstName != NULL) {
                pItem->pDstName = strdup(pDstName);
        }
 
-       if (eType == VPP_DOWNLOAD_ITEM_TYPE_VIDEO_FILE || eType == VPP_DOWNLOAD_ITEM_TYPE_STORE_VIDEO_FILE)
-       {
+       if (eType == VPP_DOWNLOAD_ITEM_TYPE_VIDEO_FILE || eType == VPP_DOWNLOAD_ITEM_TYPE_STORE_VIDEO_FILE) {
                pItem->bSetNoti                 = TRUE;
-       }
-       else if (eType >= VPP_DOWNLOAD_ITEM_TYPE_VIDEO_INDEX_FILE && eType <= VPP_DOWNLOAD_ITEM_TYPE_RATING_IMAGE)
-       {
+       } else if (eType >= VPP_DOWNLOAD_ITEM_TYPE_VIDEO_INDEX_FILE && eType <= VPP_DOWNLOAD_ITEM_TYPE_RATING_IMAGE) {
                pItem->bSetNoti                 = FALSE;
-       }
-       else
-       {
+       } else {
                VideoLogError("eType error : [%d]", eType);
        }
 
@@ -184,24 +170,21 @@ VppDownloadCreateItemById(int nId, const char *pUrl, const char *pDstFolder, con
 {
        __VppDownloadItem*      pItem   = NULL;
 
-       if (nId <= 0)
-       {
+       if (nId <= 0) {
                VideoLogError("nId error : [%d]!!!", nId);
                return NULL;
        }
 
 
        pItem                                           = VppDownloadCreateItem(pUrl, pDstFolder, pDstName, eType, cb, userData);
-       if (pItem == NULL)
-       {
+       if (pItem == NULL) {
                VideoLogError("VppDownloadCreateItem fail!!!");
                return NULL;
        }
 
        pItem->id                                       = nId;
 
-       if (VppDownloadSetCb((VppDownloadHandle)pItem, cb, pItem->pUserdata) == FALSE)
-       {
+       if (VppDownloadSetCb((VppDownloadHandle)pItem, cb, pItem->pUserdata) == FALSE) {
                VideoLogError("VppDownloadSetCb error");
                VppDownloadDestroyItem((VppDownloadHandle)pItem);
 
@@ -219,52 +202,44 @@ VppDownloadDestroyItem(VppDownloadHandle pHandle)
        download_error_e        error   = DOWNLOAD_ERROR_NONE;
        char                            *pPath  = NULL;
 
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL");
                return;
        }
 
-       if (pItem->pDownloadPipe != NULL)
-       {
+       if (pItem->pDownloadPipe != NULL) {
                ecore_pipe_del(pItem->pDownloadPipe);
                pItem->pDownloadPipe    = NULL;
        }
 
        pPath   = VppDownloadGetDownloadedFilePath(pHandle);
 
-       if (pItem->pDownloadUrl != NULL)
-       {
+       if (pItem->pDownloadUrl != NULL) {
                free(pItem->pDownloadUrl);
                pItem->pDownloadUrl     = NULL;
        }
 
-       if (pItem->pDstFolder != NULL)
-       {
+       if (pItem->pDstFolder != NULL) {
                free(pItem->pDstFolder);
                pItem->pDstFolder       = NULL;
        }
 
-       if (pItem->pDstName != NULL)
-       {
+       if (pItem->pDstName != NULL) {
                free(pItem->pDstName);
                pItem->pDstName = NULL;
        }
 
-       if (pItem->pTempPath != NULL)
-       {
+       if (pItem->pTempPath != NULL) {
                free(pItem->pTempPath);
                pItem->pTempPath        = NULL;
        }
 
-       if (pItem->pEtag != NULL)
-       {
+       if (pItem->pEtag != NULL) {
                free(pItem->pEtag);
                pItem->pEtag    = NULL;
        }
 
-       if (pItem->id > 0)
-       {
+       if (pItem->id > 0) {
                VppDownloadUnsetCb(pItem);
 
                VppDownloadState        state   = VppDownloadGetState(pItem);
@@ -279,34 +254,28 @@ VppDownloadDestroyItem(VppDownloadHandle pHandle)
                }
                */
 
-               if (state != VPP_DOWNLOAD_STATE_COMPLETED)
-               {
-                       if (pPath != NULL && vp_file_exists((const char*)pPath) == EINA_TRUE)
-                       {
+               if (state != VPP_DOWNLOAD_STATE_COMPLETED) {
+                       if (pPath != NULL && vp_file_exists((const char*)pPath) == EINA_TRUE) {
                                vp_file_unlink((const char*)pPath);
                        }
                }
 
                error   = download_set_notification_type(pItem->id, DOWNLOAD_NOTIFICATION_TYPE_NONE);
-               if (error != DOWNLOAD_ERROR_NONE)
-               {
+               if (error != DOWNLOAD_ERROR_NONE) {
                        __VppDownloadPrintErr(error);
                }
 
                error   = download_destroy(pItem->id);
-               if (error != DOWNLOAD_ERROR_NONE)
-               {
+               if (error != DOWNLOAD_ERROR_NONE) {
                        __VppDownloadPrintErr(error);
                }
        }
 
-       if (pItem->eType < VPP_DOWNLOAD_ITEM_TYPE_STORE_VIDEO_FILE || pItem->eType > VPP_DOWNLOAD_ITEM_TYPE_VIDEO_CAPTION_FILE)
-       {
+       if (pItem->eType < VPP_DOWNLOAD_ITEM_TYPE_STORE_VIDEO_FILE || pItem->eType > VPP_DOWNLOAD_ITEM_TYPE_VIDEO_CAPTION_FILE) {
                __VppDownloadListRemove(pHandle);
        }
 
-       if (pPath != NULL)
-       {
+       if (pPath != NULL) {
                free(pPath);
                pPath   = NULL;
        }
@@ -322,8 +291,7 @@ VppDownloadDestroyItemById(int nId)
        download_error_e        error   = DOWNLOAD_ERROR_NONE;
 
        error   = download_destroy(nId);
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                __VppDownloadPrintErr(error);
        }
 }
@@ -336,38 +304,32 @@ VppDownloadClearItem(VppDownloadHandle pHandle)
        __VppDownloadItem*      pItem   = (__VppDownloadItem*)pHandle;
 //     download_error_e        error   = DOWNLOAD_ERROR_NONE;
 
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL");
                return;
        }
 
-       if (pItem->pDownloadPipe != NULL)
-       {
+       if (pItem->pDownloadPipe != NULL) {
                ecore_pipe_del(pItem->pDownloadPipe);
                pItem->pDownloadPipe    = NULL;
        }
 
-       if (pItem->pDownloadUrl != NULL)
-       {
+       if (pItem->pDownloadUrl != NULL) {
                free(pItem->pDownloadUrl);
                pItem->pDownloadUrl     = NULL;
        }
 
-       if (pItem->pDstFolder != NULL)
-       {
+       if (pItem->pDstFolder != NULL) {
                free(pItem->pDstFolder);
                pItem->pDstFolder       = NULL;
        }
 
-       if (pItem->pDstName != NULL)
-       {
+       if (pItem->pDstName != NULL) {
                free(pItem->pDstName);
                pItem->pDstName = NULL;
        }
 
-       if (pItem->id > 0)
-       {
+       if (pItem->id > 0) {
                VppDownloadUnsetCb(pItem);
        }
 
@@ -381,28 +343,23 @@ VppDownloadStartVideoStoreVideoItem(VppDownloadHandle pHandle, void *pOnGoingSer
 {
        __VppDownloadItem*      pItem   = (__VppDownloadItem*)pHandle;
 
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL");
                return FALSE;
        }
 
-       if (pItem->id <= 0)
-       {
-               if (__VppDownloadCreate(pItem) == FALSE)
-               {
+       if (pItem->id <= 0) {
+               if (__VppDownloadCreate(pItem) == FALSE) {
                        VideoLogError("__VppDownloadCreate faile !!!");
                        return FALSE;
                }
        }
 
-       if (pOnGoingServiceData != NULL)
-       {
+       if (pOnGoingServiceData != NULL) {
                int             error   = 0;
 
                error   = download_set_notification_app_control(pItem->id, DOWNLOAD_NOTIFICATION_APP_CONTROL_TYPE_ONGOING, (app_control_h)pOnGoingServiceData);
-               if (error != DOWNLOAD_ERROR_NONE)
-               {
+               if (error != DOWNLOAD_ERROR_NONE) {
                        VideoLogError("download_get_downloaded_file_path error");
                        __VppDownloadPrintErr(error);
 
@@ -410,13 +367,11 @@ VppDownloadStartVideoStoreVideoItem(VppDownloadHandle pHandle, void *pOnGoingSer
                }
        }
 
-       if (pCompleteServiceData != NULL)
-       {
+       if (pCompleteServiceData != NULL) {
                int             error   = 0;
 
                error   = download_set_notification_app_control(pItem->id, DOWNLOAD_NOTIFICATION_APP_CONTROL_TYPE_COMPLETE, (app_control_h)pCompleteServiceData);
-               if (error != DOWNLOAD_ERROR_NONE)
-               {
+               if (error != DOWNLOAD_ERROR_NONE) {
                        VideoLogError("download_get_downloaded_file_path error");
                        __VppDownloadPrintErr(error);
 
@@ -424,8 +379,7 @@ VppDownloadStartVideoStoreVideoItem(VppDownloadHandle pHandle, void *pOnGoingSer
                }
        }
 
-       if (__VppDownloadStart((__VppDownloadItem*)pHandle, FALSE) == FALSE)
-       {
+       if (__VppDownloadStart((__VppDownloadItem*)pHandle, FALSE) == FALSE) {
                VideoLogError("fail __VppDownloadStart!!!");
                return FALSE;
        }
@@ -441,8 +395,7 @@ VppDownloadSetCb(VppDownloadHandle pHandle, VppDownloadCallback cb, void *userDa
 
        download_error_e        error   = DOWNLOAD_ERROR_NONE;
 
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL");
                return FALSE;
        }
@@ -451,34 +404,27 @@ VppDownloadSetCb(VppDownloadHandle pHandle, VppDownloadCallback cb, void *userDa
 
        pItem->pUserdata        = userData;
 
-       if (cb.progressCb != NULL)
-       {
+       if (cb.progressCb != NULL) {
                pItem->progressCb               = cb.progressCb;
-               if (pItem->id > 0)
-               {
+               if (pItem->id > 0) {
                        error   = download_set_progress_cb(pItem->id, __VppDownloadProgressCb, pItem);
-                       if (error != DOWNLOAD_ERROR_NONE)
-                       {
+                       if (error != DOWNLOAD_ERROR_NONE) {
                                __VppDownloadPrintErr(error);
                        }
                }
        }
 
-       if (cb.stateChangedCb != NULL)
-       {
+       if (cb.stateChangedCb != NULL) {
                pItem->stateChangedCb   = cb.stateChangedCb;
-               if (pItem->id > 0)
-               {
-                       error   = download_set_state_changed_cb(pItem->id,__VppDownloadStateChangedCb, pItem);
-                       if (error != DOWNLOAD_ERROR_NONE)
-                       {
+               if (pItem->id > 0) {
+                       error   = download_set_state_changed_cb(pItem->id, __VppDownloadStateChangedCb, pItem);
+                       if (error != DOWNLOAD_ERROR_NONE) {
                                __VppDownloadPrintErr(error);
                        }
                }
        }
 
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                return FALSE;
        }
 
@@ -493,28 +439,22 @@ VppDownloadUnsetCb(VppDownloadHandle pHandle)
 
        download_error_e        error   = DOWNLOAD_ERROR_NONE;
 
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL");
                return FALSE;
        }
 
-       if (pItem->id > 0)
-       {
-               if (pItem->progressCb   != NULL)
-               {
+       if (pItem->id > 0) {
+               if (pItem->progressCb   != NULL) {
                        error   = download_unset_progress_cb(pItem->id);
-                       if (error != DOWNLOAD_ERROR_NONE)
-                       {
+                       if (error != DOWNLOAD_ERROR_NONE) {
                                __VppDownloadPrintErr(error);
                        }
                }
 
-               if (pItem->stateChangedCb       != NULL)
-               {
+               if (pItem->stateChangedCb       != NULL) {
                        error   = download_unset_state_changed_cb(pItem->id);
-                       if (error != DOWNLOAD_ERROR_NONE)
-                       {
+                       if (error != DOWNLOAD_ERROR_NONE) {
                                __VppDownloadPrintErr(error);
                        }
                }
@@ -524,8 +464,7 @@ VppDownloadUnsetCb(VppDownloadHandle pHandle)
        pItem->stateChangedCb   = NULL;
        pItem->pUserdata                = NULL;
 
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                return FALSE;
        }
 
@@ -552,14 +491,12 @@ VppDownloadPause(VppDownloadHandle pHandle)
 {
        __VppDownloadItem*      pItem   = (__VppDownloadItem*)pHandle;
 
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL");
                return FALSE;
        }
 
-       if (pItem->id <= 0)
-       {
+       if (pItem->id <= 0) {
                VideoLogError("pItem->id : [%d]!!!", pItem->id);
                return FALSE;
        }
@@ -567,8 +504,7 @@ VppDownloadPause(VppDownloadHandle pHandle)
        download_error_e        error   = DOWNLOAD_ERROR_NONE;
 
        error   = download_pause(pItem->id);
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                __VppDownloadPrintErr(error);
 
                return FALSE;
@@ -590,14 +526,12 @@ VppDownloadCancel(VppDownloadHandle pHandle)
 {
        __VppDownloadItem*      pItem   = (__VppDownloadItem*)pHandle;
 
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL");
                return FALSE;
        }
 
-       if (pItem->id <= 0)
-       {
+       if (pItem->id <= 0) {
                VideoLogError("pItem->id : [%d]!!!", pItem->id);
                return FALSE;
        }
@@ -605,8 +539,7 @@ VppDownloadCancel(VppDownloadHandle pHandle)
        download_error_e        error   = DOWNLOAD_ERROR_NONE;
 
        error   = download_cancel(pItem->id);
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                __VppDownloadPrintErr(error);
 
                return FALSE;
@@ -626,35 +559,30 @@ VppDownloadStoreVideoRestore(VppDownloadHandle pHandle)
        int                                     nRet            = 0;
        char                            szTemp[32]      = {0,};
 
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL");
                return FALSE;
        }
 
-       if (pItem->pTempPath == NULL)
-       {
+       if (pItem->pTempPath == NULL) {
                VideoLogError("pItem->pTempPath!!!");
                return FALSE;
        }
 
-       if (pItem->pEtag == NULL)
-       {
+       if (pItem->pEtag == NULL) {
                VideoLogError("pItem->pEtag!!!");
                return FALSE;
        }
 
        nRet    = download_set_temp_file_path(pItem->id, pItem->pTempPath);
-       if (nRet != DOWNLOAD_ERROR_NONE)
-       {
+       if (nRet != DOWNLOAD_ERROR_NONE) {
                VideoLogError("download_set_temp_file_path failed!!!");
                __VppDownloadPrintErr(nRet);
                return FALSE;
        }
 
        nRet    = download_add_http_header_field(pItem->id, "If-Range", pItem->pEtag);
-       if (nRet != DOWNLOAD_ERROR_NONE)
-       {
+       if (nRet != DOWNLOAD_ERROR_NONE) {
                VideoLogError("download_add_http_header_field failed!!!");
                __VppDownloadPrintErr(nRet);
                return FALSE;
@@ -665,16 +593,14 @@ VppDownloadStoreVideoRestore(VppDownloadHandle pHandle)
        snprintf(szTemp, sizeof(szTemp), "bytes=%llu-", lFileSize);
 
        nRet    = download_add_http_header_field(pItem->id, "Range", szTemp);
-       if (nRet != DOWNLOAD_ERROR_NONE)
-       {
+       if (nRet != DOWNLOAD_ERROR_NONE) {
                VideoLogError("download_add_http_header_field failed!!!");
                __VppDownloadPrintErr(nRet);
                return FALSE;
        }
 
        nRet    = download_start(pItem->id);
-       if (nRet != DOWNLOAD_ERROR_NONE)
-       {
+       if (nRet != DOWNLOAD_ERROR_NONE) {
                VideoLogError("download_start failed!!!");
                __VppDownloadPrintErr(nRet);
                return FALSE;
@@ -689,14 +615,12 @@ VppDownloadGetState(VppDownloadHandle pHandle)
 {
        __VppDownloadItem*      pItem   = (__VppDownloadItem*)pHandle;
 
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL");
                return VPP_DOWNLOAD_STATE_APP_ERROR;
        }
 
-       if (pItem->id <= 0)
-       {
+       if (pItem->id <= 0) {
                VideoLogError("id error: [%d]", pItem->id);
                return VPP_DOWNLOAD_STATE_APP_ERROR;
        }
@@ -705,8 +629,7 @@ VppDownloadGetState(VppDownloadHandle pHandle)
        download_state_e        state   = DOWNLOAD_STATE_NONE;
 
        error   = download_get_state(pItem->id, &state);
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                __VppDownloadPrintErr(error);
                return VPP_DOWNLOAD_STATE_AGENT_ERROR;
        }
@@ -718,8 +641,7 @@ VppDownloadGetState(VppDownloadHandle pHandle)
 VppDownloadState
 VppDownloadGetStateById(int nDownloadId)
 {
-       if (nDownloadId <= 0)
-       {
+       if (nDownloadId <= 0) {
                VideoLogError("id error: [%d]", nDownloadId);
                return VPP_DOWNLOAD_STATE_APP_ERROR;
        }
@@ -728,8 +650,7 @@ VppDownloadGetStateById(int nDownloadId)
        download_state_e        state   = DOWNLOAD_STATE_NONE;
 
        error   = download_get_state(nDownloadId, &state);
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                __VppDownloadPrintErr(error);
                return VPP_DOWNLOAD_STATE_AGENT_ERROR;
        }
@@ -741,8 +662,7 @@ VppDownloadGetStateById(int nDownloadId)
 char*
 VppDownloadGetDownloadedFilePath(VppDownloadHandle pHandle)
 {
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL");
                return NULL;
        }
@@ -754,49 +674,37 @@ VppDownloadGetDownloadedFilePath(VppDownloadHandle pHandle)
        char                            *pPath  = NULL;
        char    sDestPath[PATH_MAX] = {0,};
 
-       if (pItem->id <= 0)
-       {
+       if (pItem->id <= 0) {
                VideoLogWarning("id error: [%d]", pItem->id);
                return NULL;
        }
 
-       if (pItem->pDstFolder != NULL && pItem->pDstName != NULL)
-       {
-               if (pItem->pDstFolder[strlen(pItem->pDstFolder)-1] == '/')
-               {
+       if (pItem->pDstFolder != NULL && pItem->pDstName != NULL) {
+               if (pItem->pDstFolder[strlen(pItem->pDstFolder) - 1] == '/') {
                        snprintf(sDestPath, PATH_MAX, "%s%s", pItem->pDstFolder, pItem->pDstName);
-               }
-               else
-               {
+               } else {
                        snprintf(sDestPath, PATH_MAX, "%s/%s", pItem->pDstFolder, pItem->pDstName);
                }
 
                VideoSecureLogDebug("Path : [%s]:%s,%s,%d", sDestPath,  pItem->pDstFolder[strlen(pItem->pDstFolder)], pItem->pDstFolder, strlen(pItem->pDstFolder));
 
                return strdup(sDestPath);
-       }
-       else
-       {
+       } else {
                error   = download_get_downloaded_file_path(pItem->id, &pPath);
-               if (error != DOWNLOAD_ERROR_NONE)
-               {
+               if (error != DOWNLOAD_ERROR_NONE) {
                        VideoLogError("download_get_downloaded_file_path error");
                        __VppDownloadPrintErr(error);
 
-                       if (pPath != NULL)
-                       {
+                       if (pPath != NULL) {
                                free(pPath);
                                pPath   = NULL;
                        }
                }
 
-               if (pPath != NULL)
-               {
+               if (pPath != NULL) {
                        VideoSecureLogDebug("Path : [%s]", pPath);
                        return pPath;
-               }
-               else
-               {
+               } else {
                        VideoLogDebug("pPath == NULL");
                        return NULL;
                }
@@ -807,8 +715,7 @@ VppDownloadGetDownloadedFilePath(VppDownloadHandle pHandle)
 int
 VppDownloadGetDownloadId(VppDownloadHandle pHandle)
 {
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL ");
                return 0;
        }
@@ -824,14 +731,12 @@ VppDownloadSetNotificationAppControl(VppDownloadHandle pHandle, void *pData)
 {
        download_error_e        error   = DOWNLOAD_ERROR_NONE;
 
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL ");
                return FALSE;
        }
 
-       if (pData == NULL)
-       {
+       if (pData == NULL) {
                VideoLogError("pData == NULL ");
                return FALSE;
        }
@@ -839,8 +744,7 @@ VppDownloadSetNotificationAppControl(VppDownloadHandle pHandle, void *pData)
        __VppDownloadItem*      pItem   = (__VppDownloadItem*)pHandle;
 
        error   = download_set_notification_app_control(pItem->id, DOWNLOAD_NOTIFICATION_APP_CONTROL_TYPE_ONGOING, (app_control_h)pData);
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                VideoLogError("download_get_downloaded_file_path error");
                __VppDownloadPrintErr(error);
 
@@ -857,8 +761,7 @@ VppDownloadGetNotificationAppControl(VppDownloadHandle pHandle)
        download_error_e        error   = DOWNLOAD_ERROR_NONE;
        app_control_h                           *b              = NULL;
 
-       if (pHandle == NULL)
-       {
+       if (pHandle == NULL) {
                VideoLogError("pHandle == NULL ");
                return NULL;
        }
@@ -866,8 +769,7 @@ VppDownloadGetNotificationAppControl(VppDownloadHandle pHandle)
        __VppDownloadItem*      pItem   = (__VppDownloadItem*)pHandle;
 
        error   = download_get_notification_app_control(pItem->id, DOWNLOAD_NOTIFICATION_APP_CONTROL_TYPE_ONGOING, b);
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                VideoLogError("download_get_downloaded_file_path error");
                __VppDownloadPrintErr(error);
 
@@ -884,108 +786,87 @@ VppDownloadGetNotificationAppControl(VppDownloadHandle pHandle)
 void
 __VppDownloadPrintErr(download_error_e err)
 {
-       switch (err)
-       {
-       case DOWNLOAD_ERROR_NONE:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_NONE");
-               }
-               break;
-       case DOWNLOAD_ERROR_INVALID_PARAMETER:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_INVALID_PARAMETER");
-               }
-               break;
-       case DOWNLOAD_ERROR_OUT_OF_MEMORY:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_OUT_OF_MEMORY");
-               }
-               break;
-       case DOWNLOAD_ERROR_NETWORK_UNREACHABLE:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_NETWORK_UNREACHABLE");
-               }
-               break;
-       case DOWNLOAD_ERROR_CONNECTION_TIMED_OUT:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_CONNECTION_TIMED_OUT");
-               }
-               break;
-       case DOWNLOAD_ERROR_NO_SPACE:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_NO_SPACE");
-               }
-               break;
-       case DOWNLOAD_ERROR_FIELD_NOT_FOUND:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_FIELD_NOT_FOUND");
-               }
-               break;
-       case DOWNLOAD_ERROR_INVALID_STATE:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_INVALID_STATE");
-               }
-               break;
-       case DOWNLOAD_ERROR_CONNECTION_FAILED:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_CONNECTION_FAILED");
-               }
-               break;
-       case DOWNLOAD_ERROR_INVALID_URL:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_INVALID_URL");
-               }
-               break;
-       case DOWNLOAD_ERROR_INVALID_DESTINATION:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_INVALID_DESTINATION");
-               }
-               break;
-       case DOWNLOAD_ERROR_TOO_MANY_DOWNLOADS:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_TOO_MANY_DOWNLOADS");
-               }
-               break;
-       case DOWNLOAD_ERROR_QUEUE_FULL:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_QUEUE_FULL");
-               }
-               break;
-       case DOWNLOAD_ERROR_ALREADY_COMPLETED:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_ALREADY_COMPLETED");
-               }
-               break;
-       case DOWNLOAD_ERROR_FILE_ALREADY_EXISTS:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_FILE_ALREADY_EXISTS");
-               }
-               break;
-       case DOWNLOAD_ERROR_TOO_MANY_REDIRECTS:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_TOO_MANY_REDIRECTS");
-               }
-               break;
-       case DOWNLOAD_ERROR_UNHANDLED_HTTP_CODE:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_UNHANDLED_HTTP_CODE");
-               }
-               break;
-       case DOWNLOAD_ERROR_NO_DATA:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_NO_DATA");
-               }
-               break;
-       case DOWNLOAD_ERROR_IO_ERROR:
-               {
-                       VideoLogError("err == DOWNLOAD_ERROR_IO_ERROR");
-               }
-               break;
-       default:
-               {
-                       VideoLogError("UNKNOW err == [%d]", err);
-               }
-               break;
+       switch (err) {
+       case DOWNLOAD_ERROR_NONE: {
+               VideoLogError("err == DOWNLOAD_ERROR_NONE");
+       }
+       break;
+       case DOWNLOAD_ERROR_INVALID_PARAMETER: {
+               VideoLogError("err == DOWNLOAD_ERROR_INVALID_PARAMETER");
+       }
+       break;
+       case DOWNLOAD_ERROR_OUT_OF_MEMORY: {
+               VideoLogError("err == DOWNLOAD_ERROR_OUT_OF_MEMORY");
+       }
+       break;
+       case DOWNLOAD_ERROR_NETWORK_UNREACHABLE: {
+               VideoLogError("err == DOWNLOAD_ERROR_NETWORK_UNREACHABLE");
+       }
+       break;
+       case DOWNLOAD_ERROR_CONNECTION_TIMED_OUT: {
+               VideoLogError("err == DOWNLOAD_ERROR_CONNECTION_TIMED_OUT");
+       }
+       break;
+       case DOWNLOAD_ERROR_NO_SPACE: {
+               VideoLogError("err == DOWNLOAD_ERROR_NO_SPACE");
+       }
+       break;
+       case DOWNLOAD_ERROR_FIELD_NOT_FOUND: {
+               VideoLogError("err == DOWNLOAD_ERROR_FIELD_NOT_FOUND");
+       }
+       break;
+       case DOWNLOAD_ERROR_INVALID_STATE: {
+               VideoLogError("err == DOWNLOAD_ERROR_INVALID_STATE");
+       }
+       break;
+       case DOWNLOAD_ERROR_CONNECTION_FAILED: {
+               VideoLogError("err == DOWNLOAD_ERROR_CONNECTION_FAILED");
+       }
+       break;
+       case DOWNLOAD_ERROR_INVALID_URL: {
+               VideoLogError("err == DOWNLOAD_ERROR_INVALID_URL");
+       }
+       break;
+       case DOWNLOAD_ERROR_INVALID_DESTINATION: {
+               VideoLogError("err == DOWNLOAD_ERROR_INVALID_DESTINATION");
+       }
+       break;
+       case DOWNLOAD_ERROR_TOO_MANY_DOWNLOADS: {
+               VideoLogError("err == DOWNLOAD_ERROR_TOO_MANY_DOWNLOADS");
+       }
+       break;
+       case DOWNLOAD_ERROR_QUEUE_FULL: {
+               VideoLogError("err == DOWNLOAD_ERROR_QUEUE_FULL");
+       }
+       break;
+       case DOWNLOAD_ERROR_ALREADY_COMPLETED: {
+               VideoLogError("err == DOWNLOAD_ERROR_ALREADY_COMPLETED");
+       }
+       break;
+       case DOWNLOAD_ERROR_FILE_ALREADY_EXISTS: {
+               VideoLogError("err == DOWNLOAD_ERROR_FILE_ALREADY_EXISTS");
+       }
+       break;
+       case DOWNLOAD_ERROR_TOO_MANY_REDIRECTS: {
+               VideoLogError("err == DOWNLOAD_ERROR_TOO_MANY_REDIRECTS");
+       }
+       break;
+       case DOWNLOAD_ERROR_UNHANDLED_HTTP_CODE: {
+               VideoLogError("err == DOWNLOAD_ERROR_UNHANDLED_HTTP_CODE");
+       }
+       break;
+       case DOWNLOAD_ERROR_NO_DATA: {
+               VideoLogError("err == DOWNLOAD_ERROR_NO_DATA");
+       }
+       break;
+       case DOWNLOAD_ERROR_IO_ERROR: {
+               VideoLogError("err == DOWNLOAD_ERROR_IO_ERROR");
+       }
+       break;
+       default: {
+               VideoLogError("UNKNOW err == [%d]", err);
+       }
+       break;
        }
 }
 
@@ -993,8 +874,7 @@ __VppDownloadPrintErr(download_error_e err)
 void
 __VppDownloadListInitialize()
 {
-       if (g_download_list != NULL)
-       {
+       if (g_download_list != NULL) {
                __VppDestoryDownloadListDestory();
        }
 
@@ -1005,32 +885,26 @@ __VppDownloadListInitialize()
 void
 __VppDestoryDownloadListDestory()
 {
-       if (g_download_list == NULL)
-       {
+       if (g_download_list == NULL) {
                VideoLogError("g_download_list == NULL!!!");
                return;
        }
 
-       if (g_download_list->downloadTimer != NULL)
-       {
+       if (g_download_list->downloadTimer != NULL) {
                ecore_timer_del(g_download_list->downloadTimer);
                g_download_list->downloadTimer  = NULL;
        }
 
-       if (g_download_list->downloadList != NULL)
-       {
-               if (__VppDownloadListCount() > 0)
-               {
+       if (g_download_list->downloadList != NULL) {
+               if (__VppDownloadListCount() > 0) {
                        VideoLogError("list count error[%d]!!!. some data are not destoryed!!!", __VppDownloadListCount());
                }
 
                Eina_List                       *l;
                __VppDownloadItem       *pItem;
 
-               EINA_LIST_FOREACH(g_download_list->downloadList, l, pItem)
-               {
-                       if (pItem != NULL)
-                       {
+               EINA_LIST_FOREACH(g_download_list->downloadList, l, pItem) {
+                       if (pItem != NULL) {
                                VideoLogError("list item is not freed!!!");
                                VideoSecureLogError("list item type[%d], url[%s], pDstFolder[%s], pDstName[%s]!!!", pItem->eType, pItem->pDownloadUrl, pItem->pDstFolder, pItem->pDstName);
 
@@ -1053,36 +927,29 @@ __VppDownloadCreate(__VppDownloadItem* pItem)
        download_error_e        error   = DOWNLOAD_ERROR_NONE;
 
        error   = download_create(&(pItem->id));
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                VideoLogError("download_create error");
                goto ERROR_HANDLE;
        }
 
        error   = download_set_url(pItem->id, (const char*)pItem->pDownloadUrl);
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                VideoLogError("download_set_url error");
                goto ERROR_HANDLE;
        }
 
        error   = download_set_destination(pItem->id, (const char*)(pItem->pDstFolder));
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                VideoLogError("download_set_destination error");
                goto ERROR_HANDLE;
        }
 
-       if (pItem->pDstName != NULL)
-       {
+       if (pItem->pDstName != NULL) {
                char    szDestName[PATH_MAX]    = {0,};
 
-               if (pItem->eType != VPP_DOWNLOAD_ITEM_TYPE_VIDEO_FILE && pItem->eType != VPP_DOWNLOAD_ITEM_TYPE_STORE_VIDEO_FILE)
-               {
+               if (pItem->eType != VPP_DOWNLOAD_ITEM_TYPE_VIDEO_FILE && pItem->eType != VPP_DOWNLOAD_ITEM_TYPE_STORE_VIDEO_FILE) {
                        snprintf(szDestName, PATH_MAX, "%s%s", pItem->pDstName, ".temp");
-               }
-               else
-               {
+               } else {
                        int dstlength = strlen(pItem->pDstName);
                        if (dstlength + 1 <= PATH_MAX) {
                                strncpy(szDestName, pItem->pDstName, dstlength);
@@ -1090,24 +957,19 @@ __VppDownloadCreate(__VppDownloadItem* pItem)
                }
 
                error   = download_set_file_name(pItem->id, (const char*)szDestName);
-               if (error != DOWNLOAD_ERROR_NONE)
-               {
+               if (error != DOWNLOAD_ERROR_NONE) {
                        VideoLogError("download_set_file_name error");
                        goto ERROR_HANDLE;
                }
        }
 
-       if (pItem->bSetNoti == TRUE)
-       {
+       if (pItem->bSetNoti == TRUE) {
                error   = download_set_notification_type(pItem->id, DOWNLOAD_NOTIFICATION_TYPE_ALL);
-       }
-       else
-       {
+       } else {
                error   = download_set_notification_type(pItem->id, DOWNLOAD_NOTIFICATION_TYPE_NONE);
        }
 
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                VideoLogError("download_set_notification error");
                goto ERROR_HANDLE;
        }
@@ -1116,8 +978,7 @@ __VppDownloadCreate(__VppDownloadItem* pItem)
        cb.progressCb                   = pItem->progressCb;
        cb.stateChangedCb               = pItem->stateChangedCb;
 
-       if (VppDownloadSetCb((VppDownloadHandle)pItem, cb, pItem->pUserdata) == FALSE)
-       {
+       if (VppDownloadSetCb((VppDownloadHandle)pItem, cb, pItem->pUserdata) == FALSE) {
                VideoLogError("VppDownloadSetCb error");
                VppDownloadDestroyItem((VppDownloadHandle)pItem);
 
@@ -1129,11 +990,9 @@ __VppDownloadCreate(__VppDownloadItem* pItem)
 ERROR_HANDLE:
        __VppDownloadPrintErr(error);
 
-       if (pItem->id > 0)
-       {
+       if (pItem->id > 0) {
                error   = download_destroy(pItem->id);
-               if (error != DOWNLOAD_ERROR_NONE)
-               {
+               if (error != DOWNLOAD_ERROR_NONE) {
                        VideoLogError("download_destroy error");
                        __VppDownloadPrintErr(error);
                }
@@ -1149,42 +1008,34 @@ ERROR_HANDLE:
 bool
 __VppDownloadStart(__VppDownloadItem* pItem, bool bResume)
 {
-       if (pItem == NULL)
-       {
+       if (pItem == NULL) {
                VideoLogError("pItem == NULL!!!");
                return FALSE;
        }
 
-       if (pItem->id <= 0)
-       {
+       if (pItem->id <= 0) {
                VideoLogError("pItem->id : [%d]!!!", pItem->id);
                return FALSE;
        }
 
-       if (bResume == FALSE)
-       {
+       if (bResume == FALSE) {
                VideoLogDebug("download start!!!");
-       }
-       else
-       {
+       } else {
                VideoLogDebug("download resume!!!");
        }
 
        download_error_e        error   = DOWNLOAD_ERROR_NONE;
 
-       if (pItem->eType == VPP_DOWNLOAD_ITEM_TYPE_STORE_VIDEO_FILE)
-       {
+       if (pItem->eType == VPP_DOWNLOAD_ITEM_TYPE_STORE_VIDEO_FILE) {
                error   = download_set_auto_download(pItem->id, TRUE);
-               if (error != DOWNLOAD_ERROR_NONE)
-               {
+               if (error != DOWNLOAD_ERROR_NONE) {
                        VideoLogError("download_set_auto_download error!!!");
                        __VppDownloadPrintErr(error);
                }
        }
 
        error = download_start(pItem->id);
-       if (error != DOWNLOAD_ERROR_NONE)
-       {
+       if (error != DOWNLOAD_ERROR_NONE) {
                VideoLogError("download_start error!!!");
                __VppDownloadPrintErr(error);
                return FALSE;
@@ -1201,49 +1052,40 @@ __VppDownloadStateChangedCb(int download_id, download_state_e state, void *user_
 
        VideoLogDebug("state : [%d]", state);
 
-       if (user_data == NULL)
-       {
+       if (user_data == NULL) {
                VideoLogError("user_data == NULL!!!");
                return;
        }
 
-       if (pItem->eType == VPP_DOWNLOAD_ITEM_TYPE_STORE_VIDEO_FILE && state == DOWNLOAD_STATE_DOWNLOADING)
-       {
+       if (pItem->eType == VPP_DOWNLOAD_ITEM_TYPE_STORE_VIDEO_FILE && state == DOWNLOAD_STATE_DOWNLOADING) {
                int     nRet    = 0;
-               if (pItem->pTempPath != NULL)
-               {
+               if (pItem->pTempPath != NULL) {
                        free(pItem->pTempPath);
                        pItem->pTempPath        = NULL;
                }
                nRet    = download_get_temp_path(pItem->id, &pItem->pTempPath);
-               if (nRet != DOWNLOAD_ERROR_NONE)
-               {
+               if (nRet != DOWNLOAD_ERROR_NONE) {
                        VideoLogError("download_get_temp_path failed!!!");
                        __VppDownloadPrintErr((download_error_e)nRet);
                }
 
 
-               if (pItem->pEtag != NULL)
-               {
+               if (pItem->pEtag != NULL) {
                        free(pItem->pEtag);
                        pItem->pEtag    = NULL;
                }
                nRet    = download_get_etag(pItem->id, &pItem->pEtag);
-               if (nRet != DOWNLOAD_ERROR_NONE)
-               {
+               if (nRet != DOWNLOAD_ERROR_NONE) {
                        VideoLogError("download_get_temp_path failed!!!");
                        __VppDownloadPrintErr((download_error_e)nRet);
                }
        }
 
-       if (state >= DOWNLOAD_STATE_COMPLETED && state <= DOWNLOAD_STATE_CANCELED)
-       {
-               if (pItem->bDownloading == TRUE)
-               {
+       if (state >= DOWNLOAD_STATE_COMPLETED && state <= DOWNLOAD_STATE_CANCELED) {
+               if (pItem->bDownloading == TRUE) {
                        pItem->bDownloading     = FALSE;
 
-                       if (pItem->eType < VPP_DOWNLOAD_ITEM_TYPE_STORE_VIDEO_FILE || pItem->eType > VPP_DOWNLOAD_ITEM_TYPE_VIDEO_CAPTION_FILE)
-                       {
+                       if (pItem->eType < VPP_DOWNLOAD_ITEM_TYPE_STORE_VIDEO_FILE || pItem->eType > VPP_DOWNLOAD_ITEM_TYPE_VIDEO_CAPTION_FILE) {
                                --(g_download_list->currentDownloadingCount);
                        }
                }
@@ -1266,8 +1108,7 @@ __VppDownloadProgressCb(int download_id, unsigned long long received, void *user
 
        VppDownloadPipeData     pipeData        = {0,};
 
-       if (user_data == NULL)
-       {
+       if (user_data == NULL) {
                VideoLogError("user_data == NULL!!!");
                return;
        }
@@ -1284,11 +1125,9 @@ __VppDownloadProgressCb(int download_id, unsigned long long received, void *user
 unsigned int
 __VppDownloadListCount()
 {
-       if (g_download_list != NULL && g_download_list->downloadList != NULL)
-       {
-               if (g_download_list->downloadList->accounting != NULL)
-               {
-                       return eina_list_count( g_download_list->downloadList);
+       if (g_download_list != NULL && g_download_list->downloadList != NULL) {
+               if (g_download_list->downloadList->accounting != NULL) {
+                       return eina_list_count(g_download_list->downloadList);
                }
        }
 
@@ -1299,33 +1138,26 @@ __VppDownloadListCount()
 bool
 __VppDownloadListAdd(__VppDownloadItem *pItem, bool bAppend)
 {
-       if (pItem == NULL)
-       {
+       if (pItem == NULL) {
                VideoLogError("pItem == NULL!!!");
                return FALSE;
        }
 
-       if (g_download_list == NULL)
-       {
+       if (g_download_list == NULL) {
                __VppDownloadListInitialize();
        }
 
-       if (bAppend == TRUE)
-       {
+       if (bAppend == TRUE) {
                g_download_list->downloadList   = eina_list_append(g_download_list->downloadList, (void*)pItem);
 
-               if (g_download_list->downloadList == NULL)
-               {
+               if (g_download_list->downloadList == NULL) {
                        VideoLogError("eina_list_append faile !!!");
                        return FALSE;
                }
-       }
-       else
-       {
+       } else {
                g_download_list->downloadList   = eina_list_prepend(g_download_list->downloadList, (void*)pItem);
 
-               if (g_download_list->downloadList == NULL)
-               {
+               if (g_download_list->downloadList == NULL) {
                        VideoLogError("eina_list_prepend faile !!!");
                        return FALSE;
                }
@@ -1340,27 +1172,23 @@ __VppDownloadListAdd(__VppDownloadItem *pItem, bool bAppend)
 void
 __VppDownloadListRemove(__VppDownloadItem *pItem)
 {
-       if (pItem == NULL)
-       {
+       if (pItem == NULL) {
                VideoLogError("pItem == NULL!!!");
                return;
        }
 
-       if (g_download_list == NULL)
-       {
+       if (g_download_list == NULL) {
                VideoLogError("g_download_list == NULL!!!");
                return;
        }
 
-       if (g_download_list->downloadList == NULL)
-       {
+       if (g_download_list->downloadList == NULL) {
                VideoLogError("g_download_list->downloadList == NULL!!!");
                return;
        }
 
        g_download_list->downloadList   = eina_list_remove(g_download_list->downloadList, (void*)pItem);
-       if (__VppDownloadListCount() <= 0)
-       {
+       if (__VppDownloadListCount() <= 0) {
                __VppDestoryDownloadListDestory();
        }
 }
@@ -1370,20 +1198,17 @@ __VppDownloadListRemove(__VppDownloadItem *pItem)
 void
 __VppDownloadListNextTrigger()
 {
-       if (g_download_list == NULL)
-       {
+       if (g_download_list == NULL) {
                VideoLogError("g_download_list == NULL!!!");
                return;
        }
 
-       if (g_download_list->downloadList == NULL)
-       {
+       if (g_download_list->downloadList == NULL) {
                VideoLogError("g_download_list->downloadList == NULL!!!");
                return;
        }
 
-       if (g_download_list->currentDownloadingCount > 5)
-       {
+       if (g_download_list->currentDownloadingCount > 5) {
                __VppDownloadStartTimer();
                return;
        }
@@ -1391,22 +1216,17 @@ __VppDownloadListNextTrigger()
        Eina_List                       *l;
        __VppDownloadItem       *pItem;
 
-       EINA_LIST_FOREACH(g_download_list->downloadList, l, pItem)
-       {
-               if (pItem == NULL)
-               {
+       EINA_LIST_FOREACH(g_download_list->downloadList, l, pItem) {
+               if (pItem == NULL) {
                        continue;
                }
 
-               if (pItem->bDownloading == TRUE)
-               {
+               if (pItem->bDownloading == TRUE) {
                        continue;
                }
 
-               if (pItem->id <= 0)
-               {
-                       if (__VppDownloadCreate(pItem) == FALSE)
-                       {
+               if (pItem->id <= 0) {
+                       if (__VppDownloadCreate(pItem) == FALSE) {
                                VideoLogError("__VppDownloadCreate faile !!!");
                                __VppDownloadStartTimer();
                                return;
@@ -1416,20 +1236,14 @@ __VppDownloadListNextTrigger()
                VppDownloadState        eState  = VppDownloadGetState((VppDownloadHandle)pItem);
                VideoLogDebug("eState : [%d]", eState);
 
-               if (eState == VPP_DOWNLOAD_STATE_PAUSED)
-               {
+               if (eState == VPP_DOWNLOAD_STATE_PAUSED) {
                        pItem->bDownloading = TRUE;
                        ++(g_download_list->currentDownloadingCount);
-               }
-               else
-               {
-                       if (__VppDownloadStart(pItem, FALSE) == TRUE)
-                       {
+               } else {
+                       if (__VppDownloadStart(pItem, FALSE) == TRUE) {
                                pItem->bDownloading = TRUE;
                                ++(g_download_list->currentDownloadingCount);
-                       }
-                       else
-                       {
+                       } else {
                                VideoSecureLogError("__VppDownloadStart faile : [%s : %s]!!!", pItem->pDstFolder, pItem->pDstName);
                                __VppDownloadStartTimer();
                                return;
@@ -1442,14 +1256,12 @@ __VppDownloadListNextTrigger()
 void
 __VppDownloadStartTimer()
 {
-       if (g_download_list == NULL)
-       {
+       if (g_download_list == NULL) {
                VideoLogError("g_download_list == NULL!!!");
                return;
        }
 
-       if (g_download_list->downloadTimer != NULL)
-       {
+       if (g_download_list->downloadTimer != NULL) {
                ecore_timer_del(g_download_list->downloadTimer);
                g_download_list->downloadTimer  = NULL;
        }
@@ -1464,8 +1276,7 @@ __VppDownloadPipeCb(void *data, void *pdata, unsigned int nbyte)
        VppDownloadPipeData     *pPipeData      = NULL;
        __VppDownloadItem       *pItem          = NULL;
 
-       if (pdata == NULL)
-       {
+       if (pdata == NULL) {
                VideoLogError("pdata == NULL!!!");
                return;
        }
@@ -1473,72 +1284,55 @@ __VppDownloadPipeCb(void *data, void *pdata, unsigned int nbyte)
        pPipeData       = (VppDownloadPipeData*)pdata;;
        pItem           = pPipeData->pItem;
 
-       if (pItem == NULL)
-       {
+       if (pItem == NULL) {
                VideoLogError("pItem == NULL!!!");
                return;
        }
 
-       if (pPipeData->eCbType == VPP_DOWNLOAD_CB_TYPE_STATE_CHANGED)
-       {
+       if (pPipeData->eCbType == VPP_DOWNLOAD_CB_TYPE_STATE_CHANGED) {
                char*   pDstPath                                = VppDownloadGetDownloadedFilePath((VppDownloadHandle)pItem);
 
-               if (pPipeData->eState == VPP_DOWNLOAD_STATE_COMPLETED)
-               {
+               if (pPipeData->eState == VPP_DOWNLOAD_STATE_COMPLETED) {
                        char*   pTempDstPath    = NULL;
                        int             error                   = 0;
 
                        error   = download_get_downloaded_file_path(pItem->id, &pTempDstPath);
-                       if (error != DOWNLOAD_ERROR_NONE)
-                       {
+                       if (error != DOWNLOAD_ERROR_NONE) {
                                VideoLogError("download_get_downloaded_file_path error");
                                __VppDownloadPrintErr((download_error_e)error);
-                       }
-                       else
-                       {
-                               if (pTempDstPath != NULL && pDstPath != NULL)
-                               {
-                                       if (strcmp(pTempDstPath, pDstPath) != 0)
-                                       {
-                                               if (vp_file_exists((const char*)pDstPath) == EINA_TRUE)
-                                               {
+                       } else {
+                               if (pTempDstPath != NULL && pDstPath != NULL) {
+                                       if (strcmp(pTempDstPath, pDstPath) != 0) {
+                                               if (vp_file_exists((const char*)pDstPath) == EINA_TRUE) {
                                                        vp_file_unlink((const char*)pDstPath);
                                                }
 
-                                               if (vp_file_mv(pTempDstPath, pDstPath) != EINA_TRUE)
-                                               {
+                                               if (vp_file_mv(pTempDstPath, pDstPath) != EINA_TRUE) {
                                                        VideoSecureLogError("vp_file_mv failed!!! src : [%s], dst : [%s]", pTempDstPath, pDstPath);
                                                }
                                        }
                                }
                        }
 
-                       if (pTempDstPath != NULL)
-                       {
+                       if (pTempDstPath != NULL) {
                                free(pTempDstPath);
                                pTempDstPath    = NULL;
                        }
                }
 
-               if (pItem->stateChangedCb != NULL)
-               {
+               if (pItem->stateChangedCb != NULL) {
                        pItem->stateChangedCb((VppDownloadHandle)pItem, pPipeData->eState, (const char*)pDstPath, pItem->pUserdata);
                }
 
-               if (pDstPath != NULL)
-               {
+               if (pDstPath != NULL) {
                        free(pDstPath);
                        pDstPath        = NULL;
                }
-       }
-       else
-       {
-               if (pItem->progressCb != NULL)
-               {
+       } else {
+               if (pItem->progressCb != NULL) {
                        unsigned long long      contentTotalSize        = 0;
                        download_error_e        error                           = download_get_content_size(pItem->id, &contentTotalSize);
-                       if (error != DOWNLOAD_ERROR_NONE)
-                       {
+                       if (error != DOWNLOAD_ERROR_NONE) {
                                VideoLogError("download_get_content_size error");
                                __VppDownloadPrintErr(error);
                                return;
@@ -1553,28 +1347,24 @@ __VppDownloadPipeCb(void *data, void *pdata, unsigned int nbyte)
 static Eina_Bool
 __VppDownloadTimerCb(void *data)
 {
-       if (g_download_list == NULL)
-       {
+       if (g_download_list == NULL) {
                goto TIMER_CB_RETURN;
        }
 
-       if (g_download_list->downloadList == NULL)
-       {
+       if (g_download_list->downloadList == NULL) {
                goto TIMER_CB_RETURN;
        }
 
        int cnt = __VppDownloadListCount();
 
-       if (cnt <= 0)
-       {
+       if (cnt <= 0) {
                goto TIMER_CB_RETURN;
        }
 
        __VppDownloadListNextTrigger();
 
 TIMER_CB_RETURN:
-       if (g_download_list != NULL)
-       {
+       if (g_download_list != NULL) {
                g_download_list->downloadTimer  = NULL;
        }
 
index ef70ecc..3514888 100644 (file)
@@ -136,8 +136,7 @@ Eina_Bool VpServiceParserGetServiceData(app_control_h pAppSvcHandle, VpServiceDa
                        __VpServiceParserGetMultiAppControl(pAppSvcHandle, VP_VIDEO_DATA_SUBTITLE, &pReceiveData->szMultiSubTitle, &(pReceiveData->nMultiSubTitle));
                        __VpServiceParserGetMultiAppControl(pAppSvcHandle, VP_VIDEO_DATA_POSITION, &pReceiveData->szMultiPosition, &(pReceiveData->nMultiPosition));
                        __VpServiceParserGetMultiAppControl(pAppSvcHandle, VP_VIDEO_DATA_DURATION, &pReceiveData->szMultiDuration, &(pReceiveData->nMultiDuration));
-               }
-               else {
+               } else {
                        preference_get_string(PREF_VP_PREVIEW_URL_VIDEOS, &(pReceiveData->pMediaUri));
                        if (__VpServiceParserCheckFileIsExist(pReceiveData->pMediaUri) == EINA_FALSE) {
                                preference_set_string(PREF_VP_PREVIEW_URL_VIDEOS, "");
@@ -185,12 +184,9 @@ Eina_Bool VpServiceParserGetServiceData(app_control_h pAppSvcHandle, VpServiceDa
        if (pReceiveData->eLaunchType >= VP_LAUNCH_TYPE_GALLERY) {
                pReceiveData->eSortType = __VpServiceParserGetSortType(pAppSvcHandle);
                pReceiveData->eListType = __VpServiceParserGetListType(pAppSvcHandle);
-       }
-       else if (pReceiveData->eLaunchType == VP_LAUNCH_TYPE_LIST)
-       {
+       } else if (pReceiveData->eLaunchType == VP_LAUNCH_TYPE_LIST) {
                pReceiveData->eListType = __VpServiceParserGetListType(pAppSvcHandle);
-       }
-       else {
+       } else {
                pReceiveData->eSortType = VP_VIDEO_SORT_TYPE_BY_NONE;
                pReceiveData->eListType = VP_VIDEO_PLAY_LIST_TYPE_NONE;
        }
@@ -201,64 +197,54 @@ Eina_Bool VpServiceParserGetServiceData(app_control_h pAppSvcHandle, VpServiceDa
 
 void VpServiceParserDestroyServiceData(VpServiceData *pServiceData)
 {
-       if (pServiceData == NULL)
-       {
+       if (pServiceData == NULL) {
                VideoLogError("pServiceData == NULL!!!");
                return;
        }
 
-       if (pServiceData->pMediaUri != NULL)
-       {
+       if (pServiceData->pMediaUri != NULL) {
                free(pServiceData->pMediaUri);
                pServiceData->pMediaUri = NULL;
        }
 
-       if (pServiceData->szMediaTitle != NULL)
-       {
+       if (pServiceData->szMediaTitle != NULL) {
                free(pServiceData->szMediaTitle);
                pServiceData->szMediaTitle = NULL;
        }
 
-       if (pServiceData->szDeviceID != NULL)
-       {
+       if (pServiceData->szDeviceID != NULL) {
                free(pServiceData->szDeviceID);
                pServiceData->szDeviceID = NULL;
        }
 
-       if (pServiceData->szDMRID != NULL)
-       {
+       if (pServiceData->szDMRID != NULL) {
                free(pServiceData->szDMRID);
                pServiceData->szDMRID = NULL;
        }
 
-       if (pServiceData->pStoreOrderId != NULL)
-       {
+       if (pServiceData->pStoreOrderId != NULL) {
                free(pServiceData->pStoreOrderId);
                pServiceData->pStoreOrderId = NULL;
        }
 
-       if (pServiceData->pStoreServerId != NULL)
-       {
+       if (pServiceData->pStoreServerId != NULL) {
                free(pServiceData->pStoreServerId);
                pServiceData->pStoreServerId = NULL;
        }
 
-       if (pServiceData->pStoreAppId != NULL)
-       {
+       if (pServiceData->pStoreAppId != NULL) {
                free(pServiceData->pStoreAppId);
                pServiceData->pStoreAppId = NULL;
        }
 
-       if (pServiceData->pStoreMvId != NULL)
-       {
+       if (pServiceData->pStoreMvId != NULL) {
                free(pServiceData->pStoreMvId);
                pServiceData->pStoreMvId = NULL;
        }
 
        int idx = 0;
        if (pServiceData->szMultiPath) {
-               for (idx = 0; idx < pServiceData->nMultiPath; idx++)
-               {
+               for (idx = 0; idx < pServiceData->nMultiPath; idx++) {
                        if (pServiceData->szMultiPath[idx]) {
                                free(pServiceData->szMultiPath[idx]);
                                pServiceData->szMultiPath[idx] = NULL;
@@ -269,8 +255,7 @@ void VpServiceParserDestroyServiceData(VpServiceData *pServiceData)
        }
 
        if (pServiceData->szIsSameAP) {
-               for (idx = 0; idx < pServiceData->nSameAP; idx++)
-               {
+               for (idx = 0; idx < pServiceData->nSameAP; idx++) {
                        if (pServiceData->szIsSameAP[idx]) {
                                free(pServiceData->szIsSameAP[idx]);
                                pServiceData->szIsSameAP[idx] = NULL;
@@ -281,8 +266,7 @@ void VpServiceParserDestroyServiceData(VpServiceData *pServiceData)
        }
 
        if (pServiceData->szMultiSubTitle) {
-               for (idx = 0; idx < pServiceData->nMultiSubTitle; idx++)
-               {
+               for (idx = 0; idx < pServiceData->nMultiSubTitle; idx++) {
                        if (pServiceData->szMultiSubTitle[idx]) {
                                free(pServiceData->szMultiSubTitle[idx]);
                                pServiceData->szMultiSubTitle[idx] = NULL;
@@ -294,8 +278,7 @@ void VpServiceParserDestroyServiceData(VpServiceData *pServiceData)
 
 
        if (pServiceData->szMultiTitle) {
-               for (idx = 0; idx < pServiceData->nMultiTitle; idx++)
-               {
+               for (idx = 0; idx < pServiceData->nMultiTitle; idx++) {
                        if (pServiceData->szMultiTitle[idx]) {
                                free(pServiceData->szMultiTitle[idx]);
                                pServiceData->szMultiTitle[idx] = NULL;
@@ -306,8 +289,7 @@ void VpServiceParserDestroyServiceData(VpServiceData *pServiceData)
        }
 
        if (pServiceData->szMultiPosition) {
-               for (idx = 0; idx < pServiceData->nMultiPosition; idx++)
-               {
+               for (idx = 0; idx < pServiceData->nMultiPosition; idx++) {
                        if (pServiceData->szMultiPosition[idx]) {
                                free(pServiceData->szMultiPosition[idx]);
                                pServiceData->szMultiPosition[idx] = NULL;
@@ -318,8 +300,7 @@ void VpServiceParserDestroyServiceData(VpServiceData *pServiceData)
        }
 
        if (pServiceData->szMultiDuration) {
-               for (idx = 0; idx < pServiceData->nMultiDuration; idx++)
-               {
+               for (idx = 0; idx < pServiceData->nMultiDuration; idx++) {
                        if (pServiceData->szMultiDuration[idx]) {
                                free(pServiceData->szMultiDuration[idx]);
                                pServiceData->szMultiDuration[idx] = NULL;
@@ -359,7 +340,7 @@ static char *__VpServiceParserGetMediaUri(app_control_h pAppSvcHandle)
                return NULL;
        }
 
-       if (strstr(pUri,VP_VIDEO_FILE_PREFIX)) {
+       if (strstr(pUri, VP_VIDEO_FILE_PREFIX)) {
                char *szURL = calloc(1, strlen(pUri) - strlen(VP_VIDEO_FILE_PREFIX) + 1);
                if (szURL == NULL) {
                        VideoLogError("szURL == NULL!!!");
@@ -372,8 +353,7 @@ static char *__VpServiceParserGetMediaUri(app_control_h pAppSvcHandle)
                        pUri = NULL;
                }
                return szURL;
-       }
-       else {
+       } else {
                return pUri;
        }
 
@@ -411,7 +391,8 @@ static bool __VpServiceParserGetMultiAppControl(app_control_h pAppSvcHandle, con
 }
 
 
-static VpLaunchType __VpServiceParserGetLaunchType(app_control_h pAppSvcHandle) {
+static VpLaunchType __VpServiceParserGetLaunchType(app_control_h pAppSvcHandle)
+{
        if (pAppSvcHandle == NULL) {
                VideoLogError("pAppSvcHandle == NULL!!!");
                return VP_LAUNCH_TYPE_NONE;
@@ -421,11 +402,11 @@ static VpLaunchType __VpServiceParserGetLaunchType(app_control_h pAppSvcHandle)
        char* pLaunchMode = NULL;
        VpLaunchType    eLaunchType = VP_LAUNCH_TYPE_NONE;
 
-       if (app_control_get_extra_data (pAppSvcHandle, "View Mode", &pLaunchMode) == APP_CONTROL_ERROR_NONE) {
+       if (app_control_get_extra_data(pAppSvcHandle, "View Mode", &pLaunchMode) == APP_CONTROL_ERROR_NONE) {
                if (pLaunchMode != NULL) {
                        if (strncmp(pLaunchMode, "EMAIL", strlen(pLaunchMode)) == 0) {
-                               eLaunchType = VP_LAUNCH_TYPE_EMAIL;     
-                               goto RESULT_RETURN;             
+                               eLaunchType = VP_LAUNCH_TYPE_EMAIL;
+                               goto RESULT_RETURN;
                        }
                }
        }
@@ -443,17 +424,13 @@ static VpLaunchType __VpServiceParserGetLaunchType(app_control_h pAppSvcHandle)
 
        if (strcmp(pLaunchingByOtherApp, "gallery") == 0) {
                eLaunchType = VP_LAUNCH_TYPE_GALLERY;
-       }
-       else if (strcmp(pLaunchingByOtherApp, "myfile") == 0) {
+       } else if (strcmp(pLaunchingByOtherApp, "myfile") == 0) {
                eLaunchType = VP_LAUNCH_TYPE_MYFILE;
-       }
-       else if (strcmp(pLaunchingByOtherApp, "store") == 0) {
+       } else if (strcmp(pLaunchingByOtherApp, "store") == 0) {
                eLaunchType = VP_LAUNCH_TYPE_STORE;
-       }
-       else if (strcmp(pLaunchingByOtherApp, "list") == 0) {
+       } else if (strcmp(pLaunchingByOtherApp, "list") == 0) {
                eLaunchType = VP_LAUNCH_TYPE_LIST;
-       }
-       else if (strcmp(pLaunchingByOtherApp, "image_viewer") == 0) {
+       } else if (strcmp(pLaunchingByOtherApp, "image_viewer") == 0) {
                char    *pEditMode      = NULL;
 
                if (app_control_get_extra_data(pAppSvcHandle, VP_VIDEO_EDIT_MODE_KEY, &pEditMode) != APP_CONTROL_ERROR_NONE) {
@@ -463,34 +440,27 @@ static VpLaunchType __VpServiceParserGetLaunchType(app_control_h pAppSvcHandle)
                                free(pEditMode);
                                pEditMode = NULL;
                        }
-               }
-               else {
+               } else {
                        if (pEditMode != NULL) {
                                if (strcmp(pEditMode, "trim") == 0) {
                                        eLaunchType     = VP_LAUNCH_TYPE_IMAGE_VIEWER_TRIM;
-                               }
-                               else {
+                               } else {
                                        eLaunchType     = VP_LAUNCH_TYPE_IMAGE_VIEWER;
                                }
 
                                free(pEditMode);
                                pEditMode       = NULL;
-                       }
-                       else {
+                       } else {
                                eLaunchType     = VP_LAUNCH_TYPE_IMAGE_VIEWER;
                        }
                }
-       }
-       else if (strcmp(pLaunchingByOtherApp, "email") == 0) {
+       } else if (strcmp(pLaunchingByOtherApp, "email") == 0) {
                eLaunchType = VP_LAUNCH_TYPE_EMAIL;
-       }
-       else if (strcmp(pLaunchingByOtherApp, "message") == 0) {
+       } else if (strcmp(pLaunchingByOtherApp, "message") == 0) {
                eLaunchType = VP_LAUNCH_TYPE_MMS;
-       }
-       else if (strcmp(pLaunchingByOtherApp, "light_play_view") == 0) {
+       } else if (strcmp(pLaunchingByOtherApp, "light_play_view") == 0) {
                eLaunchType = VP_LAUNCH_TYPE_SIMPLE;
-       }
-       else {
+       } else {
                eLaunchType = VP_LAUNCH_TYPE_NONE;
        }
 
@@ -673,26 +643,22 @@ static void __VpServiceParserGetStoreOrderInfo(app_control_h pAppSvcHandle, VpSe
        return;
 
 NOT_EXISTED_INFO:
-       if (pReceiveData->pStoreOrderId != NULL)
-       {
+       if (pReceiveData->pStoreOrderId != NULL) {
                free(pReceiveData->pStoreOrderId);
                pReceiveData->pStoreOrderId     = NULL;
        }
 
-       if (pReceiveData->pStoreAppId != NULL)
-       {
+       if (pReceiveData->pStoreAppId != NULL) {
                free(pReceiveData->pStoreAppId);
                pReceiveData->pStoreAppId       = NULL;
        }
 
-       if (pReceiveData->pStoreMvId != NULL)
-       {
+       if (pReceiveData->pStoreMvId != NULL) {
                free(pReceiveData->pStoreMvId);
                pReceiveData->pStoreMvId        = NULL;
        }
 
-       if (pReceiveData->pStoreServerId != NULL)
-       {
+       if (pReceiveData->pStoreServerId != NULL) {
                free(pReceiveData->pStoreServerId);
                pReceiveData->pStoreServerId    = NULL;
        }
@@ -712,14 +678,11 @@ static Eina_Bool __VpServiceParserGetStreamingLaunch(char *pUri)
 
        if (strstr(pUri, "rtp") != NULL) {
                return EINA_TRUE;
-       }
-       else if (strstr(pUri, "rtsp") != NULL) {
+       } else if (strstr(pUri, "rtsp") != NULL) {
                return EINA_TRUE;
-       }
-       else if (strstr(pUri, "http") != NULL) {
+       } else if (strstr(pUri, "http") != NULL) {
                return EINA_TRUE;
-       }
-       else if (strstr(pUri, "https") != NULL) {
+       } else if (strstr(pUri, "https") != NULL) {
                return EINA_TRUE;
        }
 
@@ -964,20 +927,15 @@ static VpVideoSortType __VpServiceParserGetSortType(app_control_h pAppSvcHandle)
 
        if (!strcmp(pSortType, "name_asc")) {
                eSortType = VP_VIDEO_SORT_TYPE_BY_NAME_ASC;
-       }
-       else if (!strcmp(pSortType, "name_desc")) {
+       } else if (!strcmp(pSortType, "name_desc")) {
                eSortType = VP_VIDEO_SORT_TYPE_BY_NAME_DESC;
-       }
-       else if (!strcmp(pSortType, "date_asc")) {
+       } else if (!strcmp(pSortType, "date_asc")) {
                eSortType = VP_VIDEO_SORT_TYPE_BY_DATE_ASC;
-       }
-       else if (!strcmp(pSortType, "date_desc")) {
+       } else if (!strcmp(pSortType, "date_desc")) {
                eSortType = VP_VIDEO_SORT_TYPE_BY_DATE_DESC;
-       }
-       else if (!strcmp(pSortType, "none")) {
+       } else if (!strcmp(pSortType, "none")) {
                eSortType = VP_VIDEO_SORT_TYPE_BY_NONE;
-       }
-       else {
+       } else {
                eSortType = VP_VIDEO_SORT_TYPE_BY_NAME_DESC;
        }
 
@@ -1017,17 +975,13 @@ static VpVideoPlayListType __VpServiceParserGetListType(app_control_h pAppSvcHan
 
        if (!strcmp(pPlayType, "folder")) {
                ePlayType = VP_VIDEO_PLAY_LIST_TYPE_FOLDER;
-       }
-       else if (!strcmp(pPlayType, "all_folder_video")) {
+       } else if (!strcmp(pPlayType, "all_folder_video")) {
                ePlayType = VP_VIDEO_PLAY_LIST_TYPE_ALL_FOLDER_GALLERY;
-       }
-       else if (!strcmp(pPlayType, "tag_video")) {
+       } else if (!strcmp(pPlayType, "tag_video")) {
                ePlayType = VP_VIDEO_PLAY_LIST_TYPE_TAG_GALLERY;
-       }
-       else if (!strcmp(pPlayType, "favorite"))        {
+       } else if (!strcmp(pPlayType, "favorite"))      {
                ePlayType = VP_VIDEO_PLAY_LIST_TYPE_FAVORITE;
-       }
-       else {
+       } else {
                ePlayType = VP_VIDEO_PLAY_LIST_TYPE_NONE;
        }
 
@@ -1064,7 +1018,7 @@ static Eina_Bool __VpServiceParserCheckFileIsExist(char *szFilePath)
                return EINA_FALSE;
        }
        Eina_Bool bIsExist = EINA_FALSE;
-       
+
        if (vp_file_exists(szFilePath)) {
                bIsExist = EINA_TRUE;
        }
index 955b9ba..6191c53 100644 (file)
@@ -75,54 +75,53 @@ static Eina_Bool __appControl_idler_cb(void *data)
        bool bRelaunchCaller = FALSE;
        VideoLogError("LaunchType = %d", pAppData->pServiceData->eLaunchType);
 
-       switch (pAppData->pServiceData->eLaunchType)
-       {
-               case VP_LAUNCH_TYPE_STORE:
-                       nLaunchingType = VIDEO_PLAY_TYPE_STORE;
-                       bRelaunchCaller = TRUE;
-                       VideoLogWarning("== VIDEO_PLAY_TYPE_STORE ==");
-                       break;
-               case VP_LAUNCH_TYPE_LIST:
-                       nLaunchingType = VIDEO_PLAY_TYPE_LIST;
-                       bRelaunchCaller = TRUE;
-                       VideoLogWarning("== VIDEO_PLAY_TYPE_LIST ==");
-                       break;
-               case VP_LAUNCH_TYPE_NONE:
-               case VP_LAUNCH_TYPE_MAX:
-                       nLaunchingType = VIDEO_PLAY_TYPE_OTHER;
-                       VideoLogWarning("== VIDEO_PLAY_TYPE_OTHER ==");
-                       break;
-               case VP_LAUNCH_TYPE_EMAIL:
-                       nLaunchingType = VIDEO_PLAY_TYPE_EMAIL;
-                       VideoLogWarning("== VIDEO_PLAY_TYPE_EMAIL ==");
-                       break;
-               case VP_LAUNCH_TYPE_MMS:
-                       nLaunchingType = VIDEO_PLAY_TYPE_MESSAGE;
-                       VideoLogWarning("== VIDEO_PLAY_TYPE_MESSAGE ==");
-                       break;
-               case VP_LAUNCH_TYPE_MYFILE:
-                       nLaunchingType = VIDEO_PLAY_TYPE_MYFILE;
-                       VideoLogWarning("== VP_LAUNCH_TYPE_MYFILE ==");
-                       break;
-               case VP_LAUNCH_TYPE_GALLERY:
-                       nLaunchingType = VIDEO_PLAY_TYPE_GALLERY;
-                       VideoLogWarning("== VIDEO_PLAY_TYPE_GALLERY ==");
-                       break;
-               case VP_LAUNCH_TYPE_IMAGE_VIEWER:
-                       nLaunchingType = VIDEO_PLAY_TYPE_GALLERY;
-                       VideoLogWarning("== VIDEO_PLAY_TYPE_GALLERY ==");
-                       break;
-               case VP_LAUNCH_TYPE_IMAGE_VIEWER_TRIM:
-                       nLaunchingType = VIDEO_PLAY_TYPE_GALLERY;
-                       VideoLogWarning("== VP_LAUNCH_TYPE_IMAGE_VIEWER_TRIM ==");
-                       break;
-               case VP_LAUNCH_TYPE_MULTI_PATH:
-                       nLaunchingType = VIDEO_PLAY_TYPE_MULTI_PATH;
-                       break;
-               case VP_LAUNCH_TYPE_SIMPLE:
-                       nLaunchingType = VIDEO_PLAY_TYPE_PREVIEW;
-                       VideoLogWarning("== VIDEO_PLAY_TYPE_PREVIEW ==");
-                       break;
+       switch (pAppData->pServiceData->eLaunchType) {
+       case VP_LAUNCH_TYPE_STORE:
+               nLaunchingType = VIDEO_PLAY_TYPE_STORE;
+               bRelaunchCaller = TRUE;
+               VideoLogWarning("== VIDEO_PLAY_TYPE_STORE ==");
+               break;
+       case VP_LAUNCH_TYPE_LIST:
+               nLaunchingType = VIDEO_PLAY_TYPE_LIST;
+               bRelaunchCaller = TRUE;
+               VideoLogWarning("== VIDEO_PLAY_TYPE_LIST ==");
+               break;
+       case VP_LAUNCH_TYPE_NONE:
+       case VP_LAUNCH_TYPE_MAX:
+               nLaunchingType = VIDEO_PLAY_TYPE_OTHER;
+               VideoLogWarning("== VIDEO_PLAY_TYPE_OTHER ==");
+               break;
+       case VP_LAUNCH_TYPE_EMAIL:
+               nLaunchingType = VIDEO_PLAY_TYPE_EMAIL;
+               VideoLogWarning("== VIDEO_PLAY_TYPE_EMAIL ==");
+               break;
+       case VP_LAUNCH_TYPE_MMS:
+               nLaunchingType = VIDEO_PLAY_TYPE_MESSAGE;
+               VideoLogWarning("== VIDEO_PLAY_TYPE_MESSAGE ==");
+               break;
+       case VP_LAUNCH_TYPE_MYFILE:
+               nLaunchingType = VIDEO_PLAY_TYPE_MYFILE;
+               VideoLogWarning("== VP_LAUNCH_TYPE_MYFILE ==");
+               break;
+       case VP_LAUNCH_TYPE_GALLERY:
+               nLaunchingType = VIDEO_PLAY_TYPE_GALLERY;
+               VideoLogWarning("== VIDEO_PLAY_TYPE_GALLERY ==");
+               break;
+       case VP_LAUNCH_TYPE_IMAGE_VIEWER:
+               nLaunchingType = VIDEO_PLAY_TYPE_GALLERY;
+               VideoLogWarning("== VIDEO_PLAY_TYPE_GALLERY ==");
+               break;
+       case VP_LAUNCH_TYPE_IMAGE_VIEWER_TRIM:
+               nLaunchingType = VIDEO_PLAY_TYPE_GALLERY;
+               VideoLogWarning("== VP_LAUNCH_TYPE_IMAGE_VIEWER_TRIM ==");
+               break;
+       case VP_LAUNCH_TYPE_MULTI_PATH:
+               nLaunchingType = VIDEO_PLAY_TYPE_MULTI_PATH;
+               break;
+       case VP_LAUNCH_TYPE_SIMPLE:
+               nLaunchingType = VIDEO_PLAY_TYPE_PREVIEW;
+               VideoLogWarning("== VIDEO_PLAY_TYPE_PREVIEW ==");
+               break;
        }
 
        if (pAppData->pServiceData->bStreaming) {
@@ -142,7 +141,7 @@ static Eina_Bool __appControl_idler_cb(void *data)
        }
 
        if ((bPopupMode == TRUE && pAppData->pServiceData->szDMRID == NULL)
-          ||   (g_strcmp0(pAppData->pValStartup, "2") == 0 && bIsRealize)) {// pAppData->values[0] == 2 for multi window; change video url only, don't destroy the player window.
+               ||      (g_strcmp0(pAppData->pValStartup, "2") == 0 && bIsRealize)) {// pAppData->values[0] == 2 for multi window; change video url only, don't destroy the player window.
                char *szCurURL = NULL;
                bool bVisible = FALSE;
 
@@ -161,8 +160,9 @@ static Eina_Bool __appControl_idler_cb(void *data)
                                if (pAppData->pServiceData->szMultiPath[0] != NULL) {
                                        char *multi_path = strstr(pAppData->pServiceData->szMultiPath[0], "file://");
 
-                                       if (multi_path != NULL)
+                                       if (multi_path != NULL) {
                                                req_uri = strdup(multi_path);
+                                       }
                                }
                        }
                        if (req_uri) {
@@ -210,13 +210,12 @@ static Eina_Bool __appControl_idler_cb(void *data)
                        VideoLogError("vp_play_view_set_url is fail");
                }
 
-               vp_play_view_set_launching_mode (pAppData->pPlayView, nLaunchingType);
+               vp_play_view_set_launching_mode(pAppData->pPlayView, nLaunchingType);
                if (szCurURL) {
                        free(szCurURL);
-               szCurURL = NULL;
+                       szCurURL = NULL;
                }
-       }
-       else {
+       } else {
                if (pAppData->pPlayView) {
 #ifdef _PERF_TEST_
                        vp_play_view_reset(pAppData->pPlayView, nMode);
@@ -284,8 +283,7 @@ static Eina_Bool __appControl_idler_cb(void *data)
                        VideoLogError("vp_play_view_set_stop_after_repeat_mode is fail");
                }
 
-               for (idx = 0; idx < pAppData->pServiceData->nMultiPath; idx++)
-               {
+               for (idx = 0; idx < pAppData->pServiceData->nMultiPath; idx++) {
                        if (pAppData->pServiceData->szMultiPath[idx] == NULL) {
                                continue;
                        }
@@ -322,16 +320,15 @@ static Eina_Bool __appControl_idler_cb(void *data)
                                        }
                                }
                                vp_play_view_add_multi_path(pAppData->pPlayView,
-                                                                               pAppData->pServiceData->szMultiPath[idx],
-                                                                               szTitle,
-                                                                               szSubtitle,
-                                                                               nPosition,
-                                                                               nDuration,
-                                                                               FALSE);
+                                                           pAppData->pServiceData->szMultiPath[idx],
+                                                           szTitle,
+                                                           szSubtitle,
+                                                           nPosition,
+                                                           nDuration,
+                                                           FALSE);
                        }
                }
-       }
-       else {
+       } else {
                int nPosition = 0;
                if (pAppData->pServiceData->bStoreDownload) {
                        nPosition =  pAppData->pServiceData->nStorePlayedTime;
@@ -353,11 +350,11 @@ static Eina_Bool __appControl_idler_cb(void *data)
                }
 
                if (pAppData->pServiceData->bStoreDownload == EINA_TRUE && pAppData->pServiceData->pStoreOrderId != NULL) {
-                       if (!vp_play_view_set_store_order_info( pAppData->pPlayView ,
-                                                                                                       pAppData->pServiceData->pStoreOrderId,
-                                                                                                       pAppData->pServiceData->pStoreServerId,
-                                                                                                       pAppData->pServiceData->pStoreAppId,
-                                                                                                       pAppData->pServiceData->pStoreMvId)) {
+                       if (!vp_play_view_set_store_order_info(pAppData->pPlayView ,
+                                                              pAppData->pServiceData->pStoreOrderId,
+                                                              pAppData->pServiceData->pStoreServerId,
+                                                              pAppData->pServiceData->pStoreAppId,
+                                                              pAppData->pServiceData->pStoreMvId)) {
                                VideoLogError("vp_play_view_set_store_order_info is fail");
                        }
                }
@@ -365,8 +362,7 @@ static Eina_Bool __appControl_idler_cb(void *data)
 
        if (pAppData->pServiceData->eListType == VP_VIDEO_PLAY_LIST_TYPE_FOLDER) {
                vp_play_view_set_list_mode(pAppData->pPlayView, VIDEO_PLAY_LIST_TYPE_FOLDER);
-       }
-       else {
+       } else {
                vp_play_view_set_list_mode(pAppData->pPlayView, VIDEO_PLAY_LIST_TYPE_ALL);
        }
 
@@ -413,8 +409,9 @@ static int __raise_win(Window win)
 
        Display *d = XOpenDisplay(NULL);
 
-       if (!a_active_win)
+       if (!a_active_win) {
                a_active_win = XInternAtom(d, "_NET_ACTIVE_WINDOW", False);
+       }
 
        root = XDefaultRootWindow(d);
 
@@ -429,7 +426,7 @@ static int __raise_win(Window win)
        xev.xclient.data.l[3] = 0;
        xev.xclient.data.l[4] = 0;
        XSendEvent(d, root, False,
-                  SubstructureRedirectMask | SubstructureNotifyMask, &xev);
+                  SubstructureRedirectMask | SubstructureNotifyMask, &xev);
 
        XCloseDisplay(d);
 
@@ -498,14 +495,12 @@ static void __appControl(app_control_h pAppSvcHandle, void *pUserData)
 //////////////////////////////////////////////////////////////////////////////////////////////////////
 // for sidesync
 //////////////////////////////////////////////////////////////////////////////////////////////////////
-       if (pAppData->pServiceData->pMediaUri != NULL)
-       {
+       if (pAppData->pServiceData->pMediaUri != NULL) {
                bool    is_pss  = FALSE;
 
                VideoSecureLogInfo("is_pss : [%d]", is_pss);
 
-               if (is_pss == TRUE)
-               {
+               if (is_pss == TRUE) {
                        VideoSecureLogInfo("ss-play: %s", pAppData->pServiceData->pMediaUri);
                        return;
                }
@@ -630,28 +625,25 @@ void vp_low_battery(app_event_info_h event_info, void *data)
        int ret = app_event_get_low_battery_status(event_info, &status);
        if (ret == APP_ERROR_NONE) {
                if (status <= APP_EVENT_LOW_BATTERY_POWER_OFF) {
-                        __appExit(ad);
+                       __appExit(ad);
                }
-       }
-       else {
-                VideoLogInfo("Failed to get battery status. ret %d", ret);
+       } else {
+               VideoLogInfo("Failed to get battery status. ret %d", ret);
        }
        return;
 }
 
-static void __appUpdateLanguage(app_event_info_h pEventInfo,void *pUserData)
+static void __appUpdateLanguage(app_event_info_h pEventInfo, void *pUserData)
 {
        char *locale = NULL;
        int retcode = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &locale);
 
        if (retcode != SYSTEM_SETTINGS_ERROR_NONE) {
                VideoLogInfo("[ERR] failed to get updated language!!! [retcode = retcode]", retcode);
-       }
-       else
-       {
+       } else {
                if (locale) {
-                       elm_language_set(locale);
-                       free(locale);
+                       elm_language_set(locale);
+                       free(locale);
                }
        }
 }