mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
moved NetStream.Unpublish.Success to a better place
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user