#include "lib/filter.h"
#include "lib/config.h"
#include "lib/ffmpeg_decoder.h"
-#include "lib/external_audio_decoder.h"
#include "filter_dialog.h"
#include "wx_util.h"
#include "film_editor.h"
_trim_end->SetRange (0, _film->length().get());
}
break;
- case Film::DCP_INTRINSIC_DURATION:
- break;
case Film::DCP_CONTENT_TYPE:
checked_set (_dcp_content_type, DCPContentType::as_index (_film->dcp_content_type ()));
setup_dcp_name ();
void
FilmEditor::setup_audio_control_sensitivity ()
{
- _use_content_audio->Enable (_generally_sensitive);
+ _use_content_audio->Enable (_generally_sensitive && _film && !_film->content_audio_streams().empty());
_use_external_audio->Enable (_generally_sensitive);
bool const source = _generally_sensitive && _use_content_audio->GetValue();
void
FilmEditor::setup_audio_details ()
{
- if (!_film->audio_stream()) {
+ if (!_film->content_audio_stream()) {
_audio->SetLabel (wxT (""));
} else {
stringstream s;