Changeset fa096e6093bfa4e4e47cfec000e5e34944e2545e
- Timestamp:
- 04/09/08 00:32:45
(3 months ago)
- Author:
- Filippo Carone <littlejohn@videolan.org>
- git-committer:
- Filippo Carone <littlejohn@videolan.org> 1207693965 +0200
- git-parent:
[7c1e261199a69bc92f4f0bbd774725555139cce4]
- git-author:
- Filippo Carone <littlejohn@videolan.org> 1207690919 +0200
- Message:
release method added
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rbf1292e |
rfa096e6 |
|
| 37 | 37 | private LibVlc libvlc; |
|---|
| 38 | 38 | private LibVlcEventManager eventManager; |
|---|
| | 39 | private boolean released; |
|---|
| 39 | 40 | |
|---|
| 40 | 41 | /** |
|---|
| … | … | |
| 80 | 81 | protected void finalize() throws Throwable |
|---|
| 81 | 82 | { |
|---|
| 82 | | libvlc.libvlc_media_release(instance); |
|---|
| | 83 | release(); |
|---|
| 83 | 84 | super.finalize(); |
|---|
| 84 | 85 | } |
|---|
| … | … | |
| 103 | 104 | return libvlc; |
|---|
| 104 | 105 | } |
|---|
| | 106 | |
|---|
| | 107 | /** |
|---|
| | 108 | * |
|---|
| | 109 | */ |
|---|
| | 110 | public void release() |
|---|
| | 111 | { |
|---|
| | 112 | if (released) |
|---|
| | 113 | { |
|---|
| | 114 | return; |
|---|
| | 115 | } |
|---|
| | 116 | released = true; |
|---|
| | 117 | libvlc.libvlc_media_release(instance); |
|---|
| | 118 | } |
|---|
| | 119 | |
|---|
| | 120 | |
|---|
| 105 | 121 | } |
|---|