Update progress bar when finding subtitles in FFmpeg content.
authorCarl Hetherington <cth@carlh.net>
Fri, 12 Jun 2015 23:50:30 +0000 (00:50 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 12 Jun 2015 23:50:30 +0000 (00:50 +0100)
ChangeLog
src/lib/ffmpeg_examiner.cc

index c1ac5ff5e773731044dcb17e6a864186bc568789..b7234bc7975d3e3f05eede6b9224b79f69ad82a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2015-06-13  Carl Hetherington  <cth@carlh.net>
 
+       * Update progress bar (sort-of) when finding subtitles (#603).
+
        * Make sure audio mapping view is scrollable when necessary (#597).
 
 2015-06-12  Carl Hetherington  <cth@carlh.net>
index 5062ef0ca60957b16fd3efe0383067918a6a3254..f68c896dba256ee074a60a6b4f4659053d1711ab 100644 (file)
@@ -77,6 +77,8 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo
                job->set_progress_unknown ();
        }
 
+       job->sub (_("Finding subtitles"));
+
        /* Run through until we find:
         *   - the first video.
         *   - the first audio for each stream.
@@ -92,6 +94,8 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo
                        break;
                }
 
+               job->set_progress_unknown ();
+
                AVCodecContext* context = _format_context->streams[_packet.stream_index]->codec;
 
                if (_packet.stream_index == _video_stream) {