Переглянути джерело

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;
 	}