Ignore:
Timestamp:
Mar 22, 2015 7:50:28 AM (9 years ago)
Author:
ming
Message:

Fixed #1827: Video port's clock thread may get stuck during format change event

File:
1 edited

Legend:

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

    r4290 r5012  
    581581        pj_status_t status; 
    582582         
    583         pjmedia_vid_port_stop(vp); 
     583        /* Ticket #1827: 
     584         * Stopping video port should not be necessary here because 
     585         * it will also try to stop the clock, from inside the clock's 
     586         * own thread, so it may get stuck. We just stop the video device 
     587         * stream instead. 
     588         * pjmedia_vid_port_stop(vp); 
     589         */ 
     590        pjmedia_vid_dev_stream_stop(vp->strm); 
    584591         
    585592        /* Retrieve the video format detail */ 
     
    636643        } 
    637644         
    638         pjmedia_vid_port_start(vp); 
     645        /* pjmedia_vid_port_start(vp); */ 
     646        pjmedia_vid_dev_stream_start(vp->strm); 
    639647    } 
    640648     
Note: See TracChangeset for help on using the changeset viewer.