From 98a3b8ab912ea97ccad7c01b2e947c4f745f9bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=A5=9A?= <771730766@qq.com> Date: Sat, 5 Aug 2023 09:26:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E6=B5=81=E7=BB=93=E6=9D=9F=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=8F=91=E9=80=81eof=E6=8E=A7=E5=88=B6=E4=BF=A1?= =?UTF-8?q?=E4=BB=A4=E7=BB=99rtmp=E6=92=AD=E6=94=BE=E5=99=A8=20(#2711=20#2?= =?UTF-8?q?723)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtmp/RtmpSession.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Rtmp/RtmpSession.cpp b/src/Rtmp/RtmpSession.cpp index 2ebf2f41..8a5d8c79 100644 --- a/src/Rtmp/RtmpSession.cpp +++ b/src/Rtmp/RtmpSession.cpp @@ -327,6 +327,7 @@ void RtmpSession::sendPlayResponse(const string &err, const RtmpMediaSource::Ptr if (!strong_self) { return; } + strong_self->sendUserControl(CONTROL_STREAM_EOF/*or CONTROL_STREAM_DRY ?*/, STREAM_MEDIA); strong_self->shutdown(SockException(Err_shutdown,"rtmp ring buffer detached")); }); src->pause(false);