diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-29 21:12:17 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-29 21:12:17 +0200 |
| commit | 07aa4852acfd908c4e3a92f7bed2c7328cfcf123 (patch) | |
| tree | be9642b5202a0342be268f6e4b9f93c684bab347 /src/lib/player.cc | |
| parent | bfac1d7cfec57b225a0257d2fa0172efe7fbd08b (diff) | |
| parent | 78dc1250feed93df7f519c559949d4fac4cc5b1a (diff) | |
Merge remote-tracking branch 'origin/main' into v2.17.x
Diffstat (limited to 'src/lib/player.cc')
| -rw-r--r-- | src/lib/player.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 98f0b027a..ea236db39 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -249,7 +249,7 @@ have_video (shared_ptr<const Content> content) bool have_audio (shared_ptr<const Content> content) { - return static_cast<bool>(content->audio) && !content->audio->mapping().mapped_output_channels().empty() && content->can_be_played(); + return content->has_mapped_audio() && content->can_be_played(); } @@ -367,7 +367,7 @@ Player::setup_pieces () _stream_states.clear (); for (auto i: _pieces) { - if (i->content->audio) { + if (i->content->has_mapped_audio()) { for (auto j: i->content->audio->streams()) { _stream_states[j] = StreamState(i); } |
