video_rxtx/h264_rtp.cpp: deleteStream msg not proc

Fixed deleteStream message not being processed if the client doesn't
properly issue TEARDOWN on `Medium::close(instance->rtspServer);`.

(see also previous 2 commits)
This commit is contained in:
Martin Pulec
2024-02-08 14:32:05 +01:00
parent 7d62e569c6
commit 1d3ca83c3e
2 changed files with 5 additions and 4 deletions

View File

@@ -185,8 +185,9 @@ void *video_rxtx::sender_loop() {
shared_ptr<video_frame> tx_frame;
tx_frame = compress_pop(m_compression);
if (!tx_frame)
goto exit;
if (!tx_frame) {
break;
}
export_video(m_exporter, tx_frame.get());
@@ -194,7 +195,7 @@ void *video_rxtx::sender_loop() {
m_frames_sent += 1;
}
exit:
check_sender_messages();
return NULL;
}

View File

@@ -110,8 +110,8 @@ h264_rtp_video_rxtx::~h264_rtp_video_rxtx()
void h264_rtp_video_rxtx::join()
{
video_rxtx::join();
c_stop_server(m_rtsp_server);
video_rxtx::join();
}
static void rtps_server_usage(){