Change ROI mode behavior for player ROI precondition 50/174450/1 accepted/tizen/unified/20180404.063332 submit/tizen/20180403.052449
authorHyunil <hyunil46.park@samsung.com>
Mon, 2 Apr 2018 07:28:33 +0000 (16:28 +0900)
committerHyunil <hyunil46.park@samsung.com>
Mon, 2 Apr 2018 07:28:33 +0000 (16:28 +0900)
Change-Id: I5c91812415d5c1eb4691fb95bf481c3d0595662d
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
legacy/src/legacy_player.c
packaging/mmsvc-player.spec

index 5a72e10..21c0947 100644 (file)
@@ -2586,19 +2586,9 @@ int legacy_player_set_roi_area(player_h player, int x, int y, int w, int h)
        PLAYER_INSTANCE_CHECK(player);
        player_s *handle = (player_s *)player;
        int ret;
-       int mode = -1;
 
        LOGD("<Enter>");
 
-       /* check roi display mode */
-       ret = mm_player_get_attribute(handle->mm_handle, NULL, "display_method", &mode, (char *)NULL);
-       if (ret != MM_ERROR_NONE)
-               return __player_convert_error_code(ret, (char *)__FUNCTION__);
-       if (mode != MM_DISPLAY_METHOD_CUSTOM_ROI) {
-               LOGE("[%s] PLAYER_ERROR_INVALID_OPERATION(0x%08x)", __FUNCTION__, PLAYER_ERROR_INVALID_OPERATION);
-               return PLAYER_ERROR_INVALID_OPERATION;
-       }
-
        /* set roi area */
        ret = mm_player_set_attribute(handle->mm_handle, NULL, "wl_window_render_x", x, "wl_window_render_y", y, "wl_window_render_width", w, "wl_window_render_height", h, (char *)NULL);
        if (ret != MM_ERROR_NONE)
index 234a472..370223f 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-player
 Summary:    A Media Player module for muse server
-Version:    0.2.75
+Version:    0.2.76
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0