From 1aefa1cd35600560fa69f4eb67be37ef4c0392ee Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Tue, 19 Aug 2025 10:21:21 +0200 Subject: [PATCH] MT#59962 AmRtpStream: add getter for raw relay state Just getter for `AmRtpStream::relay_raw`. Change-Id: I7509df6842667996ee12555229f240d19caaa71f --- core/AmRtpStream.cpp | 6 +++++- core/AmRtpStream.h | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/AmRtpStream.cpp b/core/AmRtpStream.cpp index c4537905..0735d27f 100644 --- a/core/AmRtpStream.cpp +++ b/core/AmRtpStream.cpp @@ -1238,7 +1238,11 @@ void AmRtpStream::disableRawRelay() DBG("disabled RAW relay for RTP stream instance [%p]\n", this); relay_raw = false; } - + +bool AmRtpStream::isRawRelayed() { + return relay_raw; +} + void AmRtpStream::setRtpRelayTransparentSeqno(bool transparent) { DBG("%sabled RTP relay transparent seqno for RTP stream instance [%p]\n", transparent ? "en":"dis", this); diff --git a/core/AmRtpStream.h b/core/AmRtpStream.h index 26a2c693..38868245 100644 --- a/core/AmRtpStream.h +++ b/core/AmRtpStream.h @@ -499,6 +499,9 @@ public: /** disable raw UDP relaying through relay stream */ void disableRawRelay(); + /** Check raw UDP relaying through relay stream */ + bool isRawRelayed(); + /** enable or disable transparent RTP seqno for relay */ void setRtpRelayTransparentSeqno(bool transparent);