Changeset 3792 for pjproject/trunk


Ignore:
Timestamp:
Oct 6, 2011 5:57:37 AM (13 years ago)
Author:
bennylp
Message:

Misc (re #1370): vid_dev_stream should not call start() if it is already been started

File:
1 edited

Legend:

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

    r3781 r3792  
    791791PJ_DEF(pj_status_t) pjmedia_vid_dev_stream_start(pjmedia_vid_dev_stream *strm) 
    792792{ 
    793     pj_status_t status = strm->op->start(strm); 
     793    pj_status_t status; 
     794 
     795    if (pjmedia_vid_dev_stream_is_running(strm)) 
     796        return PJ_SUCCESS; 
     797 
     798    status = strm->op->start(strm); 
    794799    if (status == PJ_SUCCESS) 
    795800        strm->sys.is_running = PJ_TRUE; 
Note: See TracChangeset for help on using the changeset viewer.