[libbluray-devel] Build fixes

hpi1 git at videolan.org
Fri Sep 14 14:46:08 CEST 2012


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Sep 14 12:45:37 2012 +0300| [20c3db7f716199a46257848c5650f7ae9a3e438d] | committer: hpi1

Build fixes

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

 .../java/org/videolan/media/content/playlist/AngleControlImpl.java |    2 +-
 .../videolan/media/content/playlist/PlayListChangeControlImpl.java |    4 ++--
 .../java/org/videolan/media/content/playlist/StreamControl.java    |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/media/content/playlist/AngleControlImpl.java b/src/libbluray/bdj/java/org/videolan/media/content/playlist/AngleControlImpl.java
index b34de5a..56da8b8 100644
--- a/src/libbluray/bdj/java/org/videolan/media/content/playlist/AngleControlImpl.java
+++ b/src/libbluray/bdj/java/org/videolan/media/content/playlist/AngleControlImpl.java
@@ -46,7 +46,7 @@ public class AngleControlImpl implements AngleControl {
 
     public int getAvailableAngles()
     {
-        return player.ti.getAngleCount();
+        return player.pi.getAngleCount();
     }
 
     public void selectDefaultAngle()
diff --git a/src/libbluray/bdj/java/org/videolan/media/content/playlist/PlayListChangeControlImpl.java b/src/libbluray/bdj/java/org/videolan/media/content/playlist/PlayListChangeControlImpl.java
index 1bb84a8..172c342 100644
--- a/src/libbluray/bdj/java/org/videolan/media/content/playlist/PlayListChangeControlImpl.java
+++ b/src/libbluray/bdj/java/org/videolan/media/content/playlist/PlayListChangeControlImpl.java
@@ -67,13 +67,13 @@ public class PlayListChangeControlImpl implements PlayListChangeControl {
         if (!Libbluray.selectPlaylist(locator.getPlayListId()))
             throw new InvalidPlayListException();
         
-        player.ti = Libbluray.getPlaylistInfo(locator.getPlayListId());
+        player.pi = Libbluray.getPlaylistInfo(locator.getPlayListId());
     }
 
     public BDLocator getCurrentPlayList()
     {
         try {
-            return new BDLocator(null, player.ti.getIndex(), player.ti.getPlaylist());
+            return new BDLocator(null, Libbluray.getCurrentTitle(), player.pi.getPlaylist());
         } catch (org.davic.net.InvalidLocatorException e) {
             return null;
         }
diff --git a/src/libbluray/bdj/java/org/videolan/media/content/playlist/StreamControl.java b/src/libbluray/bdj/java/org/videolan/media/content/playlist/StreamControl.java
index 0b31c24..3cc6bdb 100644
--- a/src/libbluray/bdj/java/org/videolan/media/content/playlist/StreamControl.java
+++ b/src/libbluray/bdj/java/org/videolan/media/content/playlist/StreamControl.java
@@ -51,7 +51,7 @@ public abstract class StreamControl {
     
     protected TIClip getCurrentClip()
     {
-        TIClip[] clips = player.ti.getClips();
+        TIClip[] clips = player.pi.getClips();
         int playitem = RegisterAccess.getInstance().getPSR(RegisterAccess.PSR_PLAYITEM_ID) - 1;
         
         if (clips.length >= playitem)



More information about the libbluray-devel mailing list