Ignore:
Timestamp:
Mar 5, 2007 1:13:22 PM (18 years ago)
Author:
bennylp
Message:

Allow pjmedia_snd_init()/deinit() to be called more than once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/dsound.c

    r974 r1041  
    5757static unsigned dev_count; 
    5858static struct dsound_dev_info dev_info[MAX_HARDWARE]; 
    59  
     59static int snd_init_count; 
    6060 
    6161 
     
    638638    unsigned i; 
    639639 
     640    if (++snd_init_count != 1) 
     641        return PJ_SUCCESS; 
     642 
    640643    pool_factory = factory; 
    641644 
     
    667670PJ_DEF(pj_status_t) pjmedia_snd_deinit(void) 
    668671{ 
     672    --snd_init_count; 
    669673    return PJ_SUCCESS; 
    670674} 
Note: See TracChangeset for help on using the changeset viewer.