Changeset e315c9b416dd33922deb3700dd192bad1cfff872

Show
Ignore:
Timestamp:
13/06/08 15:14:38 (6 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1213362878 +0200
git-parent:

[d5aaf6b2714a65b9fd25f1c34624ca551c0ce99d]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1213362878 +0200
Message:

libvlc_video_set_viewport: Make sure we don't crash if view is NULL.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/control/video.c

    rd5aaf6b re315c9b  
    293293                           libvlc_exception_t *p_e ) 
    294294{ 
    295     if( NULL == view ) 
     295    if( !view ) 
    296296    { 
    297297        libvlc_exception_raise( p_e, "viewport is NULL" ); 
     298        return; 
    298299    } 
    299300 
    300301    /* if clip is NULL, then use view rectangle as clip */ 
    301     if( NULL == clip ) 
     302    if( !clip ) 
    302303        clip = view; 
    303304