Changeset 760


Ignore:
Timestamp:
Oct 10, 2006 6:33:55 PM (15 years ago)
Author:
bennylp
Message:

Changed pasound.c to handle situation when NULL is passed as input/output buffer by PortAudio?

File:
1 edited

Legend:

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

    r759 r760  
    8585        goto on_break; 
    8686 
     87    if (input == NULL) 
     88        return paContinue; 
     89 
    8790    if (stream->thread_initialized == 0) { 
    8891        status = pj_thread_register("pa_rec", stream->thread_desc,  
     
    129132    if (stream->quit_flag) 
    130133        goto on_break; 
     134 
     135    if (output == NULL) 
     136        return paContinue; 
    131137 
    132138    if (stream->thread_initialized == 0) { 
Note: See TracChangeset for help on using the changeset viewer.