From 1939472912ee041f6eb8fb9de14731f9c0d9ddba Mon Sep 17 00:00:00 2001 From: Eric Lindvall Date: Thu, 18 Jun 2020 17:22:39 -0700 Subject: [PATCH] obs-outputs: Log unhandled rtmp status responses rtmp status responses that are not handled are currently silently ignored making it difficult to identify issues. --- plugins/obs-outputs/librtmp/rtmp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/obs-outputs/librtmp/rtmp.c b/plugins/obs-outputs/librtmp/rtmp.c index 3db8ae686..0fe63a356 100644 --- a/plugins/obs-outputs/librtmp/rtmp.c +++ b/plugins/obs-outputs/librtmp/rtmp.c @@ -3379,6 +3379,14 @@ HandleInvoke(RTMP *r, const char *body, unsigned int nBodySize) r->m_pausing = 3; } } + + else + { + if (description.av_len) + RTMP_Log(RTMP_LOGWARNING, "Unhandled: %s:\n%s (%s)", r->Link.tcUrl.av_val, code.av_val, description.av_val); + else + RTMP_Log(RTMP_LOGWARNING, "Unhandled: %s:\n%s", r->Link.tcUrl.av_val, code.av_val); + } } else if (AVMATCH(&method, &av_playlist_ready)) {