[vlc-devel] commit: jvlc: audio is an instance property (Filippo Carone )

git version control git at videolan.org
Tue Jan 6 19:43:22 CET 2009


vlc | branch: master | Filippo Carone <littlejohn at videolan.org> | Tue Jan  6 19:40:35 2009 +0100| [c6c3b26a165ca2109f7c40c0251b1656fecbc995] | committer: Filippo Carone 

jvlc: audio is an instance property

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6c3b26a165ca2109f7c40c0251b1656fecbc995
---

 .../core/src/main/java/org/videolan/jvlc/JVLC.java |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/bindings/java/core/src/main/java/org/videolan/jvlc/JVLC.java b/bindings/java/core/src/main/java/org/videolan/jvlc/JVLC.java
index 803d856..eef9a80 100644
--- a/bindings/java/core/src/main/java/org/videolan/jvlc/JVLC.java
+++ b/bindings/java/core/src/main/java/org/videolan/jvlc/JVLC.java
@@ -48,6 +48,8 @@ public class JVLC
     
     private VLM vlm;
     
+    private Audio audio;
+    
     private volatile boolean released;
 
     private MediaListPlayer mediaListPlayer;
@@ -56,17 +58,21 @@ public class JVLC
     {
         String[] args = new String[] {};
         instance = createInstance(args);
-        mediaList = new MediaList(this);
-        mediaListPlayer = new MediaListPlayer(this);
-        mediaListPlayer.setMediaList(mediaList);
+        init();
     }
 
     public JVLC(String[] args)
     {
         instance = createInstance(args);
+        init();
+    }
+    
+    private void init()
+    {
         mediaList = new MediaList(this);
         mediaListPlayer = new MediaListPlayer(this);
         mediaListPlayer.setMediaList(mediaList);
+        audio = new Audio(this);
     }
     
     public JVLC(String args)
@@ -193,5 +199,13 @@ public class JVLC
     {
         return mediaListPlayer;
     }
+
+    /**
+     * @return
+     */
+    public Audio getAudio()
+    {
+        return audio;
+    }
     
 }




More information about the vlc-devel mailing list