Skip to content

Commit d120bc0

Browse files
authored
Merge pull request #103 from lucas-viva/patch-1
Do not play on resume if the video is not loaded for CommonVideoPlayerDesktop
2 parents 5c3549e + 4b5309c commit d120bc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gdx-video-desktop/src/com/badlogic/gdx/video/CommonVideoPlayerDesktop.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ public void pause () {
297297

298298
@Override
299299
public void resume () {
300-
play();
300+
if (decoder != null) {
301+
play();
302+
}
301303
}
302304

303305
@Override

0 commit comments

Comments
 (0)