summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-13 01:22:10 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-13 01:22:10 +0100
commit15b1cc84d59af6dc2cb062d3ea557e4635768fa8 (patch)
treedff0080840fdf152abd3aa5ca0e5584cb16efabb /src/lib
parentbb7462e9c4f803e443991d9d0274767de3f48aa9 (diff)
Try to fix crash.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ffmpeg_examiner.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc
index f68c896db..6d5e33238 100644
--- a/src/lib/ffmpeg_examiner.cc
+++ b/src/lib/ffmpeg_examiner.cc
@@ -77,7 +77,9 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo
job->set_progress_unknown ();
}
- job->sub (_("Finding subtitles"));
+ if (job) {
+ job->sub (_("Finding subtitles"));
+ }
/* Run through until we find:
* - the first video.
@@ -94,7 +96,9 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo
break;
}
- job->set_progress_unknown ();
+ if (job) {
+ job->set_progress_unknown ();
+ }
AVCodecContext* context = _format_context->streams[_packet.stream_index]->codec;