[vlc-commits] v4l2: bump priority to two and one

Rémi Denis-Courmont git at videolan.org
Mon Feb 26 21:39:05 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Feb 26 22:19:44 2018 +0200| [75a1bfa66a02ab359d5efc368bcfcc78e646c81a] | committer: Rémi Denis-Courmont

v4l2: bump priority to two and one

We want the regular V4L2 video demuxer to have a higher priority than
the V4L2 radio demuxer, and then both than the V4L2 bitstream access.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=75a1bfa66a02ab359d5efc368bcfcc78e646c81a
---

 modules/access/v4l2/v4l2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/v4l2/v4l2.c b/modules/access/v4l2/v4l2.c
index dfb00ae477..d98bcf35f9 100644
--- a/modules/access/v4l2/v4l2.c
+++ b/modules/access/v4l2/v4l2.c
@@ -416,7 +416,7 @@ vlc_module_begin ()
     add_obsolete_integer( CFG_PREFIX "samplerate" )
 
     add_shortcut( "v4l", "v4l2" )
-    set_capability( "access_demux", 0 )
+    set_capability( "access_demux", 2 )
     set_callbacks( DemuxOpen, DemuxClose )
 
     add_submodule ()
@@ -429,7 +429,7 @@ vlc_module_begin ()
     add_submodule ()
     add_shortcut ("radio" /*, "fm", "am" */)
     set_description (N_("Video4Linux radio tuner"))
-    set_capability ("access_demux", 0)
+    set_capability ("access_demux", 1)
     set_callbacks (RadioOpen, RadioClose)
 
 vlc_module_end ()



More information about the vlc-commits mailing list