support disable sync mode for low latency 37/298737/1 accepted/tizen/unified/20230914.100353
authorEunhye Choi <eunhae1.choi@samsung.com>
Wed, 13 Sep 2023 05:37:38 +0000 (14:37 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Wed, 13 Sep 2023 05:37:40 +0000 (14:37 +0900)
- media data will be rendered once it is decoded
  regardless of pipeline clock

[Version] 0.0.15

Change-Id: Id4c47d32c455529286232274cf9452d677781cfc

packaging/esplusplayer.spec
src/esplusplayer/src/esplusplayer_capi.cpp
test/esplusplayer_test.c

index 8eab12a..1bb08dc 100644 (file)
@@ -2,7 +2,7 @@
 %bcond_without ESPLUSPLAYER_UT
 Name:       esplusplayer
 Summary:    new multimedia streaming player
-Version:    0.0.14
+Version:    0.0.15
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 0cbcb24..d92678c 100644 (file)
@@ -1410,6 +1410,8 @@ int esplusplayer_set_low_latency_mode(esplusplayer_handle handle,
   LOG_ENTER_P(cast_(handle))
   if (is_null_(handle)) return ESPLUSPLAYER_ERROR_TYPE_INVALID_PARAMETER;
   if (mode != ESPLUSPLAYER_LOW_LATENCY_MODE_NONE &&
+      mode != ESPLUSPLAYER_LOW_LATENCY_MODE_VIDEO &&
+      mode != ESPLUSPLAYER_LOW_LATENCY_MODE_DISABLE_SYNC &&
       mode != ESPLUSPLAYER_LOW_LATENCY_MODE_DISABLE_PREROLL) {
     LOG_WARN("Not supported latency mode 0x%x", static_cast<std::uint32_t>(mode));
     return ESPLUSPLAYER_ERROR_TYPE_NONE;
index edbbb99..f5b25c7 100644 (file)
@@ -1293,6 +1293,12 @@ static void __test_set_low_latency_mode(int value)
                mode = ESPLUSPLAYER_LOW_LATENCY_MODE_NONE;
                break;
        case 1:
+               mode = ESPLUSPLAYER_LOW_LATENCY_MODE_VIDEO;
+               break;
+       case 2:
+               mode = ESPLUSPLAYER_LOW_LATENCY_MODE_DISABLE_SYNC;
+               break;
+       case 3:
                mode = ESPLUSPLAYER_LOW_LATENCY_MODE_DISABLE_PREROLL;
                break;
        default:
@@ -1587,7 +1593,7 @@ static void __displaymenu()
        } else if (g_menu_state == CURRENT_STATUS_SET_RENDER_TIME_OFFSET) {
                g_print("*** Input stream type and time offset\n");
        } else if (g_menu_state == CURRENT_STATUS_SET_LOW_LATENCY_MODE) {
-               g_print("*** Input low latency mode (0: none, 1: disable preroll)\n");
+               g_print("*** Input low latency mode (0: none, 1: video, 2: disable sync, 3: disable preroll)\n");
        } else {
                g_print("*** Unknown status.\n");
                quit_program();