diff --git a/device/links.c b/device/links.c index e532477..0cd1f93 100644 --- a/device/links.c +++ b/device/links.c @@ -148,13 +148,6 @@ static int links_enqueue_from_capture_list(buffer_list_t *capture_list, link_t * LOG_ERROR(capture_list, "No buffer dequeued from capture_list?"); } - for (int j = 0; j < link->n_callbacks; j++) { - if (link->callbacks[j].validate_buffer && !link->callbacks[j].validate_buffer(link, buf)) { - LOG_DEBUG(capture_list, "Buffer rejected by validation"); - return 0; - } - } - bool dropped = false; for (int j = 0; link->output_lists[j]; j++) { diff --git a/device/links.h b/device/links.h index ca88786..532e64b 100644 --- a/device/links.h +++ b/device/links.h @@ -12,13 +12,11 @@ typedef struct link_s link_t; typedef void (*link_on_buffer)(buffer_t *buf); typedef bool (*link_check_streaming)(); -typedef bool (*link_validate_buffer)(struct link_s *link, buffer_t *buf); typedef struct link_callbacks_s { const char *name; link_on_buffer on_buffer; link_check_streaming check_streaming; - link_validate_buffer validate_buffer; buffer_lock_t *buf_lock; } link_callbacks_t;