Skip to content

Fix logic error when calling _encoder.init()#230

Merged
auscaster merged 1 commit intosourcey:masterfrom
R-Gerard:streamrecorder_init
Mar 9, 2018
Merged

Fix logic error when calling _encoder.init()#230
auscaster merged 1 commit intosourcey:masterfrom
R-Gerard:streamrecorder_init

Conversation

@R-Gerard
Copy link
Contributor

@R-Gerard R-Gerard commented Mar 9, 2018

Currently StreamRecorder never calls _encoder.init() when recording both video and audio tracks. Specifically, StreamRecorder expects one of the booleans to be true and the other to be false exactly once so that it can call the init function, however in my observations both values start as true then both flip to false.

This PR separates out the init logic from _awaitingVideo and _awaitingAudio to call init exactly once.

@R-Gerard R-Gerard force-pushed the streamrecorder_init branch from 3e563b7 to a899696 Compare March 9, 2018 20:42
@auscaster
Copy link
Member

Looks good, thanks for the contribution! 👍

@auscaster auscaster merged commit 5bdee0e into sourcey:master Mar 9, 2018
auscaster added a commit that referenced this pull request Mar 23, 2026
Fix logic error when calling _encoder.init()
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.

2 participants