Changeset 315:0d21abaf926e in mediastreamer2 for linphone/mediastreamer2/src/winvideods.c
- Timestamp:
- Mar 9, 2009 12:30:40 PM (4 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
linphone/mediastreamer2/src/winvideods.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
linphone/mediastreamer2/src/winvideods.c
r313 r315 65 65 int frame_max; 66 66 float fps; 67 float start_time;67 uint64_t start_time; 68 68 int frame_count; 69 69 }V4wState; … … 1302 1302 } 1303 1303 1304 cur_frame=( (obj->ticker->time-s->start_time)*s->fps/1000.0);1304 cur_frame=(int)((obj->ticker->time-s->start_time)*s->fps/1000.0); 1305 1305 if (cur_frame>s->frame_count){ 1306 1306 mblk_t *om=NULL; … … 1321 1321 ms_mutex_unlock(&s->mutex); 1322 1322 if (om!=NULL){ 1323 timestamp= obj->ticker->time*90;/* rtp uses a 90000 Hz clockrate for video*/1323 timestamp=(uint32_t)obj->ticker->time*90;/* rtp uses a 90000 Hz clockrate for video*/ 1324 1324 mblk_set_timestamp_info(om,timestamp); 1325 1325 ms_queue_put(obj->outputs[0],om);
Note: See TracChangeset
for help on using the changeset viewer.
