[−][src]Function mmal_sys::mmal_connection_event_format_changed
pub unsafe extern "C" fn mmal_connection_event_format_changed(
connection: *mut MMAL_CONNECTION_T,
buffer: *mut MMAL_BUFFER_HEADER_T
) -> Type
Apply a format changed event to the connection. This function can be used when the client is processing buffer headers and receives a format changed event (\ref MMAL_EVENT_FORMAT_CHANGED). The connection is reconfigured, changing the format of the ports, the number of buffer headers and the size of the payload buffers as necessary.
@param connection The connection to which the event shall be applied. @param buffer The buffer containing a format changed event. @return MMAL_SUCCESS on success.