fixup! [TTVD] Prevent overlay promotion for released decoder collections 05/317705/2
authorJakub Gajownik <j.gajownik2@samsung.com>
Thu, 12 Sep 2024 10:17:46 +0000 (12:17 +0200)
committerBot Blink <blinkbot@samsung.com>
Fri, 13 Sep 2024 13:06:00 +0000 (13:06 +0000)
Base patch introduces regresion of inability to render
camera captured frames using overlay system, as they lack
of collection token and only software rendering might be
used with them.

Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-558
Change-Id: Iad3ccc0c032733c0ecc5156d47136c2a86318279
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
tizen_src/chromium_impl/ui/ozone/platform/efl/output_surface_manager.cc

index 04f3cfa976d1281d3ab6f9b10671fbe4d4d78e4a..386fabca45dce25faf4e89a766e3b6cf80f0c5ac 100644 (file)
@@ -63,8 +63,11 @@ OutputSurfaceManager::AssignSurfaces(
 
   // Step 1: remove all the surfaces that where already released, but player
   //         still holds video frames and tries to render them.
+  //         Note that empty collection token means it might be rendered using
+  //         "software" method, so we should not remove such candidates.
   for (auto it = candidates.begin(); it != candidates.end();) {
-    if (alive_collections_.find(it->second) != alive_collections_.end()) {
+    if (it->second.is_empty() ||
+        alive_collections_.find(it->second) != alive_collections_.end()) {
       ++it;
     } else {
       TIZEN_MEDIA_LOG(VERBOSE)