forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ppapi: VideoEncoder: prevent scheduling encoding multiple times
The ScheduleNextEncode() can be called at multiple stages in the example depending on whether it needs to reconfigure the MediaVideoStreamTrack. This can lead the example to encode at twice 30fps. At this speed we can exhaust the 33ms lifespan of video buffers, leading to errors in the example plugins which can't retrieve new frames to respect the 30fps framerate. BUG=503153 TEST=run video_encoder example from NaCl SDK with VP8 codec and verify there are no error messages after 1 minute Review URL: https://codereview.chromium.org/1218513003 Cr-Commit-Position: refs/heads/master@{#336850}
- Loading branch information
1 parent
24e706d
commit cd74d55
Showing
2 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters