[0.6.145] remove dead path - video hub 00/192800/2
authorEunhae Choi <eunhae1.choi@samsung.com>
Fri, 9 Nov 2018 10:23:29 +0000 (19:23 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Mon, 12 Nov 2018 04:56:25 +0000 (13:56 +0900)
Change-Id: Ia402956caa514018bd5418c9861869b892cf675a

src/include/mm_player.h
src/include/mm_player_priv.h
src/mm_player.c
src/mm_player_gst.c
src/mm_player_priv.c

index eea2322..c9e32c4 100644 (file)
@@ -1274,24 +1274,6 @@ int mm_player_get_current_track(MMHandleType hplayer, MMPlayerTrackType type, in
 int mm_player_set_external_subtitle_path(MMHandleType player, const char* path);
 
 /**
- * This function is to set download mode of video hub
- *
- * @param       player         [in]    handle of player
- * @param       mode           [in]    download mode
- * @return      This function returns zero on success, or negative value with error code.
- */
-int mm_player_set_video_hub_download_mode(MMHandleType player, bool mode);
-
-/**
- * This function is to set using sync handler.
- *
- * @param       player         [in]    handle of player
- * @param       enable         [in]    enable/disable
- * @return      This function returns zero on success, or negative value with error code.
- */
-int mm_player_enable_sync_handler(MMHandleType player, bool enable);
-
-/**
  * This function is to set uri.
  *
  * @param   player [in] handle of player
index a1ddc2d..9a09eab 100644 (file)
@@ -779,10 +779,6 @@ typedef struct {
        /* initialize values */
        mm_player_ini_t ini;
 
-       /* just for native app (video hub) */
-       gboolean video_hub_download_mode;
-       gboolean sync_handler;
-
        /* store dump pad list */
        GList *dump_list;
 
@@ -887,9 +883,7 @@ int _mmplayer_audio_effect_custom_apply(mm_player_t *player);
 int _mmplayer_set_audiostream_cb(MMHandleType hplayer, bool sync, mm_player_audio_stream_callback callback, void *user_param);
 int _mmplayer_change_track_language(MMHandleType hplayer, MMPlayerTrackType type, int index);
 int _mmplayer_sync_subtitle_pipeline(mm_player_t *player);
-int _mmplayer_set_video_hub_download_mode(MMHandleType hplayer, bool mode);
 int _mmplayer_use_system_clock(MMHandleType hplayer);
-int _mmplayer_enable_sync_handler(MMHandleType hplayer, bool enable);
 int _mmplayer_set_file_buffering_path(MMHandleType hplayer, const char *file_path);
 int _mmplayer_set_uri(MMHandleType hplayer, const char *uri);
 int _mmplayer_set_next_uri(MMHandleType hplayer, const char *uri, bool is_first_path);
index e131642..61dfbfb 100644 (file)
@@ -686,36 +686,6 @@ int mm_player_get_track_language_code(MMHandleType player,  MMPlayerTrackType ty
        return result;
 }
 
-int mm_player_set_video_hub_download_mode(MMHandleType player, bool mode)
-{
-       int result = MM_ERROR_NONE;
-
-       MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
-
-       MMPLAYER_CMD_LOCK(player);
-
-       result = _mmplayer_set_video_hub_download_mode(player, mode);
-
-       MMPLAYER_CMD_UNLOCK(player);
-
-       return result;
-}
-
-int mm_player_enable_sync_handler(MMHandleType player, bool enable)
-{
-       int result = MM_ERROR_NONE;
-
-       MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
-
-       MMPLAYER_CMD_LOCK(player);
-
-       result = _mmplayer_enable_sync_handler(player, enable);
-
-       MMPLAYER_CMD_UNLOCK(player);
-
-       return result;
-}
-
 int mm_player_set_uri(MMHandleType player, const char *uri)
 {
        int result = MM_ERROR_NONE;
index a2a3e0d..597b74e 100644 (file)
@@ -2124,14 +2124,6 @@ __mmplayer_gst_bus_sync_callback(GstBus * bus, GstMessage * message, gpointer da
        }
 
        switch (GST_MESSAGE_TYPE(message)) {
-       case GST_MESSAGE_STATE_CHANGED:
-               /* post directly for fast launch */
-               if (player->sync_handler) {
-                       __mmplayer_gst_bus_msg_callback(message, player);
-                       reply = GST_BUS_DROP;
-               } else
-                       reply = GST_BUS_PASS;
-               break;
        case GST_MESSAGE_TAG:
                __mmplayer_gst_extract_tag_from_msg(player, message);
 
index 8e1edcc..c1139d6 100644 (file)
@@ -4198,7 +4198,6 @@ __mmplayer_gst_destroy_pipeline(mm_player_t* player)
        player->no_more_pad = FALSE;
        player->num_dynamic_pad = 0;
        player->demux_pad_index = 0;
-       player->video_hub_download_mode = 0;
 
        MMPLAYER_SUBTITLE_INFO_LOCK(player);
        player->subtitle_language_list = NULL;
@@ -7498,9 +7497,6 @@ __mmplayer_gst_element_added(GstElement *bin, GstElement *element, gpointer data
        if (g_strrstr(factory_name, "asfdemux")) {
                LOGD("set file-location %s\n", player->profile.uri);
                g_object_set(G_OBJECT(element), "file-location", player->profile.uri, NULL);
-
-               if (player->video_hub_download_mode == TRUE)
-                       g_object_set(G_OBJECT(element), "downloading-mode", player->video_hub_download_mode, NULL);
        } else if (g_strrstr(factory_name, "legacyh264parse")) {
                LOGD("[%s] output-format to legacyh264parse\n", "mssdemux");
                g_object_set(G_OBJECT(element), "output-format", 1, NULL); /* NALU/Byte Stream format */
@@ -8396,38 +8392,6 @@ int _mmplayer_get_subtitle_silent(MMHandleType hplayer, int* silent)
        return MM_ERROR_NONE;
 }
 
-int
-_mmplayer_set_video_hub_download_mode(MMHandleType hplayer, bool mode)
-{
-       mm_player_t* player = (mm_player_t*) hplayer;
-
-       MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
-
-       if (MMPLAYER_CURRENT_STATE(player) != MM_PLAYER_STATE_NULL) {
-               MMPLAYER_PRINT_STATE(player);
-               LOGE("wrong-state : can't set the download mode to parse");
-               return MM_ERROR_PLAYER_INVALID_STATE;
-       }
-
-       LOGD("set video hub download mode to %s", (mode) ? "ON" : "OFF");
-       player->video_hub_download_mode = mode;
-
-       return MM_ERROR_NONE;
-}
-
-int
-_mmplayer_enable_sync_handler(MMHandleType hplayer, bool enable)
-{
-       mm_player_t* player = (mm_player_t*) hplayer;
-
-       MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
-
-       LOGD("enable sync handler : %s", (enable) ? "ON" : "OFF");
-       player->sync_handler = enable;
-
-       return MM_ERROR_NONE;
-}
-
 static gboolean
 __mmplayer_add_dump_buffer_probe(mm_player_t *player, GstElement *element)
 {