[0.2.88] modify setting video roi function 85/188385/1 accepted/tizen/5.0/unified/20181102.015744 accepted/tizen/unified/20180905.060834 submit/tizen/20180904.110532 submit/tizen_5.0/20181101.000003
authorEunhae Choi <eunhae1.choi@samsung.com>
Tue, 4 Sep 2018 10:19:36 +0000 (19:19 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Tue, 4 Sep 2018 10:19:36 +0000 (19:19 +0900)
Change-Id: Iea9c3fb9c895852e02eaba99118ed04bf5f41695

legacy/src/legacy_player.c
packaging/mmsvc-player.spec

index 5a8c2c1..1cabbc7 100644 (file)
@@ -2471,6 +2471,11 @@ int legacy_player_set_video_roi_area(player_h player, double scale_x,
 
        LOGD("<Enter>");
 
+       if (handle->display_type != PLAYER_DISPLAY_TYPE_OVERLAY) {
+               LOGE("not supportable display type %d", handle->display_type);
+               return PLAYER_ERROR_INVALID_OPERATION;
+       }
+
        ret = mm_player_set_video_roi_area(handle->mm_handle, scale_x, scale_y, scale_width, scale_heights);
        if (ret != PLAYER_ERROR_NONE)
                return __player_convert_error_code(ret, (char *)__FUNCTION__);
index 52b0195..97f78cf 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-player
 Summary:    A Media Player module for muse server
-Version:    0.2.87
+Version:    0.2.88
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0