Changeset 2513


Ignore:
Timestamp:
Mar 16, 2009 4:29:39 PM (10 years ago)
Author:
nanang
Message:

Ticket #737: Fixed assertion when auddev is opened in playback direction only.

File:
1 edited

Legend:

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

    r2506 r2513  
    624624        param.play_id = index; 
    625625        f = play_f; 
    626  
    627         /* For now, rec_id and play_id must belong to the same factory */ 
    628         PJ_ASSERT_RETURN(rec_f == play_f, PJMEDIA_EAUD_INVDEV); 
    629     } 
    630  
    631      
     626    } 
     627 
     628    /* For now, rec_id and play_id must belong to the same factory */ 
     629    PJ_ASSERT_RETURN((param.dir != PJMEDIA_DIR_CAPTURE_PLAYBACK) ||  
     630                     (rec_f == play_f), 
     631                     PJMEDIA_EAUD_INVDEV); 
     632 
    632633    /* Create the stream */ 
    633634    status = f->op->create_stream(f, &param, rec_cb, play_cb, 
Note: See TracChangeset for help on using the changeset viewer.