[TTVD] Remove incorrect lifetime errors from decoder 59/319059/4
authorJakub Gajownik <j.gajownik2@samsung.com>
Thu, 26 Sep 2024 20:56:17 +0000 (22:56 +0200)
committerBot Blink <blinkbot@samsung.com>
Mon, 14 Oct 2024 11:58:06 +0000 (11:58 +0000)
Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-516
Change-Id: I0f3b9b33be4a068d07c0c78bbf6cf1a6b03cacce
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
media/filters/tizen/ttvd_video_decoder_impl.cc

index 96102a76aebbfcdc55aba678501d4cd68e737dcf..7ff89afc7af512625fb04937ae36a8f3c0cffd1a 100644 (file)
@@ -254,9 +254,8 @@ void TTvdVideoDecoderImpl::RenderToOverlay(
                      return p.second.ttvd_decoded_frame.get() == ptr;
                    });
   if (output_it == decoding_results_.end()) {
-    // As |decoding_results_| might be the only owner of |TTvdDecodedFrame|,
-    // reaching this fragment means we have some bug with lifetime.
-    TIZEN_MEDIA_LOG(ERROR)
+    // It might be already removed by |Reset|.
+    TIZEN_MEDIA_LOG(VERBOSE)
         << "Cannot find frame to render in collection, timestamp: "
         << ttvd_decoded_frame->Timestamp();
     return;
@@ -858,9 +857,8 @@ void TTvdVideoDecoderImpl::ReleasePicture(
                      return p.second.ttvd_decoded_frame.get() == ptr;
                    });
   if (output_it == decoding_results_.end()) {
-    // As |decoding_results_| might be the only owner of |TTvdDecodedFrame|,
-    // reaching this fragment means we have some bug with lifetime.
-    TIZEN_MEDIA_LOG(ERROR)
+    // It might be already removed by |Reset|.
+    TIZEN_MEDIA_LOG(VERBOSE)
         << "Cannot find released frame in collection, timestamp: "
         << ttvd_decoded_frame->Timestamp();
     return;