Skip to content

Make avdevice library optional again#1246

Open
dimula73 wants to merge 1 commit into
mltframework:masterfrom
dimula73:kazakov/make-avdevice-optional
Open

Make avdevice library optional again#1246
dimula73 wants to merge 1 commit into
mltframework:masterfrom
dimula73:kazakov/make-avdevice-optional

Conversation

@dimula73
Copy link
Copy Markdown
Contributor

It is not used by avformat when performing playback via SDL2, the only thing it does is initializing avdevice and not using it later.

This is a follow-up of the previous rejected MR: #1239

Copy link
Copy Markdown
Member

@ddennedy ddennedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

working for me with avdevice included 👍

@ddennedy ddennedy added this to the v7.40.0 milestone May 12, 2026
@jlskuz
Copy link
Copy Markdown
Contributor

jlskuz commented May 18, 2026

Making the dependency optional is in principle fine for me, but I would prefer to have it explicitly managed with a WITH_AVDEVICE switch. I know we still have this implicit behavior in other places (like for ladaspa.h) still, but my goal would be to have them all controlled explicitly in the future. See #1115 for more context.

Comment thread src/modules/avformat/CMakeLists.txt Outdated
Comment thread src/modules/avformat/factory.c Outdated
Comment thread src/modules/avformat/factory.c Outdated
It is not used by avformat when performing
playback via SDL2, the only thing it does is
initializing avdevice and not using it later.
@dimula73 dimula73 force-pushed the kazakov/make-avdevice-optional branch from b41eb38 to 516b077 Compare May 21, 2026 11:22
@dimula73
Copy link
Copy Markdown
Contributor Author

Hi, @jlskuz!

I have applied your USE_AVDEVICE suggestions. Does this patch need any other changes before it could be merged?

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.

3 participants