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/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