From 565f9d18aecf179a5247577781d752415ecd9ad8 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Fri, 30 Jun 2023 15:14:59 +0200 Subject: [PATCH] srt: Always format reject reason code `srt_rejectreason_str` doesn't give us a unique string for every possible reason. Peers can define their own reasons and SRT just gives us the string `"Application-defined rejection reason"` for all of them. Part-of: --- subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c b/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c index c857b644ff..80852d1c8a 100644 --- a/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c +++ b/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c @@ -49,8 +49,8 @@ G_STMT_START { \ } G_STMT_END #if SRT_VERSION_VALUE > 0x10402 -#define REASON_FORMAT "s" -#define REASON_ARGS(reason) srt_rejectreason_str (reason) +#define REASON_FORMAT "s (%d)" +#define REASON_ARGS(reason) srt_rejectreason_str (reason), (reason) #else /* srt_rejectreason_str() is unavailable in libsrt 1.4.2 and prior due to * unexported symbol. See https://github.com/Haivision/srt/pull/1728. */