Skip to content

Enable sending EOF to Graphs - #887

Merged
jlaine merged 1 commit into
PyAV-Org:mainfrom
FirefoxMetzger:allow-graph-eof
Feb 25, 2022
Merged

jlaine merged 1 commit into
PyAV-Org:mainfrom
FirefoxMetzger:allow-graph-eof

Conversation

@FirefoxMetzger

Copy link
Copy Markdown
Contributor

Closes: #886

This PR adds the ability to send EOF by pushing None on a video buffer as proposed in #886

@jlaine I don't know if you have a preferred code style for the repo, so I didn't apply anything. Let me know if this needs more additions from your side or what is missing to make this complete :)

Comment thread av/filter/graph.pyx Resolved
@jlaine

jlaine commented Feb 25, 2022

Copy link
Copy Markdown
Member

I've force-pushed to your branch with the suggested change along with a linter fix

@jlaine

jlaine commented Feb 25, 2022 •

Copy link
Copy Markdown
Member

@fvollmer I have a feeling this PR has some implications on your resampler changes (which I have merged), shouldn't we make use of it to flush out the resampler?

To be more specific, here we explicitly skip None:

# We don't have any input, so don't bother even setting up.
if not frame:
return []

@FirefoxMetzger

Copy link
Copy Markdown
Contributor Author

I've force-pushed to your branch with the suggested change along with a linter fix

Thanks for the heads up. I'm also happy with the changes you made, so from my side there isn't anything more to add.

@jlaine
jlaine merged commit 01b89d9 into PyAV-Org:main Feb 25, 2022
@jlaine

jlaine commented Feb 25, 2022

Copy link
Copy Markdown
Member

And it's merged, thanks a lot!

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.

How do I send EOF to a av.filter.Graph?

2 participants