Changeset fa096e6093bfa4e4e47cfec000e5e34944e2545e

Show
Ignore:
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
  • bindings/java/core/src/main/java/org/videolan/jvlc/MediaDescriptor.java

    rbf1292e rfa096e6  
    3737    private LibVlc libvlc; 
    3838    private LibVlcEventManager eventManager; 
     39    private boolean released; 
    3940     
    4041    /** 
     
    8081    protected void finalize() throws Throwable 
    8182    { 
    82         libvlc.libvlc_media_release(instance); 
     83        release(); 
    8384        super.finalize(); 
    8485    } 
     
    103104        return libvlc; 
    104105    } 
     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     
    105121}