[MM] Use the timer to decide operations according to buffering status. 07/307307/3
authorSun-woo Nam <sunny.nam@samsung.com>
Thu, 7 Mar 2024 02:19:34 +0000 (18:19 -0800)
committerBot Blink <blinkbot@samsung.com>
Thu, 7 Mar 2024 12:04:30 +0000 (12:04 +0000)
commitba9fcffc1dda67e6a01d50de421e43abd0f26240
treef5932a3443df6b8bfa8142e5bd64230b736cdf61
parent8b2936e713fe124ca0dd2317b639f686aaee7a3c
[MM] Use the timer to decide operations according to buffering status.

Previously, PerformOperationForData was called in ReadBuffer which reads
a buffer from the demuxer. However, ReadBuffer may not be called depending on
the buffering status.
When actually determining an operation, it judges based on the current position
so there are cases that it does not work as intended.
Therefore, call the function periodically using a timer.

This fixes the patch below.
https://review.tizen.org/gerrit/#/c/305478/

Change-Id: I5c4ee665d52b02c609bef8a380d1aa05e5dfb577
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
tizen_src/chromium_impl/media/filters/media_player_esplusplayer.cc
tizen_src/chromium_impl/media/filters/media_player_esplusplayer.h