Skip to content
Snippets Groups Projects
Commit 4ea20292 authored by Duncan McNamara's avatar Duncan McNamara Committed by Geoffrey Métais
Browse files

Benchmark: fix service null reference crash

parent 7d2581b6
No related branches found
No related tags found
No related merge requests found
Pipeline #7167 passed with stage
in 29 minutes and 29 seconds
......@@ -314,6 +314,13 @@ class BenchActivity : ShallowVideoPlayer() {
* At the end of the video buffering, the screenshot callback is set.
*/
private fun seekScreenshot() {
// tmp fix
// mService should never be null in this context but it happens
if (service == null) {
Log.w(TAG, "seekScreenshot: service is null");
errorFinish("PlayerService is null");
return;
}
if (mProjectionManager != null && mScreenshotCount < mTimestamp!!.size) {
setTimeout()
seek(mTimestamp!![mScreenshotCount])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment