Longer optical or DVI cable?

Having the choice between the two, what's better off; longer optical out to the surround processor and the DVD right next to a projector or DVD player next to the processor with a 30 foot cable to the projector.
Will any of these runs cause some kind of time delay and sync problem to the image/sound?
Go with the longer cable from the DVD to the processor.

Here's a link for long Toslinks at great prices: