mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
FS-11918: [core] add function to see frame buffer len switch_frame_buffer_size
This commit is contained in:
committed by
Andrey Volk
parent
dab7d83e94
commit
4926eac49d
@@ -265,6 +265,11 @@ SWITCH_DECLARE(switch_status_t) switch_frame_buffer_trypop(switch_frame_buffer_t
|
||||
return switch_queue_trypop(fb->queue, ptr);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(int) switch_frame_buffer_size(switch_frame_buffer_t *fb)
|
||||
{
|
||||
return switch_queue_size(fb->queue);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_frame_buffer_destroy(switch_frame_buffer_t **fbP)
|
||||
{
|
||||
switch_frame_buffer_t *fb = *fbP;
|
||||
|
Reference in New Issue
Block a user