Changeset 92ee1ca09f64792406f73406d41952556321d2c8

Show
Ignore:
Timestamp:
04/28/05 09:43:09 (3 years ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1114674189 +0000
git-parent:

[16b435f09be15d5241a6d4897065cd0a605a4992]

git-author:
Laurent Aimar <fenrir@videolan.org> 1114674189 +0000
Message:
  • record: grrr, support for system that doesn't have localtime_r.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access_filter/record.c

    r5344445 r92ee1ca  
    326326        struct tm l; 
    327327 
     328#ifdef HAVE_LOCALTIME_R 
    328329        if( !localtime_r( &t, &l ) ) 
    329330            memset( &l, 0, sizeof(l) ); 
     331#else 
     332        /* Grrr */ 
     333        { 
     334            struct tm *p_l = localtime( &t ); 
     335            if( p_l ) 
     336                l = *p�l; 
     337            else 
     338                memset( &l, 0, sizeof(l) ); 
     339        } 
     340#endif 
    330341 
    331342        p_input = vlc_object_find( p_access, VLC_OBJECT_INPUT, FIND_PARENT );