[EMSS] Disable double seek hack when playing with WASM Player 22/318822/4
authorPiotr Bałut <p.balut@samsung.com>
Mon, 19 Aug 2024 11:23:59 +0000 (13:23 +0200)
committerBot Blink <blinkbot@samsung.com>
Fri, 11 Oct 2024 15:51:52 +0000 (15:51 +0000)
[PROBLEM]
pipeline_impl.cc on Tizen uses double seek hack when playing multimedia
conentent. It slows down seeks unnecesarily and is completely redundant
if upstream seeking model (with StartPlayingFrom) is correctly
implemented.

[SOLUTION]
Disable double seek hack for WASM Player.

Bug: https://jira-eu.sec.samsung.net/browse/VDWASM-1545
Signed-off-by: Piotr Bałut <p.balut@samsung.com>
Change-Id: Id729b42acaf397c99ceb2d1338e43cafb3c472ce

media/base/pipeline_impl.cc

index 4dc951aab8427a89d9c8a0757b8afa597155883a..74c67d27bb6e58fb6006918745eda77c6ce6d164 100644 (file)
@@ -2155,6 +2155,13 @@ void PipelineImpl::RendererWrapper::ReportMetadata(StartType start_type) {
 
 #if defined(TIZEN_MULTIMEDIA)
 bool PipelineImpl::RendererWrapper::ShouldUseUpstreamArchitecture() const {
+#if defined(SAMSUNG_ELEMENTARY_MEDIA_STREAM_SOURCE)
+  if (demuxer_ &&
+      demuxer_->GetDemuxerType() == DemuxerType::kElementaryMediaStreamSource) {
+    return true;
+  }
+#endif  // defined(SAMSUNG_ELEMENTARY_MEDIA_STREAM_SOURCE)
+
   return IsUpstreamArchitectureEnabled();
 }
 #endif  // defined(TIZEN_MULTIMEDIA)