diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-19 23:46:55 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-19 23:46:56 +0200 |
| commit | 0bc6d354b100c44834302c6ac5d0b5099e0f0564 (patch) | |
| tree | 015c905b9a8a045ff417b27d833a472c9def80d9 /src | |
| parent | fd198a9cb1f033773102f54603bd06b98f3c7fb1 (diff) | |
Don't make _stream_states for unmapped audio, otherwise we wait for content
which will never arrive.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/player.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 47067af5a..75f6b7919 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -369,7 +369,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); } |
