Browse Source

fix motion graphics loop when seeking

pull/2641/head
Jason Dove 9 months ago
parent
commit
7ea098c390
No known key found for this signature in database
  1. 1
      CHANGELOG.md
  2. 2
      ErsatzTV.Infrastructure/Streaming/Graphics/Motion/MotionElement.cs

1
CHANGELOG.md

@ -71,6 +71,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- This fix applies to all libraries (local and media server) - This fix applies to all libraries (local and media server)
- Fix (3 year old) bug removing tags from local libraries when they are removed from NFO files (all content types) - Fix (3 year old) bug removing tags from local libraries when they are removed from NFO files (all content types)
- New scans will properly remove old tags; NFO files may need to be touched to force updating during a scan - New scans will properly remove old tags; NFO files may need to be touched to force updating during a scan
- Fix bug where looping motion graphics wouldn't be displayed when seeking into second half of content
### Changed ### Changed
- Use smaller batch size for search index updates (100, down from 1000) - Use smaller batch size for search index updates (100, down from 1000)

2
ErsatzTV.Infrastructure/Streaming/Graphics/Motion/MotionElement.cs

@ -63,7 +63,7 @@ public class MotionElement(
ProbeResult probeResult = await ProbeMotionElement(context.FrameSize); ProbeResult probeResult = await ProbeMotionElement(context.FrameSize);
var overlayDuration = motionElement.EndBehavior switch var overlayDuration = motionElement.EndBehavior switch
{ {
MotionEndBehavior.Loop => context.Duration, MotionEndBehavior.Loop => context.Seek + context.Duration,
MotionEndBehavior.Hold => probeResult.Duration + holdDuration, MotionEndBehavior.Hold => probeResult.Duration + holdDuration,
_ => probeResult.Duration _ => probeResult.Duration
}; };

Loading…
Cancel
Save