DescriptionFix the frame freezing issue observed during a config change in the H.264 decoder on Windows
We need to drain the decoder of any pending output before tearing down the
instance of the decoder and recreating it during a configuration change.
Draining the decoder is done as part of a Flush operation. However this is
a decoder initiated flush which requires the following
1. Don't process pending input in this case as that is what caused the
config change.
2. Don't notify the client about the completion of the flush operation.
Added a member variable processing_config_change_ to track this state. We
mimic most of the logic we have to process the pending_flush_ state when
this flag is set.
BUG=616349
Committed: https://crrev.com/ec68dd1bde3f2049975d8aa194525983d4a93688
Cr-Commit-Position: refs/heads/master@{#400023}
Patch Set 1 #Patch Set 2 : Process flush during config change as a regular flush #Patch Set 3 : Reset the processing_config_changed_ flag during a flush #Patch Set 4 : Update comment #Patch Set 5 : git cl format #
Depends on Patchset: Messages
Total messages: 12 (3 generated)
|