rtmp-services: Fix incompatible-pointer-types warnings

This commit is contained in:
tytan652 2022-08-02 13:35:30 +02:00 committed by Jim
parent d12836af51
commit 0283fd2c71

View File

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