Fixed RTMP FLV conversion handling and added handshake fail error message.

This commit is contained in:
Thulinma 2013-11-28 10:28:44 +01:00
parent cde42ce36e
commit 655c8559a6

View file

@ -538,9 +538,7 @@ namespace Connector_RTMP {
fprintf(stderr, "Handshake succcess!\n");
#endif
}else{
#if DEBUG >= 5
fprintf(stderr, "Handshake fail!\n");
#endif
fprintf(stderr, "RTMP: Handshake fail!\n");
return 0;
}
@ -651,7 +649,7 @@ namespace Connector_RTMP {
streamInited = true;
}
//sent a tag
tag.DTSCLoader(Strm);
if (tag.DTSCLoader(Strm)){
Socket.SendNow(RTMPStream::SendMedia(tag));
#if DEBUG >= 8
fprintf(stderr, "Sent tag to %i: [%u] %s\n", Socket.getSocket(), tag.tagTime(), tag.tagType().c_str());
@ -660,6 +658,7 @@ namespace Connector_RTMP {
}
}
}
}
Socket.close();
ss.SendNow(Socket.getStats("RTMP").c_str());
ss.close();