[vlc-commits] [Git][videolan/vlc][master] core: fix `--mix-mode` default warning
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Thu Jul 1 08:40:53 UTC 2021
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
1cfef343 by Lyndon Brown at 2021-07-01T08:13:43+00:00
core: fix `--mix-mode` default warning
fixes the following warning that occurs after the introduction of type
strictness to the plugin descriptor macros in MR 319 ([1]):
WARNING : ../include/vlc_plugin.h:397: 18: initialization of 'int64_t' {aka 'long int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
397 | int64_t _v = (v); \
| ^
../include/vlc_plugin.h:477:5: note: in expansion of macro 'add_int_inner'
477 | add_int_inner(CONFIG_ITEM_INTEGER, name, text, longtext, value)
| ^~~~~~~~~~~~~
libvlc-module.c:1578:5: note: in expansion of macro 'add_integer'
1578 | add_integer( "mix-mode", NULL, MIX_MODE_TEXT, MIX_MODE_TEXT )
| ^~~~~~~~~~~
[1]: https://code.videolan.org/videolan/vlc/-/merge_requests/319
- - - - -
1 changed file:
- src/libvlc-module.c
Changes:
=====================================
src/libvlc-module.c
=====================================
@@ -1575,7 +1575,7 @@ vlc_module_begin ()
change_integer_list( pi_force_dolby_values, ppsz_force_dolby_descriptions )
add_integer( "stereo-mode", 0, STEREO_MODE_TEXT, NULL )
change_integer_list( pi_stereo_mode_values, ppsz_stereo_mode_texts )
- add_integer( "mix-mode", NULL, MIX_MODE_TEXT, MIX_MODE_TEXT )
+ add_integer( "mix-mode", AOUT_MIX_MODE_UNSET, MIX_MODE_TEXT, MIX_MODE_TEXT )
change_integer_list( pi_mix_mode_values, ppsz_mix_mode_texts )
add_integer( "audio-desync", 0, DESYNC_TEXT,
DESYNC_LONGTEXT )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1cfef3437e709230f5d2d1434a2751da6522a6b9
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1cfef3437e709230f5d2d1434a2751da6522a6b9
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list