瀏覽代碼

obs-ffmpeg: Fix SRT error type comparison (#7802)

tytan652 2 年之前
父節點
當前提交
c8a01f92ee
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/obs-ffmpeg/obs-ffmpeg-srt.h

+ 1 - 1
plugins/obs-ffmpeg/obs-ffmpeg-srt.h

@@ -87,7 +87,7 @@ static int libsrt_neterrno(URLContext *h)
 	     srt_getlasterror_str());
 	if (err == SRT_EASYNCRCV || err == SRT_EASYNCSND)
 		return AVERROR(EAGAIN);
-	if (err = SRT_ECONNREJ) {
+	if (err == SRT_ECONNREJ) {
 		int errj = srt_getrejectreason(s->fd);
 		if (errj == SRT_REJ_BADSECRET)
 			blog(LOG_ERROR,