From 3b67c79bf4534e72a7eceaa6e566e7b7c949e4f7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 3 Jun 2015 10:46:47 +0100 Subject: [PATCH] Fix confusion with AUDIO_STREAMS property. --- src/lib/ffmpeg_content.cc | 5 ++--- src/lib/ffmpeg_content.h | 1 - src/wx/audio_panel.cc | 2 +- src/wx/dcp_panel.cc | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index eab110236..1278c4c10 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -51,8 +51,7 @@ using boost::dynamic_pointer_cast; int const FFmpegContentProperty::SUBTITLE_STREAMS = 100; int const FFmpegContentProperty::SUBTITLE_STREAM = 101; -int const FFmpegContentProperty::AUDIO_STREAMS = 102; -int const FFmpegContentProperty::FILTERS = 103; +int const FFmpegContentProperty::FILTERS = 102; FFmpegContent::FFmpegContent (shared_ptr f, boost::filesystem::path p) : Content (f, p) @@ -183,7 +182,7 @@ FFmpegContent::examine (shared_ptr job) signal_changed (FFmpegContentProperty::SUBTITLE_STREAMS); signal_changed (FFmpegContentProperty::SUBTITLE_STREAM); - signal_changed (FFmpegContentProperty::AUDIO_STREAMS); + signal_changed (AudioContentProperty::AUDIO_STREAMS); } string diff --git a/src/lib/ffmpeg_content.h b/src/lib/ffmpeg_content.h index b9ae4707a..04523b117 100644 --- a/src/lib/ffmpeg_content.h +++ b/src/lib/ffmpeg_content.h @@ -41,7 +41,6 @@ class FFmpegContentProperty : public VideoContentProperty public: static int const SUBTITLE_STREAMS; static int const SUBTITLE_STREAM; - static int const AUDIO_STREAMS; static int const FILTERS; }; diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index 8b2682762..c34a67032 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -220,5 +220,5 @@ AudioPanel::content_selection_changed () _show->Enable (sel.size() == 1); _mapping->Enable (sel.size() == 1); - film_content_changed (FFmpegContentProperty::AUDIO_STREAMS); + film_content_changed (AudioContentProperty::AUDIO_STREAMS); } diff --git a/src/wx/dcp_panel.cc b/src/wx/dcp_panel.cc index 786f294b0..7a5f0554f 100644 --- a/src/wx/dcp_panel.cc +++ b/src/wx/dcp_panel.cc @@ -370,7 +370,7 @@ DCPPanel::film_changed (int p) void DCPPanel::film_content_changed (int property) { - if (property == FFmpegContentProperty::AUDIO_STREAMS || + if (property == AudioContentProperty::AUDIO_STREAMS || property == SubtitleContentProperty::USE_SUBTITLES || property == VideoContentProperty::VIDEO_SCALE) { setup_dcp_name (); -- 2.30.2