浏览代码

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 年之前
父节点
当前提交
1939472912
共有 1 个文件被更改,包括 8 次插入0 次删除
  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))
     {