Make avdevice library optional again#1246
Conversation
ddennedy
left a comment
There was a problem hiding this comment.
working for me with avdevice included 👍
|
Making the dependency optional is in principle fine for me, but I would prefer to have it explicitly managed with a |
It is not used by avformat when performing playback via SDL2, the only thing it does is initializing avdevice and not using it later.
b41eb38 to
516b077
Compare
|
Hi, @jlskuz! I have applied your |
|
@jlskuz prefers that options be explicit instead of discovered by what is available. For example, for the I think the same is desired for avformat: Beyond that, I tested this branch again, and what you have still works for me. |
|
Hi, @ddennedy! I have a question about your proposed patch. When |
This option is ON by default and will disable linking to avdevice when set to OFF. If the option is ON, but avdevice is not found, then the build will fail as per mltframework#1115
|
Okay, I've implemented an option. The build will fail if the option is ON, but avdevice is missing. |
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