Explorar o código

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 %!s(int64=5) %!d(string=hai) anos
pai
achega
1939472912
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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))
     {