proxy: improved UI on proxy menu
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user