mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-14 19:00:01 +01:00
changed a few int to long
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user