[vlc-devel] Video4Linux spat

Sergio M. Ammirata, Ph.D. sergio at ammirata.net
Sat Apr 7 14:36:34 CEST 2012

Here is my proposed solution to this issue:

Add a new configure option called v4l2-use-kernel-3.x-api

In the code, use #ifdef blocks and enable all the new features only when
this configure flag is set. Make the code default to the old API by

If enums need additional members and a simple #ifdef does not work
properly, then create the complete enum inside each #ifdef/#else section
respectively even if there is a bit of code duplication.


On 4/7/12 8:08 AM, "Francois Cartegnie" <fcvlcdev at free.fr> wrote:

>Le 06/04/2012 22:52, Rémi Denis-Courmont a écrit :
>> Distributions do not recompile VLC every time they update the kernel
>> (headers), do they?
>No, but creating a dependency would invalidate the new v4l2 module with
>an old kernel.
>Something like Requires kernel >= x, BuildRequires kernel-headers >= x
>in the dependencies.
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:

More information about the vlc-devel mailing list