stream->info can be NULL if it's the cache wrapper. To be fair, stream->info is considered private API anyway. So don't access it, but check the URL instead.
It's useless, but can be used for fancy --lavfi-complex nonsense.