Changeset 2366 for pjproject/trunk
- Timestamp:
- Nov 12, 2008 10:48:05 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/wmme_sound.c
r2290 r2366 41 41 static unsigned dev_count; 42 42 static struct wmme_dev_info dev_info[MAX_HARDWARE]; 43 static int snd_init_count;43 static pj_bool_t snd_initialized = PJ_FALSE; 44 44 45 45 /* Latency settings */ … … 484 484 int inputDeviceCount, outputDeviceCount, maximumPossibleDeviceCount; 485 485 486 if ( ++snd_init_count != 1)486 if (snd_initialized) 487 487 return PJ_SUCCESS; 488 489 pj_bzero(&dev_info, sizeof(dev_info)); 488 490 489 491 dev_count = 0; … … 618 620 PJ_DEF(pj_status_t) pjmedia_snd_deinit(void) 619 621 { 620 --snd_init_count;622 snd_initialized = PJ_FALSE; 621 623 return PJ_SUCCESS; 622 624 }
Note: See TracChangeset
for help on using the changeset viewer.