[libbluray-devel] Libbluray.java: use RegisterAccess for PSR numbers
npzacs
git at videolan.org
Sat Sep 16 13:24:17 CEST 2017
libbluray | branch: master | npzacs <npzacs at gmail.com> | Sat Sep 16 14:14:34 2017 +0300| [b7371622af5df48cb34114431657c3514721e3fb] | committer: npzacs
Libbluray.java: use RegisterAccess for PSR numbers
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=b7371622af5df48cb34114431657c3514721e3fb
---
src/libbluray/bdj/java/org/videolan/Libbluray.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/libbluray/bdj/java/org/videolan/Libbluray.java b/src/libbluray/bdj/java/org/videolan/Libbluray.java
index 0f7d2aeb..2284d678 100644
--- a/src/libbluray/bdj/java/org/videolan/Libbluray.java
+++ b/src/libbluray/bdj/java/org/videolan/Libbluray.java
@@ -35,6 +35,7 @@ import javax.tv.service.selection.ServiceContextFactory;
import javax.tv.service.selection.ServiceContextFactoryImpl;
import org.bluray.bdplus.Status;
import org.bluray.net.BDLocator;
+import org.bluray.system.RegisterAccess;
import org.bluray.ti.DiscManager;
import org.bluray.ti.TitleImpl;
import org.bluray.ti.selection.TitleContext;
@@ -243,7 +244,7 @@ public class Libbluray {
System.setProperty("dvb.returnchannel.timeout", "30");
/* get profile from PSR */
- int psr31 = readPSR(PSR_PROFILE_VERSION);
+ int psr31 = readPSR(RegisterAccess.PSR_PLAYER_PROFILE);
int version = psr31 & 0xffff;
int profile = psr31 >> 16;
boolean p11 = (profile & 0x01) != 0;
@@ -426,7 +427,7 @@ public class Libbluray {
/* used by org/bluray/ti/PlayListImpl */
public static int getCurrentTitle() {
- return readPSR(PSR_TITLE_NUMBER);
+ return readPSR(RegisterAccess.PSR_TITLE_NR);
}
@@ -525,7 +526,7 @@ public class Libbluray {
}
public static int getCurrentAngle() {
- return readPSR(PSR_ANGLE_NUMBER);
+ return readPSR(RegisterAccess.PSR_ANGLE_NR);
}
public static long getUOMask() {
More information about the libbluray-devel
mailing list