From ffecb2dc234533e039ca43b90949d00b1d07c79b Mon Sep 17 00:00:00 2001 From: Lorenzo Miniero Date: Tue, 16 Apr 2024 16:25:47 +0200 Subject: [PATCH] Fixed typos in comments and documentation using codespell (see #3303) --- src/apierror.h | 2 +- src/config.h | 2 +- src/dtls.h | 2 +- src/events.c | 2 +- src/events.h | 2 +- src/events/eventhandler.h | 2 +- src/events/janus_mqttevh.c | 6 ++-- src/ice.c | 6 ++-- src/ice.h | 6 ++-- src/ip-utils.h | 4 +-- src/janus-cfgconv.1 | 2 +- src/janus-cfgconv.c | 2 +- src/loggers/logger.h | 2 +- src/mach_gettime.h | 8 +++--- src/mainpage.dox | 18 ++++++------ src/mutex.h | 2 +- src/plugins/audiobridge-deps/jitter.c | 2 +- src/plugins/audiobridge-deps/resample.c | 2 +- src/plugins/janus_audiobridge.c | 4 +-- src/plugins/janus_duktape_data.h | 2 +- src/plugins/janus_duktape_extra.c | 2 +- src/plugins/janus_duktape_extra.h | 2 +- src/plugins/janus_lua_data.h | 2 +- src/plugins/janus_lua_extra.c | 2 +- src/plugins/janus_lua_extra.h | 2 +- src/plugins/janus_recordplay.c | 4 +-- src/plugins/janus_sip.c | 6 ++-- src/plugins/janus_streaming.c | 38 ++++++++++++------------- src/plugins/janus_videocall.c | 6 ++-- src/plugins/janus_videoroom.c | 6 ++-- src/plugins/plugin.h | 2 +- src/postprocessing/janus-pp-rec.c | 4 +-- src/rtcp.c | 6 ++-- src/rtcp.h | 4 +-- src/rtpfwd.h | 4 +-- src/sctp.c | 2 +- src/sdp-utils.c | 2 +- src/sdp-utils.h | 8 +++--- src/sdp.c | 2 +- src/utils.h | 4 +-- 40 files changed, 93 insertions(+), 93 deletions(-) diff --git a/src/apierror.h b/src/apierror.h index 9c258008c5..55eee1338a 100644 --- a/src/apierror.h +++ b/src/apierror.h @@ -26,7 +26,7 @@ #define JANUS_ERROR_TRANSPORT_SPECIFIC 450 /*! \brief The request is missing in the message */ #define JANUS_ERROR_MISSING_REQUEST 452 -/*! \brief The Janus core does not suppurt this request */ +/*! \brief The Janus core does not support this request */ #define JANUS_ERROR_UNKNOWN_REQUEST 453 /*! \brief The payload is not a valid JSON message */ #define JANUS_ERROR_INVALID_JSON 454 diff --git a/src/config.h b/src/config.h index cd2868b66f..872e60e30d 100644 --- a/src/config.h +++ b/src/config.h @@ -76,7 +76,7 @@ void janus_config_print(janus_config *config); * @param[in] level The debugging level to use */ void janus_config_print_as(janus_config *config, int level); /*! \brief Helper method to save a configuration to a file - * @param[in] config The configuration to sav + * @param[in] config The configuration to save * @param[in] folder The folder the file should be saved to * @param[in] filename The file name, extension included (should be .jcfg, or .cfg for legacy INI files) * @returns 0 if successful, a negative integer otherwise */ diff --git a/src/dtls.h b/src/dtls.h index 79b12e779e..18dc3c5724 100644 --- a/src/dtls.h +++ b/src/dtls.h @@ -70,7 +70,7 @@ typedef struct janus_dtls_srtp { janus_dtls_role dtls_role; /*! \brief DTLS state of this component: -1=failed, 0=nothing, 1=trying, 2=connected */ janus_dtls_state dtls_state; - /*! \brief Monotonic time of when the DTLS handhake has started */ + /*! \brief Monotonic time of when the DTLS handshake has started */ gint64 dtls_started; /*! \brief Monotonic time of when the DTLS state has switched to connected */ gint64 dtls_connected; diff --git a/src/events.c b/src/events.c index 3d33da8698..0bf342ad41 100644 --- a/src/events.c +++ b/src/events.c @@ -175,7 +175,7 @@ void janus_events_notify_handlers(int type, int subtype, guint64 session_id, ... char *opaque_id = va_arg(args, char *); if(opaque_id != NULL) { json_object_set_new(event, "opaque_id", json_string(opaque_id)); - /* We add it to the body as well for backwards compatbility, as + /* We add it to the body as well for backwards compatibility, as * that's the only place we had the opaque_id present before */ json_object_set_new(body, "opaque_id", json_string(opaque_id)); } diff --git a/src/events.h b/src/events.h index 4a28365960..769e3d1188 100644 --- a/src/events.h +++ b/src/events.h @@ -39,7 +39,7 @@ gboolean janus_events_is_enabled(void); void janus_events_notify_handlers(int type, int subtype, guint64 session_id, ...); /*! \brief Helper method to change the mask of events a handler is interested in - * @note Every time this is called, the mask is resetted, which means that to + * @note Every time this is called, the mask is reset, which means that to * unsubscribe from a single event you have to pass an updated list * @param[in] list A comma separated string of event types to subscribe to * @param[out] target The mask to update */ diff --git a/src/events/eventhandler.h b/src/events/eventhandler.h index cab01c86c9..f00fb8a71e 100644 --- a/src/events/eventhandler.h +++ b/src/events/eventhandler.h @@ -55,7 +55,7 @@ janus_eventhandler *create(void) { * - \c get_description(): this method should return a verbose description of your event handler plugin (e.g., "This is an event handler that saves some events on a database"); * - \c get_name(): this method should return a short display name for your event handler plugin (e.g., "My Amazing Event Handler"); * - \c get_package(): this method should return a unique package identifier for your event handler plugin (e.g., "janus.eventhandler.myeventhandler"); - * - \c incoming_event(): this callack informs the event handler that an event is available for consumption. + * - \c incoming_event(): this callback informs the event handler that an event is available for consumption. * * All the above methods and callbacks are mandatory: the Janus core will * reject an event handler plugin that doesn't implement any of the diff --git a/src/events/janus_mqttevh.c b/src/events/janus_mqttevh.c index 9fdb67e7ec..55d33b4574 100644 --- a/src/events/janus_mqttevh.c +++ b/src/events/janus_mqttevh.c @@ -482,7 +482,7 @@ static int janus_mqttevh_client_disconnect(janus_mqttevh_context *ctx) { return MQTTAsync_disconnect(ctx->client, &options); } -/* Callback for succesful MQTT disconnect */ +/* Callback for successful MQTT disconnect */ static void janus_mqttevh_client_disconnect_success(void *context, MQTTAsync_successData *response) { janus_mqttevh_client_disconnect_success_impl(context); } @@ -551,7 +551,7 @@ static int janus_mqttevh_client_publish_message(janus_mqttevh_context *ctx, cons case MQTTASYNC_OPERATION_INCOMPLETE: break; default: - JANUS_LOG(LOG_WARN, "FAILURE: MQTT EVH message propably not sent to topic %s on %s. Result %d\n", topic, ctx->connect.url, rc); + JANUS_LOG(LOG_WARN, "FAILURE: MQTT EVH message probably not sent to topic %s on %s. Result %d\n", topic, ctx->connect.url, rc); } return rc; @@ -581,7 +581,7 @@ static int janus_mqttevh_client_publish_message5(janus_mqttevh_context *ctx, con case MQTTASYNC_OPERATION_INCOMPLETE: break; default: - JANUS_LOG(LOG_WARN, "FAILURE: MQTT EVH message propably not sent to topic %s on %s. Result %d\n", topic, ctx->connect.url, rc); + JANUS_LOG(LOG_WARN, "FAILURE: MQTT EVH message probably not sent to topic %s on %s. Result %d\n", topic, ctx->connect.url, rc); } return rc; diff --git a/src/ice.c b/src/ice.c index 4f258993a1..9025f0a2a1 100644 --- a/src/ice.c +++ b/src/ice.c @@ -163,12 +163,12 @@ gboolean janus_ice_is_consent_freshness_enabled(void) { static gboolean janus_ice_keepalive_connchecks = FALSE; void janus_ice_set_keepalive_conncheck_enabled(gboolean enabled) { if(janus_ice_consent_freshness && !enabled) { - JANUS_LOG(LOG_WARN, "Can't disable connectivity checks as PeerConnection keep-alives, consent freshness is enabled\n"); + JANUS_LOG(LOG_WARN, "Can't disable connectivity checks as PeerConnection keep-alive, consent freshness is enabled\n"); return; } janus_ice_keepalive_connchecks = enabled; if(janus_ice_keepalive_connchecks) { - JANUS_LOG(LOG_INFO, "Using connectivity checks as PeerConnection keep-alives\n"); + JANUS_LOG(LOG_INFO, "Using connectivity checks as PeerConnection keep-alive\n"); } } gboolean janus_ice_is_keepalive_conncheck_enabled(void) { @@ -3262,7 +3262,7 @@ static void janus_ice_cb_nice_recv(NiceAgent *agent, guint stream_id, guint comp if (janus_rtcp_fix_report_data(buf, buflen, base_ts, base_ts_prev, ssrc_peer, ssrc_local, ssrc_expected, video) < 0) { /* Drop packet in case of parsing error or SSRC different from the one expected. */ /* This might happen at the very beginning of the communication or early after */ - /* a re-negotation has been concluded. */ + /* a re-negotiation has been concluded. */ return; } diff --git a/src/ice.h b/src/ice.h index 216dcb4d61..d07116c4be 100644 --- a/src/ice.h +++ b/src/ice.h @@ -224,10 +224,10 @@ int janus_ice_get_event_stats_period(void); * @returns The current number of active PeerConnections */ int janus_ice_get_peerconnection_num(void); -/*! \brief Method to define wether the media stats shall be dispatched in one event (true) or in dedicated single events (false - default) +/*! \brief Method to define whether the media stats shall be dispatched in one event (true) or in dedicated single events (false - default) * @param[in] combine_media_stats_to_one_event true to combine media statistics in on event or false to send dedicated events */ void janus_ice_event_set_combine_media_stats(gboolean combine_media_stats_to_one_event); -/*! \brief Method to retrieve wether media statistic events shall be dispatched combined or in single events +/*! \brief Method to retrieve whether media statistic events shall be dispatched combined or in single events * @returns true to combine events */ gboolean janus_ice_event_get_combine_media_stats(void); @@ -502,7 +502,7 @@ struct janus_ice_peerconnection { janus_dtls_role dtls_role; /*! \brief Data exchanged for DTLS handshakes and messages */ janus_ice_stats dtls_in_stats, dtls_out_stats; - /*! \brief Hashing algorhitm used by the peer for the DTLS certificate (e.g., "SHA-256") */ + /*! \brief Hashing algorithm used by the peer for the DTLS certificate (e.g., "SHA-256") */ gchar *remote_hashing; /*! \brief Hashed fingerprint of the peer's certificate, as parsed in SDP */ gchar *remote_fingerprint; diff --git a/src/ip-utils.h b/src/ip-utils.h index 49bd8d6b0b..4a7fcac9cb 100644 --- a/src/ip-utils.h +++ b/src/ip-utils.h @@ -114,7 +114,7 @@ int janus_network_prepare_device_query_default(const char *user_value, janus_net const struct ifaddrs *janus_network_query_devices(const struct ifaddrs *ifas, const janus_network_query_config *query); /*! - * \brief Copies the IPv4 address from a network inteface description to the given result structure. + * \brief Copies the IPv4 address from a network interface description to the given result structure. * \param ifa The network interface description to grab the IPv4 address from. It should be obtained with `janus_network_query_devices()`. * \param query A description of the criteria to look for when determining whether or not a network interface is a match * \param result Pointer to a structure to populate with the IPv4 address of the given network interface @@ -125,7 +125,7 @@ const struct ifaddrs *janus_network_query_devices(const struct ifaddrs *ifas, co int janus_network_get_devices_ipv4(const struct ifaddrs *ifa, const janus_network_query_config *query, struct in_addr *result); /*! - * \brief Copies the IPv6 address from a network inteface description to the given result structure. + * \brief Copies the IPv6 address from a network interface description to the given result structure. * \param ifa The network interface description to grab the IPv6 address from. It should be obtained with `janus_network_query_devices()`. * \param query A description of the criteria to look for when determining whether or not a network interface is a match * \param result Pointer to a structure to populate with the IPv6 address of the given network interface diff --git a/src/janus-cfgconv.1 b/src/janus-cfgconv.1 index 741efaae22..5cb4a5ac7e 100644 --- a/src/janus-cfgconv.1 +++ b/src/janus-cfgconv.1 @@ -7,7 +7,7 @@ janus-cfgconv \- Janus config file conversion utility. .IR destination.[cfg|jcfg] .SH DESCRIPTION .B janus-cfgconv -is a simple utility that allows you to convert Janus INI configuration files to libconfig format and viceversa. +is a simple utility that allows you to convert Janus INI configuration files to libconfig format and vice-versa. .SH OPTIONS .TP .BR \-h ", " \-\-help diff --git a/src/janus-cfgconv.c b/src/janus-cfgconv.c index b588f56033..0332ffe7f4 100644 --- a/src/janus-cfgconv.c +++ b/src/janus-cfgconv.c @@ -1,7 +1,7 @@ /*! \file janus-cfgconv.c * \author Lorenzo Miniero * \copyright GNU General Public License v3 - * \brief Simple utility to convert Janus .cfg files to .jcfg and viceversa + * \brief Simple utility to convert Janus .cfg files to .jcfg and vice-versa * \details Historically, Janus has made use of INI .cfg files for the * configuration of core and plugins. Recently, support for the libconfig format * has been added too. Due to the more expressive nature of libconfig, .jcfg diff --git a/src/loggers/logger.h b/src/loggers/logger.h index 741c9553e2..5a1ae78848 100644 --- a/src/loggers/logger.h +++ b/src/loggers/logger.h @@ -45,7 +45,7 @@ janus_logger *create(void) { * - \c get_description(): this method should return a verbose description of your logger plugin (e.g., "This is a logger that saves log lines on a database"); * - \c get_name(): this method should return a short display name for your logger plugin (e.g., "My Amazing Logger"); * - \c get_package(): this method should return a unique package identifier for your logger plugin (e.g., "janus.logger.mylogger"); - * - \c incoming_logline(): this callack informs the logger that a log line is available for consumption. + * - \c incoming_logline(): this callback informs the logger that a log line is available for consumption. * * All the above methods and callbacks are mandatory: the Janus core will * reject al logger plugin that doesn't implement any of the mandatory callbacks. diff --git a/src/mach_gettime.h b/src/mach_gettime.h index da41205dab..817c9ddd7f 100644 --- a/src/mach_gettime.h +++ b/src/mach_gettime.h @@ -21,7 +21,7 @@ typedef int clockid_t; #endif /* the mach kernel uses struct mach_timespec, so struct timespec - is loaded from for compatability */ + is loaded from for compatibility */ // struct timespec { time_t tv_sec; long tv_nsec; }; int clock_gettime(clockid_t clk_id, struct timespec *tp); @@ -35,13 +35,13 @@ int clock_gettime(clockid_t clk_id, struct timespec *tp); static double mt_timebase = 0.0; static uint64_t mt_timestart = 0; -// TODO be more careful in a multithreaded environement +// TODO be more careful in a multithreaded environment int clock_gettime(clockid_t clk_id, struct timespec *tp) { kern_return_t retval = KERN_SUCCESS; if( clk_id == TIMER_ABSTIME) { - if (!mt_timestart) { // only one timer, initilized on the first call to the TIMER + if (!mt_timestart) { // only one timer, initialized on the first call to the TIMER mach_timebase_info_data_t tb = { 0 }; mach_timebase_info(&tb); mt_timebase = tb.numer; @@ -53,7 +53,7 @@ int clock_gettime(clockid_t clk_id, struct timespec *tp) tp->tv_sec = diff * MT_NANO; tp->tv_nsec = diff - (tp->tv_sec * MT_GIGA); } - else // other clk_ids are mapped to the coresponding mach clock_service + else // other clk_ids are mapped to the corresponding mach clock_service { clock_serv_t cclock; mach_timespec_t mts; diff --git a/src/mainpage.dox b/src/mainpage.dox index 7822dab682..6de2800c93 100644 --- a/src/mainpage.dox +++ b/src/mainpage.dox @@ -44,7 +44,7 @@ * reference should you be interested in writing a new plugin from * scratch (and you're definitely welcome to!). A \ref pluginapi to * create new plugins, or understand how they're conceived, is documented - * as well. A documentation on the available API tranports and the + * as well. A documentation on the available API transports and the * HTTP/WebSocket JavaScript API to use Janus and the plugins it * makes available in your web application can be found in the \ref JS * and \ref rest pages. New API transports can be created referring to @@ -499,7 +499,7 @@ janus.attach( * - \c tracks: you can use this property to tell the library which media (audio/video/data) * you're interested in, and whether you're going to send and/or receive any of them; by default * no device is captured, and Data Channels are disabled as well; incoming audio and video - * is instead autoaccepted unless you tell the library otherwose; the same property can also + * is instead autoaccepted unless you tell the library otherwise; the same property can also * be used to update sessions (e.g., to add/remove/replace tracks); this option is an array of * objects, where each object can take any of the following properties: * - \c type: mandatory, must be one of "audio", "video", "screen" and "data"; @@ -906,7 +906,7 @@ echotest.createOffer( * \section js-webpack Using janus.js directly with Webpack and other bundlers * * Generating a converted version of \c janus.js and copying it to your project is not always the best - * solution. In many situations it may be prefered to let your JavaScript module bundler (e.g. + * solution. In many situations it may be preferred to let your JavaScript module bundler (e.g. * Webpack) grab the file directly from the official Janus repository. * Doing that you can manage \c janus.js just like any other dependency coming from Github or the npm Registry, * getting rid of the manual copy step and letting the bundler take care of version management, updates @@ -1067,7 +1067,7 @@ export const initialiseJanusLibrary = () => Janus.init({dependencies: setupDeps( * * The \c options argument may contain the following keys: * - * -# \c timeout: a timeout in miliseconds which should be imposed on the request. + * -# \c timeout: a timeout in milliseconds which should be imposed on the request. * The \c httpAPICall implementation is required to implement support for imposing timeouts * on HTTP API requests. * -# \c body: payload to include as body of the outgoing HTTP request. @@ -2678,7 +2678,7 @@ else server = "https://" + window.location.hostname + ":8089/janus"; \endverbatim * - * that is evaulate the right address to use at runtime. + * that is evaluate the right address to use at runtime. * * Anyway, there's a much easier way to address these scenarios, which * is explained in the next section. @@ -2943,7 +2943,7 @@ WantedBy=multi-user.target * \note Remember to adjust the path in ExecStart to match the Janus binary path. * * \warning Please beware that, per the default \c RateLimitInterval and - * and \c RateLimitBurst values in the default sytemd configuration, logger + * and \c RateLimitBurst values in the default systemd configuration, logger * messages are dropped if they arrive faster than ~33 per second. You * may want to configure them accordingly, or otherwise Janus log messages * may be missing. To fix this, setting RateLimitInterval=1s @@ -4013,7 +4013,7 @@ ldd janus | grep asan * When we chose the name, we wanted it to sound like * this, * which means \a awesome! in Italian. The extra H was a mistake on our - * side, as obviously \a echo is pronouced differently than \a eco! Long + * side, as obviously \a echo is pronounced differently than \a eco! Long * story short, it doesn't really matter how you pronounce it: just * do it and help us be famous! :-)\n\n * . @@ -4161,7 +4161,7 @@ ldd janus | grep asan * before the \c bootstrap and \c configure steps in the \c usrsctp * compilation:\n\n *\verbatim - export CFLAGS="-fno-strict-aliasing" ./boostrap + export CFLAGS="-fno-strict-aliasing" ./bootstrap export CFLAGS="-fno-strict-aliasing" ./configure --prefix=/usr make && make install \endverbatim @@ -4245,7 +4245,7 @@ ldd janus | grep asan * Since version \c 0.0.6, you can! This is a feature that several * developers asked for, especially those that are interested in wrapping * the Janus API on the server side, and implement the communication - * on the client side their own way. Specificaly, Janus now supports + * on the client side their own way. Specifically, Janus now supports * RabbitMQ based messaging as an alternative "transport" for API * requests, responses and notifications, meaning it can be used with * or without HTTP and WebSockets, depending on your requirements. diff --git a/src/mutex.h b/src/mutex.h index 6a4137d414..a0dbc2b71a 100644 --- a/src/mutex.h +++ b/src/mutex.h @@ -1,6 +1,6 @@ /*! \file mutex.h * \author Lorenzo Miniero - * \brief Semaphors, Mutexes and Conditions + * \brief Semaphores, Mutexes and Conditions * \details Implementation (based on GMutex or pthread_mutex) of a locking mechanism based on mutexes and conditions. * * \ingroup core diff --git a/src/plugins/audiobridge-deps/jitter.c b/src/plugins/audiobridge-deps/jitter.c index c3b7fc09d5..3bedf98fa5 100644 --- a/src/plugins/audiobridge-deps/jitter.c +++ b/src/plugins/audiobridge-deps/jitter.c @@ -212,7 +212,7 @@ static spx_int16_t compute_opt_delay(JitterBuffer *jitter) int j; int next=-1; int latest = 32767; - /* Pick latest amoung all sub-windows */ + /* Pick latest among all sub-windows */ for (j=0;j: { * or restarts take place, they MUST follow the same negotiation pattern * as the one that originated the connection: it's an error to send an * SDP offer to the plugin to update a PeerConnection, if the plugin sent - * you an offer originally. It's adviced to let users generate the offer, + * you an offer originally. It's advised to let users generate the offer, * and let the plugin answer: this reverserd role is mostly here to * facilitate the setup of cascaded mixers, e.g., allow one AudioBridge * to connect to the other via WebRTC (which wouldn't be possible if @@ -7801,7 +7801,7 @@ static void *janus_audiobridge_handler(void *data) { if(sdp != NULL) { participant->opus_pt = janus_sdp_get_codec_pt(sdp, -1, "opus"); if(participant->opus_pt > 0 && strstr(msg_sdp, "useinbandfec=1")){ - /* Opus codec, inband FEC setted */ + /* Opus codec, inband FEC set */ participant->fec = TRUE; participant->probation = MIN_SEQUENTIAL; opus_encoder_ctl(participant->encoder, OPUS_SET_INBAND_FEC(participant->fec)); diff --git a/src/plugins/janus_duktape_data.h b/src/plugins/janus_duktape_data.h index 1c7498793d..8b163c551c 100644 --- a/src/plugins/janus_duktape_data.h +++ b/src/plugins/janus_duktape_data.h @@ -3,7 +3,7 @@ * \copyright GNU General Public License v3 * \brief Janus Duktape data/session definition (headers) * \details The Janus Duktape plugin implements all the mandatory hooks to - * allow the C code to interact with a custom JavaScript script, and viceversa. + * allow the C code to interact with a custom JavaScript script, and vice-versa. * That said, the janus_duktape_extra.c code allows for custom hooks to be * added in C, to expose additional JavaScript functions and implement more * complex media management than the one provided by the stock plugin. diff --git a/src/plugins/janus_duktape_extra.c b/src/plugins/janus_duktape_extra.c index 7da949ba26..e1407dcdf7 100644 --- a/src/plugins/janus_duktape_extra.c +++ b/src/plugins/janus_duktape_extra.c @@ -3,7 +3,7 @@ * \copyright GNU General Public License v3 * \brief Janus Duktape plugin extra hooks * \details The Janus Duktape plugin implements all the mandatory hooks to - * allow the C code to interact with a custom JavaScript script, and viceversa. + * allow the C code to interact with a custom JavaScript script, and vice-versa. * Anyway, JavaScript developers may want to have the C code do more than what * is provided out of the box, e.g., by exposing additional JavaScript methods * from C for further low level processing or native integration. This diff --git a/src/plugins/janus_duktape_extra.h b/src/plugins/janus_duktape_extra.h index ae2cacd7ce..e3449f1490 100644 --- a/src/plugins/janus_duktape_extra.h +++ b/src/plugins/janus_duktape_extra.h @@ -3,7 +3,7 @@ * \copyright GNU General Public License v3 * \brief Janus Duktape plugin extra hooks (headers) * \details The Janus Duktape plugin implements all the mandatory hooks to - * allow the C code to interact with a custom JavaScript script, and viceversa. + * allow the C code to interact with a custom JavaScript script, and vice-versa. * Anyway, JavaScript developers may want to have the C code do more than what * is provided out of the box, e.g., by exposing additional JavaScript methods * from C for further low level processing or native integration. This diff --git a/src/plugins/janus_lua_data.h b/src/plugins/janus_lua_data.h index c2d666ff99..2741035309 100644 --- a/src/plugins/janus_lua_data.h +++ b/src/plugins/janus_lua_data.h @@ -3,7 +3,7 @@ * \copyright GNU General Public License v3 * \brief Janus Lua data/session definition (headers) * \details The Janus Lua plugin implements all the mandatory hooks to - * allow the C code to interact with a custom Lua script, and viceversa. + * allow the C code to interact with a custom Lua script, and vice-versa. * That said, the janus_lua_extra.c code allows for custom hooks to be * added in C, to expose additional Lua functions and implement more * complex media management than the one provided by the stock plugin. diff --git a/src/plugins/janus_lua_extra.c b/src/plugins/janus_lua_extra.c index 988428ed8f..6e7a079d56 100644 --- a/src/plugins/janus_lua_extra.c +++ b/src/plugins/janus_lua_extra.c @@ -3,7 +3,7 @@ * \copyright GNU General Public License v3 * \brief Janus Lua plugin extra hooks * \details The Janus Lua plugin implements all the mandatory hooks to - * allow the C code to interact with a custom Lua script, and viceversa. + * allow the C code to interact with a custom Lua script, and vice-versa. * Anyway, Lua developers may want to have the C code do more than what * is provided out of the box, e.g., by exposing additional Lua methods * from C for further low level processing or native integration. This diff --git a/src/plugins/janus_lua_extra.h b/src/plugins/janus_lua_extra.h index bb3ddef0a7..a832b8eba7 100644 --- a/src/plugins/janus_lua_extra.h +++ b/src/plugins/janus_lua_extra.h @@ -3,7 +3,7 @@ * \copyright GNU General Public License v3 * \brief Janus Lua plugin extra hooks (headers) * \details The Janus Lua plugin implements all the mandatory hooks to - * allow the C code to interact with a custom Lua script, and viceversa. + * allow the C code to interact with a custom Lua script, and vice-versa. * Anyway, Lua developers may want to have the C code do more than what * is provided out of the box, e.g., by exposing additional Lua methods * from C for further low level processing or native integration. This diff --git a/src/plugins/janus_recordplay.c b/src/plugins/janus_recordplay.c index 6fd1086987..a099703f4c 100644 --- a/src/plugins/janus_recordplay.c +++ b/src/plugins/janus_recordplay.c @@ -2620,7 +2620,7 @@ janus_recordplay_frame_packet *janus_recordplay_get_frames(const char *dir, cons p->prev = tmp; break; } else if(tmp->seq > p->seq && (abs(tmp->seq - p->seq) > 10000)) { - /* The new sequence number (resetted) is greater than the last one we have, append */ + /* The new sequence number (reset) is greater than the last one we have, append */ added = 1; if(tmp->next != NULL) { /* We're inserting */ @@ -2635,7 +2635,7 @@ janus_recordplay_frame_packet *janus_recordplay_get_frames(const char *dir, cons break; } } - /* If either the timestamp ot the sequence number we just got is smaller, keep going back */ + /* If either the timestamp or the sequence number we just got is smaller, keep going back */ tmp = tmp->prev; } if(!added) { diff --git a/src/plugins/janus_sip.c b/src/plugins/janus_sip.c index 0ee79b0d65..80135ab24a 100644 --- a/src/plugins/janus_sip.c +++ b/src/plugins/janus_sip.c @@ -1532,7 +1532,7 @@ static void *janus_sip_relay_thread(void *data); static void janus_sip_media_cleanup(janus_sip_session *session); static void janus_sip_check_rfc2833(janus_sip_session *session, char *buffer, int len); -/* URI parsing utilies */ +/* URI parsing utilities */ #define JANUS_SIP_URI_MAXLEN 1024 typedef struct { @@ -5656,7 +5656,7 @@ void janus_sip_sofia_callback(nua_event_t event, int status, char const *phrase, if(status >= 200 && ssip != NULL) { /* Check if this session (and/or its helpers) had dangling * references for ongoing calls: we won't receive other events - * after this, so it's up to us to clean up after ourselfes */ + * after this, so it's up to us to clean up after ourselves */ janus_mutex_lock(&session->mutex); while(session->active_calls) { janus_sip_session *s = (janus_sip_session *)session->active_calls->data; @@ -5687,7 +5687,7 @@ void janus_sip_sofia_callback(nua_event_t event, int status, char const *phrase, break; case nua_r_message: JANUS_LOG(LOG_VERB, "[%s][%s]: %d %s\n", session->account.username, nua_event_name(event), status, phrase ? phrase : "??"); - /* Handle authetntication for SIP MESSAGE - eg. SippySoft Softswitch requires 401 authentication even if SIP user is registerered */ + /* Handle authentication for SIP MESSAGE - eg. SippySoft Softswitch requires 401 authentication even if SIP user is registered */ if(status == 401 || status == 407) { const char *scheme = NULL; const char *realm = NULL; diff --git a/src/plugins/janus_streaming.c b/src/plugins/janus_streaming.c index 23213f7972..684c75f1e9 100644 --- a/src/plugins/janus_streaming.c +++ b/src/plugins/janus_streaming.c @@ -88,7 +88,7 @@ audiopt =