Repository navigation
android: Reset operating frame rate during flush - #8421
Conversation
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
There was a problem hiding this comment.
Code Review
This pull request adds a call to reset the frame rate estimator when the media codec is flushed. The change is logical, as flushing the codec is a reset operation. I have one suggestion to improve the error handling to make debugging easier in case of an unexpected failure.
39014a3 to
48e31ea
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request correctly identifies the need to reset the frame rate estimator when the media codec is flushed. The implementation is straightforward and handles potential errors by returning an error status, which is consistent with the existing code. I have one suggestion to improve the exception handling to better align with the project's style guide by using a more specific exception type.
dbe4890 to
dddb2d0
Compare
dbe4890 to
3d2e612
Compare
yell0wd0g
left a comment
There was a problem hiding this comment.
LGTM with a suggestion.
3d2e612 to
729713f
Compare
When the MediaCodecBridge is flushed, the previously estimated operating frame rate becomes invalid. Resetting the frame rate estimator ensures that new frame rate calculations start from a clean state after a flush, preventing stale or incorrect frame rate data from affecting playback or adaptation logic. This is important for accurate media synchronization and performance on Android. Issue: 467911298 Issue: 320568573 (cherry picked from commit ef8d720)
#8459) Refer to the original PR: #8421 When the MediaCodecBridge is flushed, the previously estimated operating frame rate becomes invalid. Resetting the frame rate estimator ensures that new frame rate calculations start from a clean state after a flush, preventing stale or incorrect frame rate data from affecting playback or adaptation logic. This is important for accurate media synchronization and performance on Android. Issue: 467911298 Issue: 320568573 Co-authored-by: Bo-Rong Chen <[email protected]>
Refer to the original PR: #8421 When the MediaCodecBridge is flushed, the previously estimated operating frame rate becomes invalid. Resetting the frame rate estimator ensures that new frame rate calculations start from a clean state after a flush, preventing stale or incorrect frame rate data from affecting playback or adaptation logic. This is important for accurate media synchronization and performance on Android. Issue: 467911298 Issue: 320568573
When the MediaCodecBridge is flushed, the previously estimated operating
frame rate becomes invalid. Resetting the frame rate estimator ensures
that new frame rate calculations start from a clean state after a flush,
preventing stale or incorrect frame rate data from affecting playback
or adaptation logic. This is important for accurate media synchronization
and performance on Android.
Issue: 467911298
Issue: 320568573