mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 21:38:34 +00:00
mostly trivial windows fixes for last several commits - anthm pthread_self in mod_dptools is not in scope for windows? commented out.
This commit is contained in:
1 parent
ccb3f7fd2b
commit
98bbb9affe
8 files changed
+57
-21
No files matched your search
+8
-1
@@ -806,15 +806,22 @@ stfu_frame_t *stfu_n_read_a_frame(stfu_instance_t *i)
|
||||
return rframe;
|
||||
}
|
||||
|
||||
int32_t stfu_n_copy_next_frame(stfu_instance_t *jb, uint32_t timestamp, uint16_t seq, uint16_t distance, stfu_frame_t *next_frame)
|
||||
STFU_DECLARE(int32_t) stfu_n_copy_next_frame(stfu_instance_t *jb, uint32_t timestamp, uint16_t seq, uint16_t distance, stfu_frame_t *next_frame)
|
||||
{
|
||||
uint32_t i = 0, j = 0;
|
||||
#ifdef WIN32
|
||||
#pragma warning (disable:4204)
|
||||
#endif
|
||||
stfu_queue_t *queues[] = { jb->out_queue, jb->in_queue, jb->old_queue};
|
||||
#ifdef WIN32
|
||||
#pragma warning (default:4204)
|
||||
#endif
|
||||
stfu_queue_t *queue = NULL;
|
||||
stfu_frame_t *frame = NULL;
|
||||
|
||||
uint32_t target_ts = 0;
|
||||
|
||||
seq = seq;
|
||||
if (!next_frame) return 0;
|
||||
|
||||
target_ts = timestamp + (distance - 1) * jb->samples_per_packet;
|
||||
|
||||
+1
-1
@@ -191,7 +191,7 @@ stfu_instance_t *stfu_n_init(uint32_t qlen, uint32_t max_qlen, uint32_t samples_
|
||||
stfu_status_t stfu_n_resize(stfu_instance_t *i, uint32_t qlen);
|
||||
stfu_status_t stfu_n_add_data(stfu_instance_t *i, uint32_t ts, uint16_t seq, uint32_t pt, void *data, size_t datalen, uint32_t timer_ts, int last);
|
||||
stfu_frame_t *stfu_n_read_a_frame(stfu_instance_t *i);
|
||||
int32_t stfu_n_copy_next_frame(stfu_instance_t *jb, uint32_t timestamp, uint16_t seq, uint16_t distance, stfu_frame_t *next_frame);
|
||||
STFU_DECLARE(int32_t) stfu_n_copy_next_frame(stfu_instance_t *jb, uint32_t timestamp, uint16_t seq, uint16_t distance, stfu_frame_t *next_frame);
|
||||
void stfu_n_reset(stfu_instance_t *i);
|
||||
stfu_status_t stfu_n_sync(stfu_instance_t *i, uint32_t packets);
|
||||
void stfu_n_call_me(stfu_instance_t *i, stfu_n_call_me_t callback, void *udata);
|
||||
|
||||
Reference in new issue
Block a user