From edb13274693a7021f7b38cc5917eec72c7b86132 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Mon, 23 Feb 2026 14:48:56 -0600 Subject: [PATCH] fix stream seek value in graphics engine --- CHANGELOG.md | 5 +++++ ErsatzTV.Core/FFmpeg/FFmpegLibraryProcessService.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a329693c..90ab0a702 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix some cases of QSV audio/video desync when *not* seeking by using software decode - This only applies to content that *might* be problematic (using a heuristic) - NVIDIA: force software decode of 10-bit h264 content since hardware decode is unsupported by ffmpeg until version 8 +- Graphics engine: fix stream seek value used throughout graphics engine + - This should fix loading EPG data when used with chapters/mid-roll + - This should also fix graphics element visibility when using start_seconds on content with chapters/mid-roll + - This bug was caused by stream seek including the playout item in-point (the chapter start time) + - Stream seek should only be non-zero when first joining a channel (i.e. in the middle of a playout item or chapter) ## [26.2.0] - 2026-02-02 ### Added diff --git a/ErsatzTV.Core/FFmpeg/FFmpegLibraryProcessService.cs b/ErsatzTV.Core/FFmpeg/FFmpegLibraryProcessService.cs index 5c6b31fcb..945a50b4e 100644 --- a/ErsatzTV.Core/FFmpeg/FFmpegLibraryProcessService.cs +++ b/ErsatzTV.Core/FFmpeg/FFmpegLibraryProcessService.cs @@ -549,7 +549,7 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService frameRate, channelStartTime, start, - await playbackSettings.StreamSeek.IfNoneAsync(TimeSpan.Zero), + now > start ? now - start : TimeSpan.Zero, finish - now, originalContentDuration);