remove duplicated code
remove duplicated code

icevl/srs,tribbiani/srs,zhiliaoniu/simple-rtmp-server,tribbiani/srs,icevl/srs,tribbiani/srs,antonioparisi/srs,ossrs/srs,winlinvip/srs,lewdon/srs,ossrs/srs,lewdon/srs,avplus/srs,icevl/srs,avplus/srs,zhiliaoniu/simple-rtmp-server,myself659/simple-rtmp-server,winlinvip/srs,myself659/simple-rtmp-server,zhiliaoniu/simple-rtmp-server,winlinvip/srs,icevl/srs,keyanmca/srs-May-2014,tribbiani/srs,keyanmca/srs-May-2014,ossrs/srs,antonioparisi/srs,antonioparisi/srs,winlinvip/srs,antonioparisi/srs,keyanmca/srs-May-2014,keyanmca/srs-May-2014,myself659/simple-rtmp-server,antonioparisi/srs,winlinvip/srs,zhiliaoniu/simple-rtmp-server,avplus/srs,keyanmca/srs-May-2014,lewdon/srs,lewdon/srs,avplus/srs,ossrs/srs,antonioparisi/srs,keyanmca/srs-May-2014,ossrs/srs,lewdon/srs,avplus/srs,lewdon/srs,myself659/simple-rtmp-server,myself659/simple-rtmp-server,winlinvip/simple-rtmp-server,zhiliaoniu/simple-rtmp-server,icevl/srs,avplus/srs,tribbiani/srs,tribbiani/srs,myself659/simple-rtmp-server,ossrs/srs,tribbiani/srs,avplus/srs,winlinvip/srs,icevl/srs,zhiliaoniu/simple-rtmp-server