It looks like there is a patch at https://trac.videolan.org/vlc/ticket/5455
Also from the looks of https://trac.videolan.org/vlc/ticket/17234 it seems like this was implemented but I don't see any evidence of it in the latest (vlc-3.0.0-20170708-0446-git) that I checked...