mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
closedcaption: avoid implicit convertion of enums
When compiling with clang-6 this error pops out: raw_decoder.c:1011:62: error: implicit conversion from enumeration type 'const vbi_modulation' to different enumeration type 'vbi3_modulation' [-Werror,-Wenum-conversion] This is because function vbi3_bit_slicer_set_params() sets vbi3_modulation as enum type parameter, nonetheless vbi_modulation enum is passed. Both enums looks semantically equal, thus the fix is a simple cast. https://bugzilla.gnome.org/show_bug.cgi?id=796957
This commit is contained in:
parent
c54e4b6305
commit
808b404e88
1 changed files with 2 additions and 1 deletions
|
@ -1008,7 +1008,8 @@ vbi3_raw_decoder_add_services (vbi3_raw_decoder * rd,
|
|||
par->cri_rate,
|
||||
cri_end,
|
||||
(par->cri_frc & ((1U << par->frc_bits) - 1)),
|
||||
par->frc_bits, par->payload, par->bit_rate, par->modulation)) {
|
||||
par->frc_bits, par->payload, par->bit_rate,
|
||||
(vbi3_modulation) par->modulation)) {
|
||||
assert (!"bit_slicer_set_params");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue