More spelling fixes

This commit is contained in:
Maarten Bosmans 2011-08-24 18:24:46 +02:00 committed by Colin Guthrie
parent 231645d4fc
commit c5dca7cf2b
81 changed files with 165 additions and 167 deletions

View file

@ -37,7 +37,7 @@
#include "internal.h"
#include "ext-device-restore.h"
/* Protocol extention commands */
/* Protocol extension commands */
enum {
SUBCOMMAND_TEST,
SUBCOMMAND_SUBSCRIBE,

View file

@ -144,7 +144,7 @@ static void context_get_sink_info_callback(pa_pdispatch *pd, uint32_t command, u
pa_assert(o);
pa_assert(PA_REFCNT_VALUE(o) >= 1);
/* For safety incase someone use fail: outside the while loop below */
/* For safety in case someone use fail: outside the while loop below */
pa_zero(i);
if (!o->context)
@ -409,7 +409,7 @@ static void context_get_source_info_callback(pa_pdispatch *pd, uint32_t command,
pa_assert(o);
pa_assert(PA_REFCNT_VALUE(o) >= 1);
/* For safety incase someone use fail: outside the while loop below */
/* For safety in case someone use fail: outside the while loop below */
pa_zero(i);
if (!o->context)

View file

@ -245,7 +245,7 @@ static void stream_unlink(pa_stream *s) {
/* Detach from context */
/* Unref all operatio object that point to us */
/* Unref all operation object that point to us */
for (o = s->context->operations; o; o = n) {
n = o->next;
@ -1206,7 +1206,7 @@ static int create_stream(
PA_CHECK_VALIDITY(s->context, s->context->version >= 12 || !(flags & PA_STREAM_VARIABLE_RATE), PA_ERR_NOTSUPPORTED);
PA_CHECK_VALIDITY(s->context, s->context->version >= 13 || !(flags & PA_STREAM_PEAK_DETECT), PA_ERR_NOTSUPPORTED);
PA_CHECK_VALIDITY(s->context, s->context->state == PA_CONTEXT_READY, PA_ERR_BADSTATE);
/* Althought some of the other flags are not supported on older
/* Although some of the other flags are not supported on older
* version, we don't check for them here, because it doesn't hurt
* when they are passed but actually not supported. This makes
* client development easier */
@ -1804,7 +1804,7 @@ static void stream_get_timing_info_callback(pa_pdispatch *pd, uint32_t command,
pa_gettimeofday(&now);
/* Calculcate timestamps */
/* Calculate timestamps */
if (pa_timeval_cmp(&local, &remote) <= 0 && pa_timeval_cmp(&remote, &now) <= 0) {
/* local and remote seem to have synchronized clocks */
@ -2660,7 +2660,7 @@ pa_operation* pa_stream_set_buffer_attr(pa_stream *s, const pa_buffer_attr *attr
pa_pstream_send_tagstruct(s->context->pstream, t);
pa_pdispatch_register_reply(s->context->pdispatch, tag, DEFAULT_TIMEOUT, stream_set_buffer_attr_callback, pa_operation_ref(o), (pa_free_cb_t) pa_operation_unref);
/* This might cause changes in the read/write indexex, hence let's
/* This might cause changes in the read/write index, hence let's
* request a timing update */
request_auto_timing_update(s, TRUE);

View file

@ -78,7 +78,7 @@ pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b) {
pa_assert(a);
pa_assert(b);
/* Check which whan is the earlier time and swap the two arguments if required. */
/* Check which is the earlier time and swap the two arguments if required. */
if (PA_UNLIKELY(pa_timeval_cmp(a, b) < 0)) {
const struct timeval *c;
c = a;