Skip to content

Pause playback when loading a new GIF to avoid errors#27

Open
aliask wants to merge 1 commit intobuzzfeed:masterfrom
aliask:load-while-playing
Open

Pause playback when loading a new GIF to avoid errors#27
aliask wants to merge 1 commit intobuzzfeed:masterfrom
aliask:load-while-playing

Conversation

@aliask
Copy link

@aliask aliask commented Oct 21, 2016

If load_url is called while the GIF is playing, the doStep() callback will attempt to read the frames[] array, which has been cleared by load_setup().

Simple workaround is to pause the playback before frames[] is cleared.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant