proxy: improved UI on proxy menu

This commit is contained in:
itsmattkc
2020-05-04 01:33:26 +10:00
parent 2b1640ac04
commit b458bfa542
3 changed files with 35 additions and 8 deletions
+6 -5
View File
@@ -760,6 +760,12 @@ bool FFmpegDecoder::ProxyVideo(const QAtomicInt *cancelled, int divider)
futures.append(future);
}
// Wait for all conversions to finish
for (int i=0;i<futures.size();i++) {
futures[i].waitForFinished();
}
// If succeeded, update the video stream's proxy state
if (succeeded) {
QFile index_output(proxy_filename);
@@ -773,11 +779,6 @@ bool FFmpegDecoder::ProxyVideo(const QAtomicInt *cancelled, int divider)
video_stream->set_proxy(divider, frame_index);
}
// Wait for all conversions to finish
for (int i=0;i<futures.size();i++) {
futures[i].waitForFinished();
}
sws_freeContext(scaler);
av_packet_free(&pkt);