lavf/segment: move list filename printing logic from segment_end() to segment_start()