Browse Source

fix deco default filler hardware acceleration (#1916)

* fix hw accel for deco default filler

* use custom filler kind for deco default filler
pull/1917/head
Jason Dove 10 months ago committed by GitHub
parent
commit
e7817b1460
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 2
      ErsatzTV.Application/Channels/Commands/RefreshChannelDataHandler.cs
  3. 4
      ErsatzTV.Core/Domain/Filler/FillerKind.cs
  4. 5
      ErsatzTV.Core/Scheduling/BlockScheduling/BlockPlayoutFillerBuilder.cs

1
CHANGELOG.md

@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix double loading of trash UI elements, and fix reloading of all UI elements after emptying trash - Fix double loading of trash UI elements, and fix reloading of all UI elements after emptying trash
- Fix destroying channel preview player when preview dialog is closed - Fix destroying channel preview player when preview dialog is closed
- This bug made it difficult to "stop" a channel after previewing it - This bug made it difficult to "stop" a channel after previewing it
- Fix bug where deco default filler would never use hardware acceleration
## [0.8.8-beta] - 2024-09-19 ## [0.8.8-beta] - 2024-09-19
### Added ### Added

2
ErsatzTV.Application/Channels/Commands/RefreshChannelDataHandler.cs

@ -286,7 +286,7 @@ public class RefreshChannelDataHandler : IRequestHandler<RefreshChannelData>
int finishIndex = j; int finishIndex = j;
while (finishIndex + 1 < sorted.Count && (sorted[finishIndex + 1].GuideGroup == startItem.GuideGroup while (finishIndex + 1 < sorted.Count && (sorted[finishIndex + 1].GuideGroup == startItem.GuideGroup
|| sorted[finishIndex + 1].FillerKind is FillerKind.GuideMode || sorted[finishIndex + 1].FillerKind is FillerKind.GuideMode
or FillerKind.Tail or FillerKind.Fallback)) or FillerKind.Tail or FillerKind.Fallback or FillerKind.DecoDefault))
{ {
finishIndex++; finishIndex++;
} }

4
ErsatzTV.Core/Domain/Filler/FillerKind.cs

@ -9,5 +9,7 @@ public enum FillerKind
Tail = 4, Tail = 4,
Fallback = 5, Fallback = 5,
GuideMode = 99 GuideMode = 99,
DecoDefault = 100
} }

5
ErsatzTV.Core/Scheduling/BlockScheduling/BlockPlayoutFillerBuilder.cs

@ -107,7 +107,10 @@ public class BlockPlayoutFillerBuilder(
Finish = current.UtcDateTime + itemDuration, Finish = current.UtcDateTime + itemDuration,
InPoint = TimeSpan.Zero, InPoint = TimeSpan.Zero,
OutPoint = itemDuration, OutPoint = itemDuration,
FillerKind = FillerKind.Fallback,
// FillerKind.Fallback will loop and avoid hw accel, so don't use that
FillerKind = FillerKind.DecoDefault,
CollectionKey = JsonConvert.SerializeObject(collectionKey, JsonSettings), CollectionKey = JsonConvert.SerializeObject(collectionKey, JsonSettings),
GuideStart = one.GuideStart, GuideStart = one.GuideStart,
GuideFinish = one.GuideFinish, GuideFinish = one.GuideFinish,

Loading…
Cancel
Save