[M108 Migration][MM] Handle BufferingState for playback 14/288614/2
authorSun-woo Nam <sunny.nam@samsung.com>
Fri, 3 Jun 2022 02:10:48 +0000 (19:10 -0700)
committerBot Blink <blinkbot@samsung.com>
Wed, 22 Feb 2023 00:08:20 +0000 (00:08 +0000)
- Fix the issue that time is not changed when video is playing.
- Ignore "underrun" for changing ready state.

Reference:
https://review.tizen.org/gerrit/275855
https://review.tizen.org/gerrit/284178

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

index c2084bb..30c306c 100644 (file)
@@ -871,11 +871,7 @@ void MediaPlayerESPlusPlayer::OnBufferingStatusChanged(DemuxerStream::Type type,
   // TODO: Check if controller can control underflow. Currently buffering
   // related state changes are commented for the same (in Play and
   // RequestStateChange).
-  if (status == kBufferUnderrun) {
-    GetRendererClient(type)->OnBufferingStateChange(BUFFERING_HAVE_NOTHING,
-                                                    DEMUXER_UNDERFLOW);
-  } else if (status == kBufferMaxThreshold || status == kBufferOverflow ||
-             status == kBufferAhead || status == kBufferEos) {
+  if (status != kBufferNone) {
     GetRendererClient(type)->OnBufferingStateChange(
         BUFFERING_HAVE_ENOUGH, BUFFERING_CHANGE_REASON_UNKNOWN);
   }