changed a few int to long

This commit is contained in:
lostjared
2018-03-20 20:02:30 -07:00
parent 80bc97a814
commit cbea75a9c7
3 changed files with 3 additions and 3 deletions

View File

@@ -736,7 +736,7 @@ void AC_MainWindow::updateFrame(QImage img) {
QString frame_string;
QTextStream frame_stream(&frame_string);
if(!recording) {
frame_stream << "(Current/Total Frames/Seconds) - (" << frame_index << "/" << video_frames << "/" << (unsigned int)(frame_index/video_fps) << ") ";
frame_stream << "(Current/Total Frames/Seconds) - (" << frame_index << "/" << video_frames << "/" << (unsigned long)(frame_index/video_fps) << ") ";
} else {
struct stat buf;
stat(video_file_name.toStdString().c_str(), &buf);

View File

@@ -34,7 +34,7 @@ void Playback::setVideo(cv::VideoCapture cap, cv::VideoWriter wr, bool record) {
writer = wr;
recording = record;
if(capture.isOpened()) {
frame_rate = (int) capture.get(CV_CAP_PROP_FPS);
frame_rate = capture.get(CV_CAP_PROP_FPS);
if(frame_rate <= 0) frame_rate = 24;
}
mutex.unlock();

View File

@@ -21,7 +21,7 @@ private:
QMutex mutex, mutex_shown, mutex_add;
QWaitCondition condition;
cv::Mat frame;
int frame_rate;
double frame_rate;
bool recording;
cv::VideoCapture capture;
cv::VideoWriter writer;