media/gpu/vdvda: add extra safety during DRC
When a dynamic resolution change even happens, we dismiss all the pictures that were sent to the client. Although it should never happen, if a reuse picture event takes place, it will re-insert the picture ID into the "at client" map, messing with reference count and resulting in broken playback. Make sure this does not happen by clearing the entry for a picture ID when it gets imported again. BUG=b:161759267 BUG=b:165035340 BUG=b:172881995 TEST=DRC with Youtube Android app on Trogdor now takes place smoothly. TEST=CtsMediaTestCases android.media.cts.AdaptivePlaybackTest#testH264Adaptive passes on Trogdor Change-Id: I503a6aacbe8647398fe502eded3ed6c799aa2faa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2548588 Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Auto-Submit: Alexandre Courbot <acourbot@chromium.org> Reviewed-by:Chih-Yu Huang <akahuang@chromium.org> Cr-Commit-Position: refs/heads/master@{#829135}
Showing
Please register or sign in to comment