[Android] Thumbnailer: rename totalCount to mTotalCount

Thomas Guillem git at videolan.org
Wed Sep 9 11:07:37 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Sep  9 10:36:32 2015 +0200| [016e63e75d0447d5ed8aef7bf84cc65fe391bfe7] | committer: Thomas Guillem

Thumbnailer: rename totalCount to mTotalCount

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=016e63e75d0447d5ed8aef7bf84cc65fe391bfe7
---

 vlc-android/src/org/videolan/vlc/Thumbnailer.java |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/Thumbnailer.java b/vlc-android/src/org/videolan/vlc/Thumbnailer.java
index 313ebea..cdbf759 100644
--- a/vlc-android/src/org/videolan/vlc/Thumbnailer.java
+++ b/vlc-android/src/org/videolan/vlc/Thumbnailer.java
@@ -54,7 +54,7 @@ public class Thumbnailer implements Runnable {
     private final Condition notEmpty = lock.newCondition();
 
     protected Thread mThread;
-    private int totalCount;
+    private int mTotalCount;
     private final String mPrefix;
 
     public Thumbnailer(Context context, Display display) {
@@ -85,7 +85,7 @@ public class Thumbnailer implements Runnable {
         lock.lock();
         try {
             mItems.clear();
-            totalCount = 0;
+            mTotalCount = 0;
         } finally {
             lock.unlock();
         }
@@ -93,12 +93,12 @@ public class Thumbnailer implements Runnable {
 
     /**
      * Gives the count of pending thumbnails
-     * @return totalCount
+     * @return mTotalCount
      */
     public int getJobsCount(){
         int count;
         lock.lock();
-        count = totalCount;
+        count = mTotalCount;
         lock.unlock();
         return count;
     }
@@ -113,7 +113,7 @@ public class Thumbnailer implements Runnable {
         lock.lock();
         try {
             mItems.add(item);
-            totalCount++;
+            mTotalCount++;
             notEmpty.signal();
         } finally {
             lock.unlock();
@@ -143,7 +143,7 @@ public class Thumbnailer implements Runnable {
                         mVideoBrowser.get().hideProgressBar();
                         mVideoBrowser.get().clearTextInfo();
                     }
-                    totalCount = 0;
+                    mTotalCount = 0;
                     notEmpty.await();
                 } catch (InterruptedException e) {
                     interrupted = true;
@@ -155,7 +155,7 @@ public class Thumbnailer implements Runnable {
                 lock.unlock();
                 break;
             }
-            total = totalCount;
+            total = mTotalCount;
             MediaWrapper item = mItems.poll();
             lock.unlock();
 



More information about the Android mailing list