Changeset 97090ec35e65b1b3b3aa9b677367808fb1baefd6

Show
Ignore:
Timestamp:
03/09/08 12:42:59 (6 months ago)
Author:
Filippo Carone <littlejohn@videolan.org>
git-committer:
Filippo Carone <littlejohn@videolan.org> 1205062979 +0100
git-parent:

[4add9fe38b3ef395be2deee5930bd0b6b0a7cd07]

git-author:
Filippo Carone <littlejohn@videolan.org> 1205062979 +0100
Message:

Do not throw VLCException in Video class

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bindings/java/org/videolan/jvlc/Video.java

    rdaa85a7 r97090ec  
    6060     * @see org.videolan.jvlc.VideoIntf#getFullscreen() 
    6161     */ 
    62     public boolean getFullscreen(MediaInstance media) throws VLCException
     62    public boolean getFullscreen(MediaInstance media)
    6363        libvlc_exception_t exception = new libvlc_exception_t(); 
    6464        return libvlc.libvlc_get_fullscreen(media.getInstance(), exception) == 1 ? true : false; 
     
    6868     * @see org.videolan.jvlc.VideoIntf#getSnapshot(java.lang.String) 
    6969     */ 
    70     public void getSnapshot(MediaInstance media, String filepath, int width, int height) throws VLCException
     70    public void getSnapshot(MediaInstance media, String filepath, int width, int height)
    7171        libvlc_exception_t exception = new libvlc_exception_t(); 
    7272        libvlc.libvlc_video_take_snapshot(media.getInstance(), filepath, width, height, exception); 
     
    7676     * @see org.videolan.jvlc.VideoIntf#getVideoHeight() 
    7777     */ 
    78     public int getHeight(MediaInstance media) throws VLCException
     78    public int getHeight(MediaInstance media)
    7979        libvlc_exception_t exception = new libvlc_exception_t(); 
    8080        return libvlc.libvlc_video_get_height(media.getInstance(), exception); 
     
    8484     * @see org.videolan.jvlc.VideoIntf#getVideoWidth() 
    8585     */ 
    86     public int getWidth(MediaInstance media) throws VLCException
     86    public int getWidth(MediaInstance media)
    8787        libvlc_exception_t exception = new libvlc_exception_t(); 
    8888        return libvlc.libvlc_video_get_height(media.getInstance(), exception); 
     
    9292     * @see org.videolan.jvlc.VideoIntf#reparentVideo(java.awt.Component) 
    9393     */ 
    94     public void reparent(MediaInstance media, java.awt.Canvas canvas) throws VLCException
     94    public void reparent(MediaInstance media, java.awt.Canvas canvas)
    9595        libvlc_exception_t exception = new libvlc_exception_t(); 
    9696        long drawable = com.sun.jna.Native.getComponentID(canvas); 
     
    101101     * @see org.videolan.jvlc.VideoIntf#resizeVideo(int, int) 
    102102     */ 
    103     public void setSize(int width, int height) throws VLCException
     103    public void setSize(int width, int height)
    104104        libvlc_exception_t exception = new libvlc_exception_t(); 
    105105        libvlc.libvlc_video_set_size(libvlcInstance, width, height, exception); 
     
    109109     * @see org.videolan.jvlc.VideoIntf#setFullscreen(boolean) 
    110110     */ 
    111     public void setFullscreen(MediaInstance media, boolean fullscreen) throws VLCException
     111    public void setFullscreen(MediaInstance media, boolean fullscreen)
    112112        libvlc_exception_t exception = new libvlc_exception_t(); 
    113113        libvlc.libvlc_set_fullscreen(media.getInstance(), fullscreen? 1 : 0, exception); 
     
    117117     * @see org.videolan.jvlc.VideoIntf#toggleFullscreen() 
    118118     */ 
    119     public void toggleFullscreen(MediaInstance media) throws VLCException
     119    public void toggleFullscreen(MediaInstance media)
    120120        libvlc_exception_t exception = new libvlc_exception_t(); 
    121121        libvlc.libvlc_toggle_fullscreen(media.getInstance(), exception); 
     
    125125     * @see org.videolan.jvlc.VideoIntf#getSize() 
    126126     */ 
    127     public Dimension getSize(MediaInstance media) throws VLCException
     127    public Dimension getSize(MediaInstance media)
    128128        return new Dimension (getWidth(media), getHeight(media)); 
    129129    } 
     
    132132     * @see org.videolan.jvlc.VideoIntf#setSize(java.awt.Dimension) 
    133133     */ 
    134     public void setSize(Dimension d) throws VLCException
     134    public void setSize(Dimension d)
    135135        setSize(d.width, d.height); 
    136136    }