added proper timecodes in the timeline
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "media.h"
|
||||
#include "panels/viewer.h"
|
||||
#include "io/config.h"
|
||||
|
||||
#include <QPainter>
|
||||
#include <QPixmap>
|
||||
@@ -90,7 +91,7 @@ void PreviewGenerator::finalize_media() {
|
||||
if (!contains_still_image || media->audio_tracks.size() > 0) {
|
||||
double frame_rate = 30;
|
||||
if (!contains_still_image && media->video_tracks.size() > 0) frame_rate = media->video_tracks.at(0)->video_frame_rate;
|
||||
item->setText(1, frame_to_timecode(media->get_length_in_frames(frame_rate), TIMECODE_DROP, frame_rate));
|
||||
item->setText(1, frame_to_timecode(media->get_length_in_frames(frame_rate), config.timecode_view, frame_rate));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user