mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-10 01:29:33 +02:00
moved NetStream.Unpublish.Success to a better place
This commit is contained in:
parent
c11b916501
commit
a3cffbb6c2
|
@ -592,6 +592,11 @@ ngx_rtmp_live_close_stream(ngx_rtmp_session_t *s, ngx_rtmp_close_stream_t *v)
|
||||||
ngx_rtmp_live_stop(s);
|
ngx_rtmp_live_stop(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ctx->publishing) {
|
||||||
|
ngx_rtmp_send_status(s, "NetStream.Unpublish.Success",
|
||||||
|
"status", "Stop publishing");
|
||||||
|
}
|
||||||
|
|
||||||
if (ctx->stream->ctx) {
|
if (ctx->stream->ctx) {
|
||||||
ctx->stream = NULL;
|
ctx->stream = NULL;
|
||||||
goto next;
|
goto next;
|
||||||
|
@ -615,11 +620,6 @@ ngx_rtmp_live_close_stream(ngx_rtmp_session_t *s, ngx_rtmp_close_stream_t *v)
|
||||||
ngx_rtmp_send_status(s, "NetStream.Play.Stop", "status", "Stop live");
|
ngx_rtmp_send_status(s, "NetStream.Play.Stop", "status", "Stop live");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->publishing) {
|
|
||||||
ngx_rtmp_send_status(s, "NetStream.Unpublish.Success",
|
|
||||||
"status", "Stop publishing");
|
|
||||||
}
|
|
||||||
|
|
||||||
next:
|
next:
|
||||||
return next_close_stream(s, v);
|
return next_close_stream(s, v);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue