[vlc-commits] [Git][videolan/vlc][master] demux: adaptive: add an option to disable the module

Thomas Guillem (@tguillem) gitlab at videolan.org
Tue Sep 29 07:02:53 UTC 2026



Thomas Guillem pushed to branch master at VideoLAN / VLC


Commits:
005e69e6 by Arthur Vasseur at 2026-09-29T06:50:15+00:00
demux: adaptive: add an option to disable the module

The adaptive streams demuxer (DASH/HLS/Smooth Streaming) is a large C++
module that is always built. Add an option to disable it, enabled by
default so the current behaviour is unchanged, in both the Meson and
autotools build systems, so builds that never play adaptive streams can
skip it and cut build time.

- - - - -


4 changed files:

- configure.ac
- meson_options.txt
- modules/demux/Makefile.am
- modules/demux/meson.build


Changes:

=====================================
configure.ac
=====================================
@@ -2250,6 +2250,14 @@ dnl
 
 EXTEND_HELP_STRING([Input plugins:])
 
+dnl
+dnl  Adaptive streaming demux (DASH/HLS/Smooth)
+dnl
+AC_ARG_ENABLE([adaptive],
+  AS_HELP_STRING([--disable-adaptive],
+    [disable the adaptive streaming demux (DASH/HLS/Smooth) (default enabled)]))
+AM_CONDITIONAL([ENABLE_ADAPTIVE], [test "${enable_adaptive}" != "no"])
+
 dnl
 dnl  libarchive access module
 dnl


=====================================
meson_options.txt
=====================================
@@ -133,6 +133,11 @@ option('css_engine',
     value : 'auto',
     description : 'CSS selector engine for WebVTT')
 
+option('adaptive',
+    type : 'feature',
+    value : 'auto',
+    description : 'Adaptive streaming (DASH/HLS/Smooth) demux module')
+
 # Dependency options
 option('chromecast',
     type : 'feature',


=====================================
modules/demux/Makefile.am
=====================================
@@ -514,6 +514,8 @@ if HAVE_GCRYPT
 libvlc_adaptive_la_CXXFLAGS += $(GCRYPT_CFLAGS)
 libvlc_adaptive_la_LIBADD += $(GCRYPT_LIBS)
 endif
+
+if ENABLE_ADAPTIVE
 noinst_LTLIBRARIES += libvlc_adaptive.la
 
 libadaptive_plugin_la_SOURCES = demux/adaptive/adaptive.cpp
@@ -539,6 +541,7 @@ adaptive_test_SOURCES = \
 adaptive_test_LDADD = libvlc_adaptive.la
 check_PROGRAMS += adaptive_test
 TESTS += adaptive_test
+endif
 
 libytdl_plugin_la_SOURCES = demux/ytdl.c
 libytdl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DEXEEXT=\"$(EXEEXT)\"


=====================================
modules/demux/meson.build
=====================================
@@ -471,6 +471,7 @@ endif
 
 vlc_modules += {
     'name' : 'adaptive',
+    'enabled' : get_option('adaptive').allowed(),
     'sources' : files(
         # DASH specific sources
         'dash/mpd/AdaptationSet.cpp',



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/005e69e67a8730f128e44bde68437fbb048cf45f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/005e69e67a8730f128e44bde68437fbb048cf45f
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list