From 0a2d40420813403a96352c6dc895d23fcd9994c0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 25 Apr 2016 21:43:25 +0100 Subject: Fix rebase onto master. --- src/wx/audio_dialog.cc | 4 ++-- src/wx/audio_dialog.h | 2 +- src/wx/timeline.cc | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wx/audio_dialog.cc b/src/wx/audio_dialog.cc index a1354e9f8..d4052defb 100644 --- a/src/wx/audio_dialog.cc +++ b/src/wx/audio_dialog.cc @@ -175,10 +175,10 @@ AudioDialog::try_to_load_analysis () /* Nothing checked; check mapped ones */ list mapped; - shared_ptr content = _content.lock (); + shared_ptr content = _content.lock (); if (content) { - mapped = content->audio_mapping().mapped_output_channels (); + mapped = content->audio->mapping().mapped_output_channels (); } else { mapped = film->mapped_audio_channels (); } diff --git a/src/wx/audio_dialog.h b/src/wx/audio_dialog.h index 8624b7af3..fd0b1c3f7 100644 --- a/src/wx/audio_dialog.h +++ b/src/wx/audio_dialog.h @@ -45,7 +45,7 @@ private: boost::shared_ptr _analysis; boost::weak_ptr _film; - boost::weak_ptr _content; + boost::weak_ptr _content; int _channels; boost::shared_ptr _playlist; AudioPlot* _plot; diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 08029068f..8ce811c28 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -33,6 +33,7 @@ #include "lib/timer.h" #include "lib/audio_content.h" #include "lib/subtitle_content.h" +#include "lib/video_content.h" #include #include #include @@ -194,8 +195,7 @@ Timeline::assign_tracks () if (dynamic_pointer_cast (*i)) { /* Video on tracks 0 and 1 (left and right eye) */ - shared_ptr vc = dynamic_pointer_cast (cv->content ()); - cv->set_track (vc->video_frame_type() == VIDEO_FRAME_TYPE_3D_RIGHT ? 1 : 0); + cv->set_track (cv->content()->video->frame_type() == VIDEO_FRAME_TYPE_3D_RIGHT ? 1 : 0); _tracks = max (_tracks, 2); continue; } else if (dynamic_pointer_cast (*i)) { -- cgit v1.2.3