Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
21ca9ddb
Commit
21ca9ddb
authored
Apr 08, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protect from null options param, and finalize added
parent
fa096e60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
bindings/java/core/src/main/java/org/videolan/jvlc/VLM.java
bindings/java/core/src/main/java/org/videolan/jvlc/VLM.java
+24
-5
No files found.
bindings/java/core/src/main/java/org/videolan/jvlc/VLM.java
View file @
21ca9ddb
...
...
@@ -30,7 +30,10 @@ import org.videolan.jvlc.internal.LibVlc.libvlc_exception_t;
public
class
VLM
{
private
JVLC
jvlc
;
private
volatile
boolean
released
;
public
VLM
(
JVLC
jvlc
)
{
...
...
@@ -45,7 +48,7 @@ public class VLM
name
,
input
,
output
,
options
.
length
,
options
==
null
?
0
:
options
.
length
,
options
,
enabled
?
1
:
0
,
loop
?
1
:
0
,
...
...
@@ -102,7 +105,7 @@ public class VLM
name
,
input
,
output
,
options
.
length
,
options
==
null
?
0
:
options
.
length
,
options
,
enabled
?
1
:
0
,
loop
?
1
:
0
,
...
...
@@ -114,13 +117,13 @@ public class VLM
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
jvlc
.
getLibvlc
().
libvlc_vlm_play_media
(
jvlc
.
getInstance
(),
name
,
exception
);
}
public
void
stopMedia
(
String
name
)
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
jvlc
.
getLibvlc
().
libvlc_vlm_stop_media
(
jvlc
.
getInstance
(),
name
,
exception
);
}
public
void
pauseMedia
(
String
name
)
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
...
...
@@ -140,13 +143,29 @@ public class VLM
}
/**
*
*
Releases native resources related to VLM.
*/
public
void
release
()
{
if
(
released
)
{
return
;
}
released
=
true
;
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
jvlc
.
getLibvlc
().
libvlc_vlm_release
(
jvlc
.
getInstance
(),
exception
);
}
/**
* {@inheritDoc}
*/
@Override
protected
void
finalize
()
throws
Throwable
{
release
();
super
.
finalize
();
}
}
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