[Android] PlaybackService: remove useless volatile qualifier
Thomas Guillem
git at videolan.org
Fri Oct 20 17:32:15 CEST 2017
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Oct 20 17:16:11 2017 +0200| [7695131cf7e04afce66389d8ee1101ce84224601] | committer: Thomas Guillem
PlaybackService: remove useless volatile qualifier
mStopped is only accessed from the same thread (the MainThread).
> https://code.videolan.org/videolan/vlc-android/commit/7695131cf7e04afce66389d8ee1101ce84224601
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index a57b2d994..a52851509 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1391,7 +1391,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
});
}
- private volatile boolean mStopped = true;
+ private boolean mStopped = true;
protected void publishState() {
if (mMediaSession == null)
return;
More information about the Android
mailing list