From: Carl Hetherington Date: Tue, 10 May 2016 23:54:48 +0000 (+0100) Subject: Better summaries for FFmpeg content in the list. X-Git-Tag: v2.8.4~19 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=5487e9d12cd84f1dbe976ec022a4ddd4c3f52cd2;hp=cffb00d2625747e77a89a2cbed3e51ce04196aad;p=dcpomatic.git Better summaries for FFmpeg content in the list. --- diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index fdbdd4eb5..564200c87 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -253,8 +253,15 @@ FFmpegContent::examine (shared_ptr job) string FFmpegContent::summary () const { - /* Get the string() here so that the name does not have quotes around it */ - return String::compose (_("%1 [movie]"), path_summary ()); + if (video && audio) { + return String::compose (_("%1 [movie]"), path_summary ()); + } else if (video) { + return String::compose (_("%1 [video]"), path_summary ()); + } else if (audio) { + return String::compose (_("%1 [audio]"), path_summary ()); + } + + return path_summary (); } string