diff --git a/src/rtsp/BasicRTSPOnlyServer.cpp b/src/rtsp/BasicRTSPOnlyServer.cpp index 399e9f56a..14bff4acb 100644 --- a/src/rtsp/BasicRTSPOnlyServer.cpp +++ b/src/rtsp/BasicRTSPOnlyServer.cpp @@ -81,8 +81,9 @@ int BasicRTSPOnlyServer::init_server() { if (env != NULL || rtspServer != NULL || mod == NULL || (avType >= NUM_RTSP_FORMATS && avType < 0)){ exit(1); } + //setting livenessTimeoutTask - unsigned reclamationTestSeconds = 25; + unsigned reclamationTestSeconds = 5; TaskScheduler* scheduler = BasicTaskScheduler::createNew(); env = BasicUsageEnvironment::createNew(*scheduler); diff --git a/src/rtsp/BasicRTSPOnlySubsession.cpp b/src/rtsp/BasicRTSPOnlySubsession.cpp index a25c231e0..8c8f3010b 100644 --- a/src/rtsp/BasicRTSPOnlySubsession.cpp +++ b/src/rtsp/BasicRTSPOnlySubsession.cpp @@ -240,8 +240,6 @@ void BasicRTSPOnlySubsession::startStream(unsigned clientSessionId, if(avType == audioPCMUdyn || avType == avStdDyn){ char pathA[1024]; - struct msg_sender *msg = (struct msg_sender *) - new_message(sizeof(struct msg_sender)); memset(pathA, 0, sizeof(pathA)); enum module_class path_sender[] = { MODULE_CLASS_AUDIO, MODULE_CLASS_SENDER, MODULE_CLASS_NONE }; append_message_path(pathA, sizeof(pathA), path_sender); diff --git a/src/sender.c b/src/sender.c index 6ea77a5eb..67ca5ac07 100644 --- a/src/sender.c +++ b/src/sender.c @@ -253,7 +253,7 @@ static void h264_rtp_send(void *state, struct video_frame *tx_frame) } } - VIDEO_FRAME_DISPOSE(tx_frame); + //VIDEO_FRAME_DISPOSE(tx_frame); } static void h264_rtp_done(void *state)