Changeset 3723


Ignore:
Timestamp:
Aug 25, 2011 5:39:19 AM (8 years ago)
Author:
ming
Message:

Re #1349: Fixed a potential problem when stopping the video port. We should stop the clock first then stop the stream.

File:
1 edited

Legend:

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

    r3715 r3723  
    486486    PJ_ASSERT_RETURN(vp, PJ_EINVAL); 
    487487 
    488     status = pjmedia_vid_dev_stream_stop(vp->strm); 
    489  
    490488    if (vp->clock) { 
    491489        status = pjmedia_clock_stop(vp->clock); 
    492490    } 
     491 
     492    status = pjmedia_vid_dev_stream_stop(vp->strm); 
    493493 
    494494    return status; 
Note: See TracChangeset for help on using the changeset viewer.