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");
|
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,7 +649,7 @@ 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());
|
||||||
|
@ -660,6 +658,7 @@ namespace Connector_RTMP {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Socket.close();
|
Socket.close();
|
||||||
ss.SendNow(Socket.getStats("RTMP").c_str());
|
ss.SendNow(Socket.getStats("RTMP").c_str());
|
||||||
ss.close();
|
ss.close();
|
||||||
|
|
Loading…
Add table
Reference in a new issue