[libbluray-devel] playlist player: reflect stream changes to correct locator

hpi1 git at videolan.org
Sun Apr 17 21:41:59 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Apr 17 21:59:37 2016 +0300| [0ea58fe93218a40a5f5412db21e72f00a69b0589] | committer: hpi1

playlist player: reflect stream changes to correct locator

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

 .../bdj/java/org/videolan/media/content/playlist/Handler.java    |    6 +++---
 1 file changed, 3 insertions(+), 3 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 1f2bb85..f201d5c 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
@@ -278,14 +278,14 @@ public class Handler extends BDHandler {
 
     protected void doAudioStreamChanged(int param) {
         if (currentLocator != null) {
-            locator.setPrimaryAudioStreamNumber(param);
+            currentLocator.setPrimaryAudioStreamNumber(param);
             postMediaSelectSucceeded(currentLocator);
         }
     }
 
     private void doSecondaryVideoChanged(int stream, boolean enable) {
         if (currentLocator != null) {
-            locator.setSecondaryVideoStreamNumber(stream);
+            currentLocator.setSecondaryVideoStreamNumber(stream);
             postMediaSelectSucceeded(currentLocator);
         }
 
@@ -294,7 +294,7 @@ public class Handler extends BDHandler {
 
     private void doSecondaryAudioChanged(int stream, boolean enable) {
         if (currentLocator != null) {
-            locator.setSecondaryAudioStreamNumber(stream);
+            currentLocator.setSecondaryAudioStreamNumber(stream);
             postMediaSelectSucceeded(currentLocator);
         }
     }



More information about the libbluray-devel mailing list