Browse Source

fix building playouts with certain playlist changes (#1935)

* fix building playouts with certain playlist changes

* update changelog
pull/1937/head
Jason Dove 2 years ago committed by GitHub
parent
commit
f75bb25a1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 6
      ErsatzTV.Core/Scheduling/PlaylistEnumerator.cs

1
CHANGELOG.md

@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix `Scaling Behavior` `Crop` when content is smaller than FFmpeg Profile resolution
- Now, content will properly scale beyond the desired resolution before cropping
- Fix displaying playout item durations that are greater than 24 hours
- Fix building playouts when playlist has been changed to have fewer items
## [0.8.8-beta] - 2024-09-19
### Added

6
ErsatzTV.Core/Scheduling/PlaylistEnumerator.cs

@ -195,6 +195,12 @@ public class PlaylistEnumerator : IMediaCollectionEnumerator @@ -195,6 +195,12 @@ public class PlaylistEnumerator : IMediaCollectionEnumerator
while (result.State.Index < state.Index)
{
result.MoveNext();
// previous state is no longer valid; playlist now has fewer items
if (result.State.Index == 0)
{
break;
}
}
return result;

Loading…
Cancel
Save