소스 검색

rtmp-services: Don't show "service not found" if name empty

Fixes an issue where the log could have "Could not find service" with an
empty service name when opening properties.
jp9000 8 년 전
부모
커밋
48a5f0e51a
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      plugins/rtmp-services/rtmp-common.c

+ 4 - 3
plugins/rtmp-services/rtmp-common.c

@@ -467,9 +467,10 @@ static void initialize_output(struct rtmp_common *service, json_t *root,
 	json_t        *recommended;
 
 	if (!json_service) {
-		blog(LOG_WARNING, "rtmp-common.c: [initialize_output] "
-		                  "Could not find service '%s'",
-		                  service->service);
+		if (service->service && *service->service)
+			blog(LOG_WARNING, "rtmp-common.c: [initialize_output] "
+					  "Could not find service '%s'",
+					  service->service);
 		return;
 	}