refine hls ingester, quit when error.
This commit is contained in:
parent
aabe84046c
commit
7b157b0678
|
|
@ -1393,7 +1393,7 @@ int proxy_hls2rtmp(string hls, string rtmp)
|
||||||
|
|
||||||
SrsIngestSrsContext context(&hls_uri, &rtmp_uri);
|
SrsIngestSrsContext context(&hls_uri, &rtmp_uri);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if ((ret = context.proxy()) == ERROR_SUCCESS) {
|
if ((ret = context.proxy()) != ERROR_SUCCESS) {
|
||||||
srs_error("proxy hls to rtmp failed. ret=%d", ret);
|
srs_error("proxy hls to rtmp failed. ret=%d", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user