Changeset 1cd51bdfc4de72e4774f8262e72bcc730f0ef1be

Show
Ignore:
Timestamp:
16/05/08 13:08:51 (5 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1210936131 +0200
git-parent:

[d3635fbc39a80443a50cac429bb1eaec651ff991]

git-author:
Rafaël Carré <funman@videolan.org> 1210936131 +0200
Message:

Initialise input memory

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/input/input.c

    rdebfaaa r1cd51bd  
    154154 
    155155    MALLOC_NULL( p_input->p, input_thread_private_t ); 
     156    memset( p_input->p, 0, sizeof( input_thread_private_t ) ); 
    156157 
    157158    /* One "randomly" selected input thread is responsible for computing 
     
    21802181{ 
    21812182    input_source_t *in = (input_source_t*) malloc( sizeof( input_source_t ) ); 
    2182  
    2183     if( !in ) 
    2184     { 
    2185         msg_Err( p_input, "out of memory for new input source" ); 
    2186         return NULL; 
    2187     } 
    2188  
    2189     in->p_item   = NULL; 
    2190     in->p_access = NULL; 
    2191     in->p_stream = NULL; 
    2192     in->p_demux  = NULL; 
    2193     in->b_title_demux = false; 
    2194     TAB_INIT( in->i_title, in->title ); 
    2195     in->b_can_pause = true; 
    2196     in->b_can_pace_control = true; 
    2197     in->b_can_rate_control = true; 
    2198     in->b_rescale_ts = true; 
    2199     in->b_eof = false; 
    2200     in->f_fps = 0.0; 
    2201     in->i_cr_average = 0; 
    2202  
     2183    if( in ) 
     2184        memset( in, 0, sizeof( input_source_t ) ); 
    22032185    return in; 
    22042186}