[Android] Mark VideoGroup getName method as WorkerThread

Nicolas Pomepuy git at videolan.org
Fri Apr 24 14:50:05 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Apr 24 10:09:26 2020 +0200| [655813cf0b2d7902767c900d8ef9f0a7a36b8b7d] | committer: Geoffrey Métais

Mark VideoGroup getName method as WorkerThread

> https://code.videolan.org/videolan/vlc-android/commit/655813cf0b2d7902767c900d8ef9f0a7a36b8b7d
---

 medialibrary/src/org/videolan/medialibrary/media/VideoGroupImpl.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/medialibrary/src/org/videolan/medialibrary/media/VideoGroupImpl.java b/medialibrary/src/org/videolan/medialibrary/media/VideoGroupImpl.java
index a2917eae4..785141d32 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/VideoGroupImpl.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/VideoGroupImpl.java
@@ -56,6 +56,7 @@ public class VideoGroupImpl extends VideoGroup {
 
     @Override
     @Nullable
+    @WorkerThread
     public String getName() {
         final Medialibrary ml = Medialibrary.getInstance();
         return ml.isInitiated() ? nativeGroupName(ml, mId) : null;



More information about the Android mailing list