Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
moneytoo committed Aug 20, 2021
1 parent a241286 commit 57d9be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/brouken/player/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public static boolean switchFrameRate(final Activity activity, final float frame
if (BuildConfig.DEBUG)
Toast.makeText(activity, "Video frameRate: " + frameRate, Toast.LENGTH_LONG).show();

if (frameRate != Format.NO_VALUE) {
if (frameRate > 0) {
Display display = activity.getWindow().getDecorView().getDisplay();
Display.Mode[] supportedModes = display.getSupportedModes();
Display.Mode activeMode = display.getMode();
Expand Down

0 comments on commit 57d9be3

Please sign in to comment.