mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 02:34:26 +08:00
Update h264_pusher.c, fix build issue (#3444)
修复win构建失败 strcasestr->strstr
This commit is contained in:
parent
edca662208
commit
e6506a96d4
@ -68,7 +68,7 @@ void on_push_shutdown(void *user_data, int err_code, const char *err_msg) {
|
||||
void API_CALL on_regist(void *user_data, mk_media_source sender, int regist) {
|
||||
Context *ptr = (Context *)user_data;
|
||||
const char *schema = mk_media_source_get_schema(sender);
|
||||
if (strcasestr(ptr->url, schema) != ptr->url) {
|
||||
if (strstr(ptr->url, schema) != ptr->url) {
|
||||
// 协议匹配失败
|
||||
return;
|
||||
}
|
||||
@ -149,4 +149,4 @@ int main(int argc, char *argv[]) {
|
||||
mk_media_release(media);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user