Browse Source

rtmp-services: Fix incompatible-pointer-types warnings

tytan652 3 years ago
parent
commit
0283fd2c71
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/rtmp-services/rtmp-common.c

+ 2 - 2
plugins/rtmp-services/rtmp-common.c

@@ -860,7 +860,7 @@ static const char **rtmp_common_get_supported_video_codecs(void *data)
 	struct rtmp_common *service = data;
 	struct rtmp_common *service = data;
 
 
 	if (service->video_codecs)
 	if (service->video_codecs)
-		return service->video_codecs;
+		return (const char **)service->video_codecs;
 
 
 	struct dstr codecs = {0};
 	struct dstr codecs = {0};
 	json_t *root = open_services_file();
 	json_t *root = open_services_file();
@@ -895,7 +895,7 @@ static const char **rtmp_common_get_supported_video_codecs(void *data)
 
 
 fail:
 fail:
 	json_decref(root);
 	json_decref(root);
-	return service->video_codecs;
+	return (const char **)service->video_codecs;
 }
 }
 
 
 static const char *rtmp_common_username(void *data)
 static const char *rtmp_common_username(void *data)