Use the stream's frame rate as the redraw rate instead of always refreshing at 30 FPS

This commit is contained in:
Cameron Gutman
2013-12-26 17:38:47 -05:00
parent 9d24f8be14
commit d4995a1f27
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -29,8 +29,8 @@ public class SwingCpuDecoderRenderer implements VideoDecoderRenderer {
private static final int WAIT_CEILING_MS = 8;
@Override
public void setup(int width, int height, Object renderTarget, int drFlags) {
this.targetFps = 30;
public void setup(int width, int height, int redrawRate, Object renderTarget, int drFlags) {
this.targetFps = redrawRate;
this.width = width;
this.height = height;