winlin

refine hls ingester, quit when error.

@@ -1393,7 +1393,7 @@ int proxy_hls2rtmp(string hls, string rtmp) @@ -1393,7 +1393,7 @@ int proxy_hls2rtmp(string hls, string rtmp)
1393 1393
1394 SrsIngestSrsContext context(&hls_uri, &rtmp_uri); 1394 SrsIngestSrsContext context(&hls_uri, &rtmp_uri);
1395 for (;;) { 1395 for (;;) {
1396 - if ((ret = context.proxy()) == ERROR_SUCCESS) { 1396 + if ((ret = context.proxy()) != ERROR_SUCCESS) {
1397 srs_error("proxy hls to rtmp failed. ret=%d", ret); 1397 srs_error("proxy hls to rtmp failed. ret=%d", ret);
1398 return ret; 1398 return ret;
1399 } 1399 }