[libbluray-devel] return DURATION_UNKNOWN instead of null
hpi1
git at videolan.org
Sun Apr 17 21:41:59 CEST 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Apr 17 19:52:05 2016 +0300| [8d7d2171262c40c387c690b404fb166c30d4e4cb] | committer: hpi1
return DURATION_UNKNOWN instead of null
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=8d7d2171262c40c387c690b404fb166c30d4e4cb
---
.../bdj/java/org/videolan/media/protocol/bd/DataSource.java | 2 +-
.../bdj/java/org/videolan/media/protocol/file/DataSource.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/bdj/java/org/videolan/media/protocol/bd/DataSource.java b/src/libbluray/bdj/java/org/videolan/media/protocol/bd/DataSource.java
index 69ff78f..2ff554c 100644
--- a/src/libbluray/bdj/java/org/videolan/media/protocol/bd/DataSource.java
+++ b/src/libbluray/bdj/java/org/videolan/media/protocol/bd/DataSource.java
@@ -34,7 +34,7 @@ public class DataSource extends javax.media.protocol.DataSource {
public Time getDuration() {
org.videolan.Logger.unimplemented(DataSource.class.getName(), "getDuration");
- return null;
+ return DURATION_UNKNOWN;
}
public String getContentType() {
diff --git a/src/libbluray/bdj/java/org/videolan/media/protocol/file/DataSource.java b/src/libbluray/bdj/java/org/videolan/media/protocol/file/DataSource.java
index bb00bb2..2dad4a9 100644
--- a/src/libbluray/bdj/java/org/videolan/media/protocol/file/DataSource.java
+++ b/src/libbluray/bdj/java/org/videolan/media/protocol/file/DataSource.java
@@ -33,7 +33,7 @@ public class DataSource extends javax.media.protocol.DataSource {
public Time getDuration() {
org.videolan.Logger.unimplemented(DataSource.class.getName(), "getDuration");
- return null;
+ return DURATION_UNKNOWN;
}
public String getContentType() {
More information about the libbluray-devel
mailing list