[vlc-devel] commit: jvlc: accept cmdline args for sample client (Filippo Carone )

git version control git at videolan.org
Fri Aug 29 11:41:51 CEST 2008


vlc | branch: master | Filippo Carone <littlejohn at videolan.org> | Tue Aug 26 13:09:00 2008 +0200| [3d9a3c57bf81ade308b57358355055fab2d83b80] | committer: Filippo Carone 

jvlc: accept cmdline args for sample client

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

 .../samples/client/src/main/java/VlcClient.java    |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/bindings/java/samples/client/src/main/java/VlcClient.java b/bindings/java/samples/client/src/main/java/VlcClient.java
index c44fea8..f139fb7 100644
--- a/bindings/java/samples/client/src/main/java/VlcClient.java
+++ b/bindings/java/samples/client/src/main/java/VlcClient.java
@@ -42,12 +42,12 @@ class VLCPlayerFrame extends Frame
 
     public Canvas jvcanvas;
 
-    public VLCPlayerFrame()
+    public VLCPlayerFrame(String[] args)
     {
-        initComponents();
+        initComponents(args);
     }
 
-    private void initComponents()
+    private void initComponents(String[] args)
     {
 
         java.awt.GridBagConstraints gridBagConstraints;
@@ -63,7 +63,7 @@ class VLCPlayerFrame extends Frame
         jvcanvas.setSize(200, 200);
         jvcc.add(jvcanvas);
         
-        jvlc = new JVLC();
+        jvlc = new JVLC(args);
         
         playlist = new Playlist(jvlc);
 
@@ -215,7 +215,7 @@ public class VlcClient
 
     public static void main(String[] args)
     {
-        Frame f = new VLCPlayerFrame();
+        Frame f = new VLCPlayerFrame(args);
         f.setBounds(0, 0, 500, 500);
         f.addWindowListener(new WindowAdapter()
         {




More information about the vlc-devel mailing list