fixed repeated call of on_play_done

This commit is contained in:
Roman Arutyunyan 2014-01-07 07:27:19 +04:00
parent 0aaf2a6259
commit 0166380bef

View file

@ -1235,7 +1235,9 @@ ngx_rtmp_exec_close_stream(ngx_rtmp_session_t *s, ngx_rtmp_close_stream_t *v)
if (ctx->flags & NGX_RTMP_EXEC_PUBLISHING) { if (ctx->flags & NGX_RTMP_EXEC_PUBLISHING) {
ngx_rtmp_exec_unmanaged(s, &eacf->conf[NGX_RTMP_EXEC_PUBLISH_DONE], ngx_rtmp_exec_unmanaged(s, &eacf->conf[NGX_RTMP_EXEC_PUBLISH_DONE],
"publish_done"); "publish_done");
} else { }
if (ctx->flags & NGX_RTMP_EXEC_PLAYING) {
ngx_rtmp_exec_unmanaged(s, &eacf->conf[NGX_RTMP_EXEC_PLAY_DONE], ngx_rtmp_exec_unmanaged(s, &eacf->conf[NGX_RTMP_EXEC_PLAY_DONE],
"play_done"); "play_done");
} }