Fix the crash in ctrlpt_callback
ctrlpt_callback is sending the incorrect type of Event. The callback is supposed to take the pointer to Event, not the pointer to (UpnpDiscovery *). This will lead to the crash of the sample/tv_ctrlpt
@@ -234,7 +234,7 @@ void ssdp_handle_ctrlpt_msg(http_message_t *hmsg, struct sockaddr_storage *dest_
ctrlpt_cookie = ctrlpt_info->Cookie;
HandleUnlock();
- ctrlpt_callback(event_type, &param, ctrlpt_cookie);
+ ctrlpt_callback(event_type, param, ctrlpt_cookie);
}
} else {
/* reply (to a SEARCH) */
