Skip to content

Deprecate stream format and layout passthroughs - #2488

Merged
WyattBlue merged 1 commit into
masterfrom
patch
Oct 26, 2026
Merged

WyattBlue merged 1 commit into
masterfrom
patch

Conversation

@WyattBlue

Copy link
Copy Markdown
Member

AudioStream.format, AudioStream.layout, and VideoStream.format are now real properties that warn and point to codec_context. They were only reachable through getattr, so stubtest reported the stub's properties as missing at runtime.

add_stream() keyword arguments and Graph.add_buffer()/add_abuffer() stream templates read these from the codec context, so they don't warn.

@WyattBlue
WyattBlue force-pushed the patch branch 2 times, most recently from 30cf8a4 to 52e9811 Compare October 26, 2026 17:59
AudioStream.format, AudioStream.layout, and VideoStream.format are now
real properties that warn and point to cctx. They were only reachable
through __getattr__, so stubtest reported the stub's properties as
missing at runtime.

add_stream() keyword arguments and Graph.add_buffer()/add_abuffer()
stream templates read these from the codec context, so they don't warn.

Rename Stream.codec_context to Stream.cctx, keeping codec_context as an
alias.
@WyattBlue
WyattBlue merged commit 92101a3 into master Oct 26, 2026
10 checks passed
@WyattBlue
WyattBlue deleted the patch branch October 26, 2026 18:11
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