Changeset d2910851e0b1feb21b3c3c453703995f10dd0348

Show
Ignore:
Timestamp:
04/10/07 20:21:57 (1 year ago)
Author:
Damien Fouilleul <damienf@videolan.org>
git-committer:
Damien Fouilleul <damienf@videolan.org> 1176229317 +0000
git-parent:

[b1b629475241544d112726111687788394d96a4d]

git-author:
Damien Fouilleul <damienf@videolan.org> 1176229317 +0000
Message:

libvlc_video_take_snapshot: removed kludge and fixed path_sanitize for win32

Files:

Legend:

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

    rd546db7 rd291085  
    159159    input_thread_t *p_input_thread; 
    160160 
    161     char path[256]; 
    162  
    163161    /* GetVout will raise the exception for us */ 
    164162    if( !p_vout ) 
     
    166164        return; 
    167165    } 
     166 
     167    if( !psz_filepath ) 
     168    { 
     169        libvlc_exception_raise( p_e, "filepath is null" ); 
     170        return; 
     171    } 
     172 
    168173 
    169174    p_input_thread = (input_thread_t*)vlc_object_get( 
     
    176181    } 
    177182 
    178     snprintf( path, 255, "%s", psz_filepath ); 
    179     var_SetString( p_vout, "snapshot-path", path ); 
     183    var_SetString( p_vout, "snapshot-path", psz_filepath ); 
    180184    var_SetString( p_vout, "snapshot-format", "png" ); 
    181185 
  • src/text/strings.c

    r7761faf rd291085  
    842842    char *prev = str - 1; 
    843843#endif 
     844#ifdef WIN32 
     845    /* check drive prefix if path is absolute */ 
     846    if( isalpha(*str) && (':' == *(str+1)) ) 
     847        str += 2; 
     848#endif 
    844849    while( *str ) 
    845850    {