Changeset 807 for pjproject/trunk/pjmedia/src/pjmedia-codec/speex_codec.c
- Timestamp:
- Nov 19, 2006 8:28:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/speex_codec.c
r637 r807 311 311 } 312 312 313 pj_mutex_lock(spx_factory.mutex); 314 313 315 /* We don't want to deinit if there's outstanding codec. */ 314 pj_mutex_lock(spx_factory.mutex); 316 /* This is silly, as we'll always have codec in the list if 317 we ever allocate a codec! A better behavior maybe is to 318 deallocate all codecs in the list. 315 319 if (!pj_list_empty(&spx_factory.codec_list)) { 316 320 pj_mutex_unlock(spx_factory.mutex); 317 321 return PJ_EBUSY; 318 322 } 323 */ 319 324 320 325 /* Get the codec manager. */ … … 743 748 } 744 749 745 /* Initialization of the structure that holds the bits */746 speex_bits_init(&spx->dec_bits);747 748 750 /* Copy the data into the bit-stream struct */ 749 751 speex_bits_read_from(&spx->dec_bits, input->buf, input->size);
Note: See TracChangeset
for help on using the changeset viewer.