Ignore:
Timestamp:
Jun 3, 2009 6:59:37 PM (15 years ago)
Author:
bennylp
Message:

More ticket #876:

  • fixed crash when null-audio is used with switchboard
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/audiodev.c

    r2740 r2742  
    598598    PJ_ASSERT_RETURN(prm && prm->dir && p_aud_strm, PJ_EINVAL); 
    599599    PJ_ASSERT_RETURN(aud_subsys.pf, PJMEDIA_EAUD_INIT); 
     600    PJ_ASSERT_RETURN(prm->dir==PJMEDIA_DIR_CAPTURE || 
     601                     prm->dir==PJMEDIA_DIR_PLAYBACK || 
     602                     prm->dir==PJMEDIA_DIR_CAPTURE_PLAYBACK, 
     603                     PJ_EINVAL); 
    600604 
    601605    /* Must make copy of param because we're changing device ID */ 
     
    631635        f = play_f; 
    632636    } 
     637 
     638    PJ_ASSERT_RETURN(f != NULL, PJ_EBUG); 
    633639 
    634640    /* For now, rec_id and play_id must belong to the same factory */ 
Note: See TracChangeset for help on using the changeset viewer.