From f1d660486e7f4dfc694e2c73ece2fe977f1bb326 Mon Sep 17 00:00:00 2001 From: Sun-woo Nam Date: Thu, 2 Jun 2022 19:10:48 -0700 Subject: [PATCH] [M108 Migration][MM] Handle BufferingState for playback - 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 --- tizen_src/chromium_impl/media/filters/media_player_esplusplayer.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tizen_src/chromium_impl/media/filters/media_player_esplusplayer.cc b/tizen_src/chromium_impl/media/filters/media_player_esplusplayer.cc index c2084bb..30c306c 100644 --- a/tizen_src/chromium_impl/media/filters/media_player_esplusplayer.cc +++ b/tizen_src/chromium_impl/media/filters/media_player_esplusplayer.cc @@ -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); } -- 2.7.4