Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
88014c2c
Commit
88014c2c
authored
Nov 09, 2006
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better args handling
parent
919c6542
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
bindings/java/org/videolan/jvlc/JVLC.java
bindings/java/org/videolan/jvlc/JVLC.java
+4
-1
bindings/java/src/core-jni.cc
bindings/java/src/core-jni.cc
+3
-7
No files found.
bindings/java/org/videolan/jvlc/JVLC.java
View file @
88014c2c
...
...
@@ -72,7 +72,10 @@ public class JVLC implements Runnable {
}
public
JVLC
(
String
[]
args
)
{
_instance
=
createInstance
(
args
);
String
[]
myargs
=
new
String
[
args
.
length
+
1
];
myargs
[
0
]
=
"jvlc"
;
System
.
arraycopy
(
args
,
0
,
myargs
,
1
,
args
.
length
);
_instance
=
createInstance
(
myargs
);
playlist
=
new
Playlist
(
_instance
);
video
=
new
Video
(
_instance
);
audio
=
new
Audio
(
_instance
);
...
...
bindings/java/src/core-jni.cc
View file @
88014c2c
...
...
@@ -56,11 +56,8 @@ JNIEXPORT jlong JNICALL Java_org_videolan_jvlc_JVLC_createInstance (JNIEnv *env,
argc
=
(
int
)
env
->
GetArrayLength
((
jarray
)
args
)
+
1
;
argv
=
(
const
char
**
)
malloc
(
argc
*
sizeof
(
char
*
));
argv
[
0
]
=
"vlc"
;
for
(
int
i
=
0
;
i
<
argc
-
1
;
i
++
)
{
argv
[
i
+
1
]
=
env
->
GetStringUTFChars
((
jstring
)
env
->
GetObjectArrayElement
(
args
,
i
),
for
(
int
i
=
0
;
i
<
argc
;
i
++
)
{
argv
[
i
]
=
env
->
GetStringUTFChars
((
jstring
)
env
->
GetObjectArrayElement
(
args
,
i
),
0
);
}
...
...
@@ -68,7 +65,6 @@ JNIEXPORT jlong JNICALL Java_org_videolan_jvlc_JVLC_createInstance (JNIEnv *env,
res
=
(
long
)
libvlc_new
(
argc
,
(
char
**
)
argv
,
exception
);
free
(
exception
);
free
(
argv
);
return
res
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment