changes to attach stream codec to input port.