diff --git a/api/tests/h264_pusher.c b/api/tests/h264_pusher.c index bb87b03b..81a018b0 100644 --- a/api/tests/h264_pusher.c +++ b/api/tests/h264_pusher.c @@ -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; -} \ No newline at end of file +}