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