many improvements to the playback algorithm

This commit is contained in:
itsmattkc
2018-10-20 22:58:19 +11:00
parent c9b8775a81
commit 386693d372
11 changed files with 234 additions and 299 deletions
+2 -2
View File
@@ -192,8 +192,6 @@ bool same_sign(int a, int b) {
}
void TimelineWidget::dragEnterEvent(QDragEnterEvent *event) {
qDebug() << "DRAG ENTER CALLED";
bool import_init = false;
QVector<void*> media_list;
@@ -273,6 +271,8 @@ void TimelineWidget::dragEnterEvent(QDragEnterEvent *event) {
if (ms->video_frame_rate != 0) {
predicted_new_frame_rate = ms->video_frame_rate;
if (ms->video_interlacing != VIDEO_PROGRESSIVE) predicted_new_frame_rate *= 2;
// only break with a decent frame rate, otherwise there may be a better candidate
got_video_values = true;
break;