Skip to content

Commit

Permalink
lib: assert that LibVLC and VLC enums match
Browse files Browse the repository at this point in the history
  • Loading branch information
tguillem authored and jbkempf committed Dec 10, 2022
1 parent 7363091 commit 03e671c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,14 @@ libvlc_audio_output_stereomode_t libvlc_audio_get_stereomode( libvlc_media_playe
*****************************************************************************/
int libvlc_audio_set_stereomode( libvlc_media_player_t *mp, libvlc_audio_output_stereomode_t mode )
{
static_assert(libvlc_AudioStereoMode_Unset == AOUT_VAR_CHAN_UNSET &&
libvlc_AudioStereoMode_Stereo == AOUT_VAR_CHAN_STEREO &&
libvlc_AudioStereoMode_RStereo == AOUT_VAR_CHAN_RSTEREO &&
libvlc_AudioStereoMode_Left == AOUT_VAR_CHAN_LEFT &&
libvlc_AudioStereoMode_Right == AOUT_VAR_CHAN_RIGHT &&
libvlc_AudioStereoMode_Dolbys == AOUT_VAR_CHAN_DOLBYS,
"Mismatch with stereo-mode LibVLC/VLC enums");

audio_output_t *p_aout = GetAOut( mp );
int ret = 0;

Expand Down

0 comments on commit 03e671c

Please sign in to comment.