Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@low-batt
Copy link
Contributor

This commit will:

  • Change MPVController.getFlag to use Int32 instead of Int64 when calling mpv_get_property
  • Change MPVController.setFlag to use Int32 instead of Int when calling mpv_set_property

Using 64 bit integers is working, but is not technically correct. A MPV_FORMAT_FLAG is a 32 bit integer. MPVController correctly uses Int32 for other libmpv client APIs that use 32 bit integers. These changes align these two methods with that convention.


Description:

This commit will:
- Change MPVController.getFlag to use Int32 instead of Int64 when
  calling mpv_get_property
- Change MPVController.setFlag to use Int32 instead of Int when calling
  mpv_set_property

Using 64 bit integers is working, but is not technically correct. A
MPV_FORMAT_FLAG is a 32 bit integer. MPVController correctly uses Int32
for other libmpv client APIs that use 32 bit integers. These changes
align these two methods with that convention.
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.

2 participants