Rename enum string for sharing with audio file 73/209173/1
authorHyunil <hyunil46.park@samsung.com>
Wed, 3 Jul 2019 06:39:17 +0000 (15:39 +0900)
committerHyunil <hyunil46.park@samsung.com>
Wed, 3 Jul 2019 06:39:17 +0000 (15:39 +0900)
Change-Id: Ic36bfcfaf3061014d905891d97dae55386274ca0
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
test/media_streamer_test.c

index 8c480c3..2194337 100644 (file)
@@ -45,7 +45,7 @@ typedef enum {
        SUBMENU_STATE_UNKNOWN,
        SUBMENU_STATE_GETTING_IP,
        SUBMENU_STATE_GETTING_SEEK_POS,
-       SUBMENU_STATE_GETTING_VIDEOFILE_URI,
+       SUBMENU_STATE_GETTING_FILE_URI,
        SUBMENU_STATE_GETTING_SUBFILE_URI,
        SUBMENU_STATE_AUTOPLUG,
        SUBMENU_STATE_SCENARIO,
@@ -1198,7 +1198,7 @@ static void display_menu(void)
                case SUBMENU_STATE_GETTING_SEEK_POS:
                        display_getting_seek_position_menu();
                        break;
-               case SUBMENU_STATE_GETTING_VIDEOFILE_URI:
+               case SUBMENU_STATE_GETTING_FILE_URI:
                        display_getting_uri_menu();
                        break;
                case SUBMENU_STATE_GETTING_SUBFILE_URI:
@@ -1408,19 +1408,19 @@ void _interpret_adaptive_scenario_menu(char *cmd)
        if (len == 1) {
                if (!strncmp(cmd, "1", len)) {
                        g_scenario_mode = SCENARIO_MODE_ADAPTIVE_SERVER;
-                       g_sub_menu_state = SUBMENU_STATE_GETTING_VIDEOFILE_URI;
+                       g_sub_menu_state = SUBMENU_STATE_GETTING_FILE_URI;
                        return;
                } else if (!strncmp(cmd, "2", len)) {
                        g_scenario_mode = SCENARIO_MODE_ADAPTIVE_SERVER_MANUAL;
-                       g_sub_menu_state = SUBMENU_STATE_GETTING_VIDEOFILE_URI;
+                       g_sub_menu_state = SUBMENU_STATE_GETTING_FILE_URI;
                        return;
                } else if (!strncmp(cmd, "3", len)) {
                        g_scenario_mode = SCENARIO_MODE_ADAPTIVE_CLIENT_AUTO;
-                       g_sub_menu_state = SUBMENU_STATE_GETTING_VIDEOFILE_URI;
+                       g_sub_menu_state = SUBMENU_STATE_GETTING_FILE_URI;
                        return;
                } else if (!strncmp(cmd, "4", len)) {
                        g_scenario_mode = SCENARIO_MODE_ADAPTIVE_CLIENT_MANUAL;
-                       g_sub_menu_state = SUBMENU_STATE_GETTING_VIDEOFILE_URI;
+                       g_sub_menu_state = SUBMENU_STATE_GETTING_FILE_URI;
                        return;
                }
        }
@@ -1434,15 +1434,15 @@ void _interpret_autoplug_playing_scenario_menu(char *cmd)
        if (len == 1) {
                if (!strncmp(cmd, "1", len)) {
                        g_scenario_mode = SCENARIO_MODE_FILE_PLAY_VIDEO_AUDIO;
-                       g_sub_menu_state = SUBMENU_STATE_GETTING_VIDEOFILE_URI;
+                       g_sub_menu_state = SUBMENU_STATE_GETTING_FILE_URI;
                        return;
                } else if (!strncmp(cmd, "2", len)) {
                        g_scenario_mode = SCENARIO_MODE_FILE_SUBTITLE_VIDEO_AUDIO;
-                       g_sub_menu_state = SUBMENU_STATE_GETTING_VIDEOFILE_URI;
+                       g_sub_menu_state = SUBMENU_STATE_GETTING_FILE_URI;
                        return;
                } else if (!strncmp(cmd, "3", len)) {
                        g_scenario_mode = SCENARIO_MODE_HTTP_VIDEO_AUDIO;
-                       g_sub_menu_state = SUBMENU_STATE_GETTING_VIDEOFILE_URI;
+                       g_sub_menu_state = SUBMENU_STATE_GETTING_FILE_URI;
                        return;
                }
        }
@@ -1508,7 +1508,7 @@ void _interpret_scenario_menu(char *cmd)
                        g_video_is_on = TRUE;
                        g_audio_is_on = TRUE;
                        if (g_menu_preset == PRESET_RTP_STREAMER) {
-                               g_sub_menu_state = SUBMENU_STATE_GETTING_VIDEOFILE_URI;
+                               g_sub_menu_state = SUBMENU_STATE_GETTING_FILE_URI;
                        } else if (g_menu_preset == PRESET_RTP_CLIENT) {
                                create_formats();
                                media_streamer_node_h rtp_bin = _create_rtp(VIDEO_PORT, AUDIO_PORT, TRUE);
@@ -1721,7 +1721,7 @@ static void interpret_cmd(char *cmd)
                case SUBMENU_STATE_GETTING_SEEK_POS:
                        _interpret_getting_seek_position_menu(cmd);
                        break;
-               case SUBMENU_STATE_GETTING_VIDEOFILE_URI:
+               case SUBMENU_STATE_GETTING_FILE_URI:
                        _interpret_getting_uri_menu(cmd);
                        break;
                case SUBMENU_STATE_GETTING_SUBFILE_URI: