正在显示
1 个修改的文件
包含
4 行增加
和
5 行删除
@@ -23,6 +23,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -23,6 +23,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
23 | 23 | ||
24 | #include <srs_lib_bandwidth.hpp> | 24 | #include <srs_lib_bandwidth.hpp> |
25 | 25 | ||
26 | +#include <unistd.h> | ||
27 | + | ||
26 | #include <sstream> | 28 | #include <sstream> |
27 | using namespace std; | 29 | using namespace std; |
28 | 30 | ||
@@ -373,11 +375,8 @@ int SrsBandwidthClient::final(SrsBandwidthPacket** ppkt) | @@ -373,11 +375,8 @@ int SrsBandwidthClient::final(SrsBandwidthPacket** ppkt) | ||
373 | { | 375 | { |
374 | int ret = ERROR_SUCCESS; | 376 | int ret = ERROR_SUCCESS; |
375 | 377 | ||
376 | - if (true) { | ||
377 | - SrsBandwidthPacket* pkt = NULL; | ||
378 | - if ((ret = _srs_expect_bandwidth_packet2(_rtmp, _bandwidth_is_finish, ppkt)) != ERROR_SUCCESS) { | ||
379 | - return ret; | ||
380 | - } | 378 | + if ((ret = _srs_expect_bandwidth_packet2(_rtmp, _bandwidth_is_finish, ppkt)) != ERROR_SUCCESS) { |
379 | + return ret; | ||
381 | } | 380 | } |
382 | srs_info("BW check recv finish/report request."); | 381 | srs_info("BW check recv finish/report request."); |
383 | 382 |
-
请 注册 或 登录 后发表评论