decoder: signal indexing progress

Better UI interactions, actually shows the progress of the index function in
the task manager now.
This commit is contained in:
itsmattkc
2020-02-19 12:19:42 +11:00
parent 03bdf01357
commit 53551246da
4 changed files with 21 additions and 0 deletions
+4
View File
@@ -868,6 +868,8 @@ void FFmpegDecoder::UnconditionalAudioIndex(AVPacket *pkt, AVFrame *frame, const
if (data_frame != frame) {
av_frame_free(&data_frame);
}
SignalIndexProgress(frame->pts);
}
}
@@ -917,6 +919,8 @@ void FFmpegDecoder::UnconditionalVideoIndex(AVPacket* pkt, AVFrame* frame, const
//CacheFrameToDisk(frame);
video_stream->append_frame_index(frame->pts);
SignalIndexProgress(frame->pts);
} else {
// Assume we've reached the end of the file
break;