Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2494d1

Browse files
akshar-bhatnagarAkshar Bhatnagar
and
Akshar Bhatnagar
authored
returns when all requests for a source are removed, prevents locate() crash (#20)
Co-authored-by: Akshar Bhatnagar <[email protected]>
1 parent 92f72f6 commit b2494d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎lib/src/main/java/com/otaliastudios/transcoder/internal/thumbnails/DefaultThumbnailsEngine.kt

+1
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ class DefaultThumbnailsEngine(
290290
stubs.removeAll{
291291
it.request.sourceId() == source
292292
}
293+
return
293294
}
294295
if (stubs.firstOrNull()?.request?.sourceId() == source && positionUs == stubs.firstOrNull()?.positionUs) {
295296
return

0 commit comments

Comments
 (0)