video_shell: Apply transform map when destination changed 85/317585/1
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 12 Sep 2024 00:48:21 +0000 (09:48 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 12 Sep 2024 03:32:43 +0000 (12:32 +0900)
Since it doesn't take transfomr into account when updating destination
it needs to update transform again when destination updated.

Change-Id: I3bd1f73144c52a8e27bb2b8c656e3f505476d63c

src/bin/server/e_video_shell.c

index 12519c8bf543a1fb4d60032f8102d27a712c27c1..5f398d8450270637a2f5cb03b744b328d527df61 100644 (file)
@@ -1355,6 +1355,7 @@ static void
 _source_viewport_committed(E_Video_Viewport_Source *source)
 {
    E_Video_Viewport_State *state = &source->viewport->current;
+   Eina_Bool need_transform = EINA_FALSE;
 
    VS_DBG("SOURCE %p| viewport committed", source);
 
@@ -1363,9 +1364,10 @@ _source_viewport_committed(E_Video_Viewport_Source *source)
      {
         _source_viewport_destination_update(source);
         _source_viewport_apply(source);
+        need_transform = EINA_TRUE;
      }
 
-   if (state->committed & E_VIDEO_VIEWPORT_STATE_TRANSFORM)
+   if (need_transform || (state->committed & E_VIDEO_VIEWPORT_STATE_TRANSFORM))
      {
         _source_viewport_transform_update(source);
      }