HTTP redirects get cached even where they should not
When a HTTP Redirect is received, VLC updates the playlist accordingly - It caches the redirect. Most of the time this is useful because it speeds stream-playing up. But it is a problem when the playlist item calls a script that every-time returns a different url (or the old url is invalid by now).
It is even stated in RFC 2616, 0.3.8 307 Temporary Redirect:
The requested resource resides temporarily under a different URI. Since the redirection MAY be altered on occasion, the client SHOULD continue to use the Request-URI for future requests.
Altering the playlist ONLY on redirects other than 307 would solve this issue.
I have created a small patch, which is available at http://paste.videolan.org/2834
But beware: I'm not familiar with the VLC source. I only looked at the file for a moment and hacked that up. I didn't even try to compile it.