Using Two ASFWriter Filters in a graph.One is making wmv file, Anather is for live streaming.
Carrying out streaming, When changing a file name, Recording Start is overd
When you restart the graph, you inevitably miss a fragment of data due to initialization overhead. And, it is impossible to switch files without stopping the graph. The solution is to use multiple graphs and keep capturing while the part with file writing is being reinitialized.
See DirectShow Bridges for a typical solution addressing this problem.