QmlVlc
QmlVlc copied to clipboard
skip warning
as mode_last == mode_loop, Mode::Loop == vlc::mode_last this way the warning is skipped
it was maid so just to avoid possible problems if order of items in playback_mode_e
will be changed by some reason. So it's better fix this warning by reinterpret_cast<playback_mode_e>(mode)
btw, it worth add there check for values below 0 too since enums by default are signed.