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
fa096e60
Commit
fa096e60
authored
Apr 08, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release method added
parent
7c1e2611
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
bindings/java/core/src/main/java/org/videolan/jvlc/MediaDescriptor.java
...core/src/main/java/org/videolan/jvlc/MediaDescriptor.java
+17
-1
No files found.
bindings/java/core/src/main/java/org/videolan/jvlc/MediaDescriptor.java
View file @
fa096e60
...
...
@@ -36,6 +36,7 @@ public class MediaDescriptor
private
LibVlcMediaDescriptor
instance
;
private
LibVlc
libvlc
;
private
LibVlcEventManager
eventManager
;
private
boolean
released
;
/**
* @param jvlc The jvlc instance to create the media descriptor for.
...
...
@@ -79,7 +80,7 @@ public class MediaDescriptor
@Override
protected
void
finalize
()
throws
Throwable
{
libvlc
.
libvlc_media_release
(
instance
);
release
(
);
super
.
finalize
();
}
...
...
@@ -102,4 +103,19 @@ public class MediaDescriptor
{
return
libvlc
;
}
/**
*
*/
public
void
release
()
{
if
(
released
)
{
return
;
}
released
=
true
;
libvlc
.
libvlc_media_release
(
instance
);
}
}
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