Skip to content

device: enable fast channel switch - #282

Merged
rellla merged 1 commit into
drm-atomic-glesfrom
fast-channel-switch
Aug 25, 2026
Merged

device: enable fast channel switch#282
rellla merged 1 commit into
drm-atomic-glesfrom
fast-channel-switch

Conversation

@rellla

@rellla rellla commented Aug 24, 2026

Copy link
Copy Markdown
Owner

If enabled, the first frame which was released from the decoder is displayed without respect to any AV-Sync. This is frame is displayed as a stillpicture until AV-Sync is possible.
This feature is configurable in the setup menu.
A next step could be to start the audio playback as soon as audio arrives.

@rellla
rellla force-pushed the fast-channel-switch branch from 0e63274 to a32c4e1 Compare August 24, 2026 11:17
@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown

Unit Test Results

  1 files  ±0    1 suites  ±0   0s ⏱️ ±0s
112 tests ±0  112 ✅ ±0  0 💤 ±0  0 ❌ ±0 
208 runs  ±0  208 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 778d81e. ± Comparison against base commit b9464a1.

♻️ This comment has been updated with latest results.

@rellla
rellla force-pushed the fast-channel-switch branch 5 times, most recently from ea67f5e to 9f6ca76 Compare August 25, 2026 07:16
Up to now, playback (both, audio and video) started at the moment, when they are in sync
and all buffers are filled enough.

This commit introduces two options:

1) video: Immediately present the very first video frame as a stillpicture
as soon as the decoder releases it. Start audio and video playback together,
as soon as audio and video are in sync. This version drops all audio data
which is older than the video PTS, which is waiting for audio to come up.

2) video + audio: Same as 1), but also start audio playback as soon as the
audio buffer is filled enough. Video starts at the time, when then audio PTS
reaches the "parked" video PTS. This version is a bit slower with the sync than
"video", because we play all audio data and don't drop it.
@rellla
rellla force-pushed the fast-channel-switch branch from 9f6ca76 to 778d81e Compare August 25, 2026 07:17
@rellla
rellla merged commit daba64b into drm-atomic-gles Aug 25, 2026
3 checks passed
@rellla
rellla deleted the fast-channel-switch branch August 25, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant