Skip to content

[video_player_avplay] Update the way to call the SetDisplay API#1018

Open
gin7773 wants to merge 2 commits intoflutter-tizen:masterfrom
gin7773:set_display_0508
Open

[video_player_avplay] Update the way to call the SetDisplay API#1018
gin7773 wants to merge 2 commits intoflutter-tizen:masterfrom
gin7773:set_display_0508

Conversation

@gin7773
Copy link
Copy Markdown
Contributor

@gin7773 gin7773 commented May 8, 2026

Main change:

  • Update the way to call the SetDisplay API.

The coordinates (x, y) of SetDisplay are relative to the offset of the Window. The position of SetDisplay should overlap with the Window, so the offset value should always be 0.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the video_player_avplay package to version 0.8.10 and modifies the SetDisplay API call in plus_player.cc to use hardcoded 0, 0 coordinates. Feedback suggests removing the now-unused x and y variables to adhere to the Google C++ Style Guide.

}
bool ret = ::SetDisplay(player_, plusplayer::DisplayType::kOverlay,
resource_id, x, y, width, height);
resource_id, 0, 0, width, height);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

By hardcoding 0, 0 in the SetDisplay call, the variables x and y (declared and assigned on lines 434-436) are now unused. To maintain code quality and adhere to the Google C++ Style Guide, please remove these unused variables and update the ecore_wl2_window_geometry_get call (e.g., by passing nullptr for the unused coordinates if the API supports it).

References
  1. C++ code should follow the Google C++ Style Guide, which encourages clean code and avoiding unused variables. (link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant