Fix Empty/Player behaviour when using a playlist that is not the same as the Film's.
authorCarl Hetherington <cth@carlh.net>
Tue, 14 Apr 2020 21:11:08 +0000 (23:11 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 14 Apr 2020 21:11:08 +0000 (23:11 +0200)
commit67775a6d0d28131b98ae284c7be23d79ccdab685
tree6ba20512690d66685600a0fd7d6850ad03ba784b
parent4ab86ef0295bcd6bb9297996a06006f371d22bae
Fix Empty/Player behaviour when using a playlist that is not the same as the Film's.

Previously Empty would use the length of the film for its end point.
Now it takes a Playlist (rather than a list of Pieces) and uses the length
of that playlist for its end point.

This fixes #1543, in which single-content audio analysis jobs would run for the whole
length of the film, rather than the length of the content, producing
strange graphs and incorrect progress reports.
src/lib/empty.cc
src/lib/empty.h
src/lib/player.cc
src/wx/audio_dialog.h
test/empty_test.cc