diff options
Diffstat (limited to 'toxav/toxav.c')
-rw-r--r-- | toxav/toxav.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/toxav/toxav.c b/toxav/toxav.c index df6fa833..fcc6e86a 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c | |||
@@ -78,8 +78,8 @@ struct toxAV { | |||
78 | PAIR(toxav_call_state_cb *, void *) scb; /* Call state callback */ | 78 | PAIR(toxav_call_state_cb *, void *) scb; /* Call state callback */ |
79 | PAIR(toxav_receive_audio_frame_cb *, void *) acb; /* Audio frame receive callback */ | 79 | PAIR(toxav_receive_audio_frame_cb *, void *) acb; /* Audio frame receive callback */ |
80 | PAIR(toxav_receive_video_frame_cb *, void *) vcb; /* Video frame receive callback */ | 80 | PAIR(toxav_receive_video_frame_cb *, void *) vcb; /* Video frame receive callback */ |
81 | PAIR(toxav_request_video_frame_cb *, void *) rvcb; /* Request video callback */ | 81 | PAIR(toxav_video_frame_request_cb *, void *) rvcb; /* Video request callback */ |
82 | PAIR(toxav_request_audio_frame_cb *, void *) racb; /* Request video callback */ | 82 | PAIR(toxav_audio_frame_request_cb *, void *) racb; /* Audio request callback */ |
83 | 83 | ||
84 | /** Decode time measures */ | 84 | /** Decode time measures */ |
85 | int32_t dmssc; /** Measure count */ | 85 | int32_t dmssc; /** Measure count */ |
@@ -202,7 +202,7 @@ uint32_t toxav_iteration_interval(const ToxAV* av) | |||
202 | return av->calls ? av->interval : 200; | 202 | return av->calls ? av->interval : 200; |
203 | } | 203 | } |
204 | 204 | ||
205 | void toxav_iteration(ToxAV* av) | 205 | void toxav_iterate(ToxAV* av) |
206 | { | 206 | { |
207 | if (av->calls == NULL) | 207 | if (av->calls == NULL) |
208 | return; | 208 | return; |
@@ -487,7 +487,7 @@ bool toxav_set_video_bit_rate(ToxAV* av, uint32_t friend_number, uint32_t video_ | |||
487 | /* TODO */ | 487 | /* TODO */ |
488 | } | 488 | } |
489 | 489 | ||
490 | void toxav_callback_request_video_frame(ToxAV* av, toxav_request_video_frame_cb* function, void* user_data) | 490 | void toxav_callback_video_frame_request(ToxAV* av, toxav_video_frame_request_cb* function, void* user_data) |
491 | { | 491 | { |
492 | pthread_mutex_lock(av->mutex); | 492 | pthread_mutex_lock(av->mutex); |
493 | av->rvcb.first = function; | 493 | av->rvcb.first = function; |
@@ -601,7 +601,7 @@ END: | |||
601 | return rc == TOXAV_ERR_SEND_FRAME_OK; | 601 | return rc == TOXAV_ERR_SEND_FRAME_OK; |
602 | } | 602 | } |
603 | 603 | ||
604 | void toxav_callback_request_audio_frame(ToxAV* av, toxav_request_audio_frame_cb* function, void* user_data) | 604 | void toxav_callback_audio_frame_request(ToxAV* av, toxav_audio_frame_request_cb* function, void* user_data) |
605 | { | 605 | { |
606 | pthread_mutex_lock(av->mutex); | 606 | pthread_mutex_lock(av->mutex); |
607 | av->racb.first = function; | 607 | av->racb.first = function; |
@@ -1078,4 +1078,4 @@ CLEAR: | |||
1078 | av->calls_head = av->calls_tail = 0; | 1078 | av->calls_head = av->calls_tail = 0; |
1079 | free(av->calls); | 1079 | free(av->calls); |
1080 | av->calls = NULL; | 1080 | av->calls = NULL; |
1081 | } \ No newline at end of file | 1081 | } |