From 5019053ee0475b539341b74b30fd0c89a1918ef8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 13 Jun 2015 00:50:30 +0100 Subject: [PATCH] Update progress bar when finding subtitles in FFmpeg content. --- ChangeLog | 2 ++ src/lib/ffmpeg_examiner.cc | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index c1ac5ff5e..b7234bc79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2015-06-13 Carl Hetherington + * Update progress bar (sort-of) when finding subtitles (#603). + * Make sure audio mapping view is scrollable when necessary (#597). 2015-06-12 Carl Hetherington diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index 5062ef0ca..f68c896db 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -77,6 +77,8 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr c, shared_ptrset_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 c, shared_ptrset_progress_unknown (); + AVCodecContext* context = _format_context->streams[_packet.stream_index]->codec; if (_packet.stream_index == _video_stream) { -- 2.30.2