[libbluray-devel] Fix audio player stub for normal audio files

hpi1 git at videolan.org
Wed Oct 29 14:00:43 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Oct 29 14:59:24 2014 +0200| [0240ac066cbcca570821a1501fa9dbda26bc9cd2] | committer: hpi1

Fix audio player stub for normal audio files

Locator can be ex. file:/

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

 .../java/org/videolan/media/content/audio/Handler.java    |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/media/content/audio/Handler.java b/src/libbluray/bdj/java/org/videolan/media/content/audio/Handler.java
index 92055ab..658c41c 100644
--- a/src/libbluray/bdj/java/org/videolan/media/content/audio/Handler.java
+++ b/src/libbluray/bdj/java/org/videolan/media/content/audio/Handler.java
@@ -48,12 +48,15 @@ public class Handler extends BDHandler {
         this.source = new org.videolan.media.protocol.dripfeed.DataSource(source.getLocator());
         if (source.getLocator() == null)
             throw new IncompatibleSourceException();
+        /*
+          can be ex. file:/mnt/bluray/BDMV/JAR/00000/Sub_switch.pcm
 
-            try {
-                locator = new BDLocator(source.getLocator().toExternalForm());
-            } catch (org.davic.net.InvalidLocatorException e) {
-                throw new IncompatibleSourceException();
-            }
+        try {
+            locator = new BDLocator(source.getLocator().toExternalForm());
+        } catch (org.davic.net.InvalidLocatorException e) {
+            throw new IncompatibleSourceException();
+        }
+        */
     }
 
     public Time getDuration() {



More information about the libbluray-devel mailing list