[libbluray-devel] Avoid variables with the same name

hpi1 git at videolan.org
Mon May 2 10:51:07 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon May  2 11:39:03 2016 +0300| [9fc2d195cc4722109ad418fd83fbfcc047057a1e] | committer: hpi1

Avoid variables with the same name

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=9fc2d195cc4722109ad418fd83fbfcc047057a1e
---

 .../bdj/java/org/videolan/media/content/playlist/Handler.java  |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/media/content/playlist/Handler.java b/src/libbluray/bdj/java/org/videolan/media/content/playlist/Handler.java
index fa8526e..dcb8966 100644
--- a/src/libbluray/bdj/java/org/videolan/media/content/playlist/Handler.java
+++ b/src/libbluray/bdj/java/org/videolan/media/content/playlist/Handler.java
@@ -152,18 +152,18 @@ public class Handler extends BDHandler {
                     Libbluray.writePSR(Libbluray.PSR_SECONDARY_AUDIO_VIDEO, stream, 0x000000ff);
                 }
 
-                int pl = sourceLocator.getPlayListId();
+                int plId = sourceLocator.getPlayListId();
                 long time = -1;
-                int pi = -1, mark = -1;
+                int piId = -1, mark = -1;
                 if (baseMediaTime != 0) {
                     time = (long)(baseMediaTime * FROM_NAROSECONDS);
                 } /*else*/ if (sourceLocator.getMarkId() > 0) {
                     mark = sourceLocator.getMarkId();
                 } /*else*/ if (sourceLocator.getPlayItemId() > 0) {
-                    pi = sourceLocator.getPlayItemId();
+                    piId = sourceLocator.getPlayItemId();
                 }
 
-                if (!Libbluray.selectPlaylist(pl, pi, mark, time)) {
+                if (!Libbluray.selectPlaylist(plId, piId, mark, time)) {
                     return new ConnectionErrorEvent(this);
                 }
 



More information about the libbluray-devel mailing list