winlin

refine code, for cubieboard to build ok.

@@ -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