From ce95400c73db6ece7ef34e0171e7e04b72f9ca03 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Jun 2014 13:22:42 +0100 Subject: Fix incorrect behaviour of Playlist::move_later. --- src/lib/playlist.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc index e847e623b..df3e63303 100644 --- a/src/lib/playlist.cc +++ b/src/lib/playlist.cc @@ -362,6 +362,7 @@ Playlist::move_earlier (shared_ptr c) if (previous == _content.end ()) { return; } + Time const p = (*previous)->position (); (*previous)->set_position (p + c->length_after_trim ()); @@ -390,7 +391,7 @@ Playlist::move_later (shared_ptr c) Time const p = (*next)->position (); (*next)->set_position (c->position ()); - c->set_position (p + c->length_after_trim ()); + c->set_position (c->position() + c->length_after_trim ()); sort (_content.begin(), _content.end(), ContentSorter ()); } -- cgit v1.2.3 From 70cda1727416878992fd7b728d7a77f609330d8d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Jun 2014 13:23:09 +0100 Subject: Fix the up/down buttons in the content list. Reported-by: Daniel Chauvet --- ChangeLog | 4 ++++ src/wx/film_editor.cc | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/ChangeLog b/ChangeLog index 6be780b4b..80ab67b6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-06-27 Carl Hetherington + + * Fix up/down buttons in content list. + 2014-06-26 Carl Hetherington * Version 1.70.0 released. diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index 9c980b625..de215a0d2 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -532,6 +532,8 @@ FilmEditor::film_content_changed (int property) setup_dcp_name (); } else if (property == ContentProperty::PATH) { setup_content (); + } else if (property == ContentProperty::POSITION) { + setup_content (); } } @@ -753,6 +755,8 @@ FilmEditor::setup_content () _content->DeleteAllItems (); ContentList content = _film->content (); + sort (content.begin(), content.end(), ContentSorter ()); + for (ContentList::iterator i = content.begin(); i != content.end(); ++i) { int const t = _content->GetItemCount (); bool const valid = (*i)->paths_valid (); @@ -761,7 +765,7 @@ FilmEditor::setup_content () if (!valid) { s = _("MISSING: ") + s; } - + _content->InsertItem (t, std_to_wx (s)); if ((*i)->summary() == selected_summary) { -- cgit v1.2.3 From 615511a21c22066592efaf6297773f077fc83508 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Jun 2014 15:37:44 +0100 Subject: Support building with wxWidgets 3.0.x. --- src/wx/wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/wx/wscript b/src/wx/wscript index de256bf60..f26a91cbc 100644 --- a/src/wx/wscript +++ b/src/wx/wscript @@ -71,8 +71,8 @@ def configure(conf): conf.in_msg = 1 wx_version = conf.check_cfg(package='', path=conf.options.wx_config, args='--version').strip() conf.im_msg = 0 - if wx_version != '3.0.0': - conf.fatal('wxwidgets version 3.0.0 is required; %s found' % wx_version) + if not wx_version.startswith('3.0.'): + conf.fatal('wxwidgets version 3.0.x is required; %s found' % wx_version) def build(bld): if bld.env.BUILD_STATIC: -- cgit v1.2.3 From fd5567a6bbecf6f7e213e25284b3baf01f7a96e2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 28 Jun 2014 00:39:02 +0100 Subject: Fix crash on analysing audio (and possibly DCP creation) with resampled content. Reported-by: Matthias Damm --- ChangeLog | 5 +++++ src/lib/player.cc | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/ChangeLog b/ChangeLog index a417575e5..a8b91ec63 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-06-28 Carl Hetherington + + * Fix crash on analysing audio (and possibly DCP creation) with + resampled content. + 2014-06-27 Carl Hetherington * Version 1.71.0 released. diff --git a/src/lib/player.cc b/src/lib/player.cc index 7bf78c905..2d2977606 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -150,7 +150,12 @@ Player::pass () if (re) { shared_ptr b = re->flush (); if (b->frames ()) { - process_audio (earliest, b, ac->audio_length (), true); + process_audio ( + earliest, + b, + ac->audio_length() * ac->output_audio_frame_rate() / ac->content_audio_frame_rate(), + true + ); } } } -- cgit v1.2.3