summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfred <fred@home.lan>2011-05-06 19:46:30 (GMT)
committer fred <fred@home.lan>2011-05-06 19:46:30 (GMT)
commit5605d23adb6def33800ee68f703ef224aeaf236a (patch)
tree93f2eaf3856fcd8233ab109308278c4e9a785e3c
parent0e9b4c5925ac99dc1c43caa0624c99dc2aab6103 (diff)
now file dumped synced when done without streaming
- in VideoEncoder::thread_loop, putted back fps->calc and fps->delay calls, this corrects a sync bug when a file was dumped on the disk without streaming at the same time.
-rw-r--r--src/video_encoder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_encoder.cpp b/src/video_encoder.cpp
index 2690b7f..47c447e 100644
--- a/src/video_encoder.cpp
+++ b/src/video_encoder.cpp
@@ -206,6 +206,8 @@ void VideoEncoder::thread_loop() {
" tv_usec :" << fps->start_tv.tv_usec << " \r" << std::endl;
return;
}
+ fps->calc();
+ fps->delay();
//uncomment this to see how long it takes between two frames in us.
/* timeval start_t;
gettimeofday(&start_t,NULL);