libvlc: use flag instead of cancellation