Changeset 924:570ec8455bb3 in mediastreamer2
- Timestamp:
- Mar 25, 2010 1:51:22 PM (3 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
src/nowebcam.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/nowebcam.c
r912 r924 1752 1752 /*output a frame every second*/ 1753 1753 if ((f->ticker->time - d->lasttime>1000) || d->lasttime==0){ 1754 ms_ mutex_lock(&f->lock);1754 ms_filter_lock(f); 1755 1755 if (d->pic) { 1756 1756 mblk_t *o=dupb(d->pic); … … 1759 1759 ms_queue_put(f->outputs[0],o); 1760 1760 } 1761 ms_ mutex_unlock(&f->lock);1761 ms_filter_unlock(f); 1762 1762 d->lasttime=f->ticker->time; 1763 1763 } … … 1800 1800 1801 1801 if (d->pic!=NULL){ 1802 /* Get rid of the old image and force a new preprocess so that the 1803 new image is properly read. */ 1802 1804 freemsg(d->pic); 1803 1805 d->pic=NULL; 1806 static_image_preprocess(f); 1804 1807 } 1805 1808
Note: See TracChangeset
for help on using the changeset viewer.
