Edited rtmp_accept: state as map