links: remove link_validate_buffer
This commit is contained in:
parent
456eec5847
commit
425bbe7745
@ -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?");
|
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;
|
bool dropped = false;
|
||||||
|
|
||||||
for (int j = 0; link->output_lists[j]; j++) {
|
for (int j = 0; link->output_lists[j]; j++) {
|
||||||
|
@ -12,13 +12,11 @@ typedef struct link_s link_t;
|
|||||||
|
|
||||||
typedef void (*link_on_buffer)(buffer_t *buf);
|
typedef void (*link_on_buffer)(buffer_t *buf);
|
||||||
typedef bool (*link_check_streaming)();
|
typedef bool (*link_check_streaming)();
|
||||||
typedef bool (*link_validate_buffer)(struct link_s *link, buffer_t *buf);
|
|
||||||
|
|
||||||
typedef struct link_callbacks_s {
|
typedef struct link_callbacks_s {
|
||||||
const char *name;
|
const char *name;
|
||||||
link_on_buffer on_buffer;
|
link_on_buffer on_buffer;
|
||||||
link_check_streaming check_streaming;
|
link_check_streaming check_streaming;
|
||||||
link_validate_buffer validate_buffer;
|
|
||||||
buffer_lock_t *buf_lock;
|
buffer_lock_t *buf_lock;
|
||||||
} link_callbacks_t;
|
} link_callbacks_t;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user