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>
// 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)