Epoll removal tested and found working! :D

This commit is contained in:
Thulinma 2011-09-25 22:44:55 +02:00
parent 1640dbb933
commit 40bcb2ba72
4 changed files with 41 additions and 8 deletions

View file

@ -121,7 +121,10 @@ int Connector_RTMP::Connector_RTMP(Socket::Connection conn){
break;
}
//not gotten init yet? cancel this tag
if (viddata.len == 0 || auddata.len == 0){break;}
if (tag.needsInitData()){
if ((tag.data[0] == 0x09) && (viddata.len == 0)){break;}
if ((tag.data[0] == 0x08) && (auddata.len == 0)){break;}
}
//send tag normally
Socket.write(RTMPStream::SendMedia(tag));
#if DEBUG >= 8