The event function leaks all segment events with format != GST_FORMAT_TIME.
0001-audioencoder-Unref-segment-event.patch