소스 검색

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

tytan652 3 년 전
부모
커밋
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,