diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/VideoView.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/VideoView.kt index 3e3f7d44b..d46790ddb 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/VideoView.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/VideoView.kt @@ -299,6 +299,8 @@ fun GetVideoController( nostrUriCallback, context ) { + // REQUIRED TO BE RUN IN THE MAIN THREAD + // checks again because of race conditions. if (controller.value == null) { // still prone to race conditions. controller.value = it @@ -382,6 +384,8 @@ fun GetVideoController( nostrUriCallback, context ) { + // REQUIRED TO BE RUN IN THE MAIN THREAD + // checks again to make sure no other thread has created a controller. if (controller.value == null) { controller.value = it