aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/util/av/impl/OMXGLMediaPlayer.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-09-08 13:53:25 +0200
committerSven Gothel <[email protected]>2014-09-08 13:53:25 +0200
commit1bdc495c19d3c8798a56d8476247084f0c870b48 (patch)
treebad6ccdb4faf188c069a0513a494e1a7e3d18c6b /src/jogl/classes/jogamp/opengl/util/av/impl/OMXGLMediaPlayer.java
parentc0c722b9f479412f27973ba0c4cd4a166dcb00be (diff)
Bug 1063: Uri adoption
- ShaderCode: - Using Uri - Also encode the rel. 'includeFile' (was missing earlier) - GLMediaPlayer - Exposes Uri in API, removed URI
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/util/av/impl/OMXGLMediaPlayer.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/util/av/impl/OMXGLMediaPlayer.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/av/impl/OMXGLMediaPlayer.java b/src/jogl/classes/jogamp/opengl/util/av/impl/OMXGLMediaPlayer.java
index 0eeb54bf6..5baf9e543 100644
--- a/src/jogl/classes/jogamp/opengl/util/av/impl/OMXGLMediaPlayer.java
+++ b/src/jogl/classes/jogamp/opengl/util/av/impl/OMXGLMediaPlayer.java
@@ -100,10 +100,10 @@ public class OMXGLMediaPlayer extends EGLMediaPlayerImpl {
if(0==moviePtr) {
throw new GLException("OMX native instance null");
}
- if(!getURI().getScheme().equals("file")) {
- throw new IOException("Only file schemes are allowed: "+getURI());
+ if( !getUri().isFileScheme() ) {
+ throw new IOException("Only file schemes are allowed: "+getUri());
}
- final String path=getURI().getPath();
+ final String path=getUri().path.decode();
if(DEBUG) {
System.out.println("initGLStream: clean path "+path);
}