Browse Source

fix block playout random seeds (#1703)

pull/1704/head
Jason Dove 1 year ago committed by GitHub
parent
commit
33a8b29a27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      CHANGELOG.md
  2. 2
      ErsatzTV.Core/Scheduling/BlockScheduling/BlockPlayoutEnumerator.cs

3
CHANGELOG.md

@ -80,6 +80,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -80,6 +80,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix block playout playback when no deco is configured
- Fix `HLS Segmenter V2` to delete old segments (use less disk space while channel is active)
- Fix template and deco template editors to prevent items that go beyond midnight
- Fix block playout random seeds
- Different blocks within a single playout will now correctly use different random seeds (shuffles)
- Erasing block playout history will also generate new random seeds for the playout
### Changed
- Use ffmpeg 7 in all docker images

2
ErsatzTV.Core/Scheduling/BlockScheduling/BlockPlayoutEnumerator.cs

@ -92,7 +92,7 @@ public static class BlockPlayoutEnumerator @@ -92,7 +92,7 @@ public static class BlockPlayoutEnumerator
.OrderByDescending(h => h.When)
.HeadOrNone();
var state = new CollectionEnumeratorState { Seed = playout.Id, Index = 0 };
var state = new CollectionEnumeratorState { Seed = playout.Seed + blockItem.BlockId, Index = 0 };
foreach (PlayoutHistory h in maybeHistory)
{
state.Index = h.Index + 1;

Loading…
Cancel
Save