diff --git a/QmlVlcPlaylist.cpp b/QmlVlcPlaylist.cpp index 5f151e9..c4c9a3e 100644 --- a/QmlVlcPlaylist.cpp +++ b/QmlVlcPlaylist.cpp @@ -69,7 +69,7 @@ QmlVlcPlaylist::Mode QmlVlcPlaylist::get_mode() void QmlVlcPlaylist::set_mode( QmlVlcPlaylist::Mode mode ) { - if( mode > vlc::mode_last ) + if( mode > Mode::Last || mode < Mode::Single ) return; return player().set_playback_mode( (vlc::playback_mode_e) mode );