[Android] Benchmark: add displayFrames to info sent back

Duncan McNamara git at videolan.org
Tue Oct 17 06:38:01 UTC 2023


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Mon Oct 16 17:03:33 2023 +0200| [3321053acd27869da484a5877e680d1c77710d06] | committer: Nicolas Pomepuy

Benchmark: add displayFrames to info sent back

This is to display the percentage of frames that where lost during
playback.

> https://code.videolan.org/videolan/vlc-android/commit/3321053acd27869da484a5877e680d1c77710d06
---

 .../src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt            | 1 +
 1 file changed, 1 insertion(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt
index fbec6a2fb0..7aa196bbde 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt
@@ -577,6 +577,7 @@ class BenchActivity : ShallowVideoPlayer() {
             val stats = service!!.lastStats
             sendIntent.putExtra("percent_of_bad_seek", 0.0)
             sendIntent.putExtra("number_of_dropped_frames", stats?.lostPictures ?: 100)
+            sendIntent.putExtra("displayed_frames", stats?.displayedPictures )
             sendIntent.putExtra("late_frames", lateFrameCounter)
             setResult(Activity.RESULT_OK, sendIntent)
             sendIntent.putExtra("speed", speed)



More information about the Android mailing list