Browse Source

obs-outputs: Log unhandled rtmp status responses

rtmp status responses that are not handled are currently silently ignored
making it difficult to identify issues.
Eric Lindvall 5 years ago
parent
commit
1939472912
1 changed files with 8 additions and 0 deletions
  1. 8 0
      plugins/obs-outputs/librtmp/rtmp.c

+ 8 - 0
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))
     {