From 37b1f5d24c446875e1dfb9e4fb8089b7729823cb Mon Sep 17 00:00:00 2001 From: igorshevach Date: Sun, 15 Sep 2024 23:21:19 +0300 Subject: [PATCH] attempt to force rtmp not to send old media info --- transcoder/receiver_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcoder/receiver_server.c b/transcoder/receiver_server.c index 6e01753e..3cf4e86d 100644 --- a/transcoder/receiver_server.c +++ b/transcoder/receiver_server.c @@ -121,7 +121,7 @@ int clientLoop(receiver_server_t *server,receiver_server_session_t *session,tran transcode_session_get_ack_frame_id(transcode_session,¤t_position); // TODO: we cheat here, received_frame_id may have not been persisted yet // so we should make sure all of the frames are consumed ny upstream - current_position.frame_id = current_position.transcoded_frame_id = received_frame_id; + current_position.frame_id = current_position.transcoded_frame_id = received_frame_id + 1; LOGGER(CATEGORY_RECEIVER,AV_LOG_INFO,"[%s] sending ack for packet # : %lld",session->stream_name,current_position.frame_id); _S(KMP_send_ack(&session->kmpClient,¤t_position)); }