Fixed RTMP FLV conversion handling and added handshake fail error message.
This commit is contained in:
parent
cde42ce36e
commit
655c8559a6
1 changed files with 7 additions and 8 deletions
|
@ -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,11 +649,12 @@ namespace Connector_RTMP {
|
|||
streamInited = true;
|
||||
}
|
||||
//sent a tag
|
||||
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());
|
||||
#endif
|
||||
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());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue