Changeset 172e22c2f2b4abbdfee50d9fe8aaaede4b405c76

Show
Ignore:
Timestamp:
06/22/08 21:41:15 (3 months ago)
Author:
Rémi Duraffort <ivoire@videolan.org>
git-committer:
Rémi Duraffort <ivoire@videolan.org> 1214163675 +0200
git-parent:

[42bb236284b09355d8bfde47fb4915dd1f07aa68]

git-author:
Rémi Duraffort <ivoire@videolan.org> 1214071945 +0200
Message:

Remove unneeded msg_Error.
Fix a potential segfault.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access/smb.c

    raa13881 r172e22c  
    217217    if( !(p_smb = smbc_new_context()) ) 
    218218    { 
    219         msg_Err( p_access, "out of memory" ); 
    220219        free( psz_uri ); 
    221220        return VLC_ENOMEM; 
  • modules/access_output/bonjour.c

    r3561b9b r172e22c  
    202202    p_sys = (bonjour_t *)malloc( sizeof(*p_sys) ); 
    203203    if( p_sys == NULL ) 
    204     { 
    205         msg_Err( p_log, "out of memory" ); 
    206204        return NULL; 
    207     } 
    208205 
    209206    memset( p_sys, 0, sizeof(*p_sys) ); 
     
    215212    p_sys->psz_stype = avahi_strdup( psz_stype ); 
    216213    if( p_sys->psz_name == NULL || p_sys->psz_stype == NULL ) 
    217     { 
    218         msg_Err( p_sys->p_log, "out of memory" ); 
    219         goto error; 
    220     } 
     214        goto error; 
    221215 
    222216    if( psz_txt != NULL ) 
     
    224218        p_sys->psz_txt = avahi_strdup( psz_txt ); 
    225219        if( p_sys->psz_txt == NULL ) 
    226         { 
    227             msg_Err( p_sys->p_log, "out of memory" ); 
    228220            goto error; 
    229         } 
    230221    } 
    231222 
     
    252243                                            sizeof(poll_thread_t) ); 
    253244    if( p_sys->poll_thread == NULL ) 
    254     { 
    255         msg_Err( p_sys->p_log, "out of memory" ); 
    256         goto error; 
    257     } 
     245        goto error; 
    258246    p_sys->poll_thread->simple_poll = p_sys->simple_poll; 
    259247 
  • modules/access_output/http.c

    r3561b9b r172e22c  
    172172    if( !( p_sys = p_access->p_sys = 
    173173                malloc( sizeof( sout_access_out_sys_t ) ) ) ) 
    174     { 
    175         msg_Err( p_access, "Not enough memory" ); 
    176174        return VLC_ENOMEM ; 
    177     } 
    178175 
    179176    config_ChainParse( p_access, SOUT_CFG_PREFIX, ppsz_sout_options, p_access->p_cfg ); 
  • modules/access_output/shout.c

    r3561b9b r172e22c  
    185185 
    186186    psz_accessname = psz_parser = strdup( p_access->psz_path ); 
     187    if( !psz_parser ) 
     188        return VLC_ENOMEM; 
    187189 
    188190    if( !p_access->psz_path ) 
     
    213215    if( !p_sys ) 
    214216    { 
    215         msg_Err( p_access, "out of memory" ); 
    216217        free( psz_accessname ); 
    217218        return VLC_ENOMEM; 
  • modules/demux/nsc.c

    rbcab891 r172e22c  
    214214    buf16 = malloc( buf16_size ); 
    215215    if( buf16 == NULL ) 
    216     { 
    217         msg_Err( p_demux, "out of memory" ); 
    218         return NULL; 
    219     } 
     216        return NULL; 
    220217 
    221218    for( i = 0; i < length; i++ ) 
     
    233230    if( buf8 == NULL ) 
    234231    { 
    235         msg_Err( p_demux, "out of memory" ); 
    236232        free( buf16 ); 
    237233        return NULL; 
  • modules/demux/ts.c

    r320337e r172e22c  
    729729            if( !prg ) 
    730730            { 
    731                 msg_Err( p_demux, "out of memory" ); 
    732731                Close( VLC_OBJECT(p_demux) ); 
    733732                return VLC_ENOMEM; 
  • modules/misc/svg.c

    r3561b9b r172e22c  
    132132    p_sys = malloc( sizeof( filter_sys_t ) ); 
    133133    if( !p_sys ) 
    134     { 
    135         msg_Err( p_filter, "out of memory" ); 
    136134        return VLC_ENOMEM; 
    137     } 
    138135 
    139136    /* Initialize psz_template */ 
     
    141138    if( !p_sys->psz_template ) 
    142139    { 
    143         msg_Err( p_filter, "out of memory" ); 
    144140        free( p_sys ); 
    145141        return VLC_ENOMEM; 
     
    205201                psz_template = malloc( ( s.st_size + 42 ) * sizeof( char ) ); 
    206202                if( !psz_template ) 
    207                 { 
    208                     msg_Err( p_filter, "out of memory" ); 
    209203                    return NULL; 
    210                 } 
    211204                memset( psz_template, 0, s.st_size + 1 ); 
    212205                fread( psz_template, s.st_size, 1, file ); 
     
    452445    p_svg = ( svg_rendition_t * )malloc( sizeof( svg_rendition_t ) ); 
    453446    if( !p_svg ) 
    454     { 
    455         msg_Err( p_filter, "out of memory" ); 
    456447        return VLC_ENOMEM; 
    457     } 
    458448 
    459449    p_region_out->i_x = p_region_in->i_x; 
     
    468458        if( !p_svg->psz_text ) 
    469459        { 
    470             msg_Err( p_filter, "out of memory" ); 
    471460            free( p_svg ); 
    472461            return VLC_ENOMEM; 
     
    483472        if( !p_svg->psz_text ) 
    484473        { 
    485             msg_Err( p_filter, "out of memory" ); 
    486474            free( p_svg ); 
    487475            return VLC_ENOMEM; 
  • modules/misc/win32text.c

    r3561b9b r172e22c  
    152152    p_filter->p_sys = p_sys = malloc( sizeof( filter_sys_t ) ); 
    153153    if( !p_sys ) 
    154     { 
    155         msg_Err( p_filter, "out of memory" ); 
    156154        return VLC_ENOMEM; 
    157     } 
    158155    p_sys->i_font_size = 0; 
    159156    p_sys->i_display_height = 0; 
  • modules/packetizer/mpeg4audio.c

    r3561b9b r172e22c  
    204204    if( ( p_dec->p_sys = p_sys = 
    205205          (decoder_sys_t *)malloc(sizeof(decoder_sys_t)) ) == NULL ) 
    206     { 
    207         msg_Err( p_dec, "out of memory" ); 
    208         return VLC_EGENERIC; 
    209     } 
     206        return VLC_ENOMEM; 
    210207 
    211208    /* Misc init */ 
  • modules/packetizer/mpeg4video.c

    r3561b9b r172e22c  
    161161    /* Allocate the memory needed to store the decoder's structure */ 
    162162    if( ( p_dec->p_sys = p_sys = malloc( sizeof(decoder_sys_t) ) ) == NULL ) 
    163     { 
    164         msg_Err( p_dec, "out of memory" ); 
    165         return VLC_EGENERIC; 
    166     } 
     163        return VLC_ENOMEM; 
    167164    memset( p_sys, 0, sizeof(decoder_sys_t) ); 
    168165 
  • modules/video_output/msw/events.c

    r025c96a r172e22c  
    114114     * message queue */ 
    115115    if( DirectXCreateWindow( p_event->p_vout ) ) 
    116     { 
    117         msg_Err( p_event, "out of memory" ); 
    118116        p_event->b_dead = true; 
    119     } 
    120117 
    121118    /* Signal the creation of the window */