Commit 6b7a57f9 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Rémi Denis-Courmont
Browse files

modules: fix typos

Typos found and reworked from codespell.
parent b9a27057
......@@ -1669,7 +1669,7 @@ static void subpictureUpdaterUpdate(subpicture_t *p_subpic,
/*
* When this function is called, all p_subpic regions are gone.
* We need to duplicate our regions (stored internaly) to this subpic.
* We need to duplicate our regions (stored internally) to this subpic.
*/
subpicture_region_t *p_src = p_overlay->p_regions;
if (!p_src) {
......
......@@ -996,7 +996,7 @@ static void Close(vlc_object_t *obj)
}
/*****************************************************************************
* Module descriptior
* Module descriptor
*****************************************************************************/
#define CDAUDIO_DEV_TEXT N_("Audio CD device")
#if defined( _WIN32 ) || defined( __OS2__ )
......
......@@ -612,7 +612,7 @@ static int Demux( demux_t *p_demux )
PCM::FrameBuffer AudioFrameBuff( p_sys->i_audio_buffer);
AESDecContext video_aes_ctx, audio_aes_ctx;
/* swaping video reels */
/* swapping video reels */
if ( p_sys->frame_no == p_sys->p_dcp->video_reels[p_sys->i_video_reel].i_absolute_end )
{
if ( p_sys->i_video_reel + 1 == p_sys->v_videoReader.size() )
......@@ -625,7 +625,7 @@ static int Demux( demux_t *p_demux )
}
}
/* swaping audio reels */
/* swapping audio reels */
if ( !p_sys->p_dcp->audio_reels.empty() && p_sys->frame_no == p_sys->p_dcp->audio_reels[p_sys->i_audio_reel].i_absolute_end )
{
if ( p_sys->i_audio_reel + 1 == p_sys->v_audioReader.size() )
......
......@@ -558,7 +558,7 @@ int Asset::ParsePKL( xml_reader_t *p_xmlReader)
/* Asset tags not in PKL */
break;
default:
msg_Warn(this->p_demux, "Unknow ASSET_TAG: %i", _tag );
msg_Warn(this->p_demux, "Unknown ASSET_TAG: %i", _tag );
break;
}
/* break the for loop as a tag is found*/
......@@ -919,7 +919,7 @@ int PKL::Parse()
this->s_group_id = s_value;
break;
default:
msg_Warn(this->p_demux, "Unknow PKG_TAG: %i", _tag );
msg_Warn(this->p_demux, "Unknown PKG_TAG: %i", _tag );
break;
}
/* break the for loop as a tag is found*/
......@@ -1421,7 +1421,7 @@ int CPL::Parse()
this->s_content_kind = s_value;
break;
default:
msg_Warn(this->p_demux, "Unknow CPL_TAG: %i", _tag );
msg_Warn(this->p_demux, "Unknown CPL_TAG: %i", _tag );
break;
}
......
......@@ -51,7 +51,7 @@ inline static int DiscProbeMacOSPermission( vlc_object_t *p_this, const char *ps
int retVal = access( psz_file, R_OK );
if( retVal == -1 && errno == EPERM )
{
msg_Err( p_this, "Path %s cannot be opened due to unsufficient permissions", psz_file );
msg_Err( p_this, "Path %s cannot be opened due to insufficient permissions", psz_file );
vlc_dialog_display_error( p_this, _("Problem accessing a system resource"),
_("Potentially, macOS blocks access to your disc. "
"Please open \"System Preferences\" -> \"Security & Privacy\" "
......
......@@ -940,7 +940,7 @@ static bool ConnectFilters( vlc_object_t *p_this, access_sys_t *p_sys,
}
/*
* get fourcc priority from arbritary preference, the higher the better
* get fourcc priority from arbitrary preference, the higher the better
*/
static int GetFourCCPriority( int i_fourcc )
{
......@@ -1053,7 +1053,7 @@ static int OpenDevice( vlc_object_t *p_this, access_sys_t *p_sys,
}
}
// Retreive acceptable media types supported by device
// Retrieve acceptable media types supported by device
AM_MEDIA_TYPE media_types[MAX_MEDIA_TYPES];
size_t media_count =
EnumDeviceCaps( p_this, p_device_filter.Get(), b_audio ? 0 : p_sys->i_chroma,
......@@ -1200,7 +1200,7 @@ static int OpenDevice( vlc_object_t *p_this, access_sys_t *p_sys,
/* FindCaptureDevices:: This Function had two purposes :
Returns the list of capture devices when p_listdevices != NULL
Creates an IBaseFilter when p_devicename corresponds to an existing devname
These actions *may* be requested whith a single call.
These actions *may* be requested with a single call.
*/
static ComPtr<IBaseFilter>
FindCaptureDevice( vlc_object_t *p_this, std::string *p_devicename,
......@@ -1277,7 +1277,7 @@ FindCaptureDevice( vlc_object_t *p_this, std::string *p_devicename,
{
if( 0 == (*iter).compare( devname ) )
{ /* devname is on the list. Try another name with sequence
number apended and then rescan until a unique entry is found*/
number appended and then rescan until a unique entry is found*/
char seq[16];
snprintf(seq, 16, " #%d", ++dup);
devname = ordevname + seq;
......
......@@ -259,7 +259,7 @@ HRESULT CapturePin::CustomGetSamples( std::deque<VLCMediaSample> &external_queue
* Returns a sample from its sample queue. Proper locking must be done prior
* to this call. Current dshow code protects the access to any sample queue
* (audio and video) with the p_sys->lock
* @param vlc_sample [out] Address of a sample if sucessfull. Undefined
* @param vlc_sample [out] Address of a sample if successful. Undefined
* otherwise.
* @return S_OK if a sample was available, S_FALSE if no sample was
* available
......
......@@ -409,7 +409,7 @@ static int ScanParametersDvbC( vlc_object_t *p_access, dvb_sys_t *p_sys, scan_pa
/* if frontend can do auto, don't scan them */
p_scan->b_modulation_set = ( p_frontend->info.caps & FE_CAN_QAM_AUTO );
/* our scanning code flips modulation from 16..256 automaticly*/
/* our scanning code flips modulation from 16..256 automatically*/
/* if user supplies symbolrate, don't scan those */
p_scan->i_symbolrate = var_GetInteger( p_access, "dvb-srate" );
......
......@@ -88,7 +88,7 @@ struct scan_service_t
char *psz_name; /* channel name in utf8 */
char *psz_provider; /* service provider */
uint16_t i_channel; /* logical channel number */
bool b_crypted; /* True if potentially crypted */
bool b_crypted; /* True if potentially encrypted */
char *psz_original_network_name;
......@@ -563,7 +563,7 @@ static int Scan_Next_DVBC( const scan_parameter_t *p_params, scan_enumeration_t
static const unsigned short symbolrates[] = {
6900, 6875, 6950
/* With DR_44 we can cover other symbolrates from NIT-info
as all channel-seed files have atleast one channel that
as all channel-seed files have at least one channel that
has one of these symbolrate
*/
};
......
......@@ -33,7 +33,7 @@
#include "hpack.h"
/*
* This is curently the simplest possible HPACK compressor: it does not
* This is currently the simplest possible HPACK compressor: it does not
* compress anything and is stateless.
* TODO:
* - use static Huffman compression when useful,
......
......@@ -228,7 +228,7 @@ const char *vlc_http_msg_get_path(const struct vlc_http_msg *);
/**
* Looks up a token in a header field.
*
* Finds the first occurence of a token within a HTTP field header.
* Finds the first occurrence of a token within a HTTP field header.
*
* @param field HTTP header field name
* @param token HTTP token name
......
......@@ -37,7 +37,7 @@
#include <vlc_charset.h>
/*****************************************************************************
* Module descriptior
* Module descriptor
*****************************************************************************/
static int OpenAccess (vlc_object_t *);
static void CloseAccess(vlc_object_t *);
......@@ -356,7 +356,7 @@ static int ControlAccess(stream_t *access, int i_query, va_list args)
}
/**
* It retreives data using the get() callback, copies them,
* It retrieves data using the get() callback, copies them,
* and then release them using the release() callback.
*/
static block_t *Block(stream_t *access, bool *restrict eof)
......@@ -557,7 +557,7 @@ static int ControlDemux(demux_t *demux, int i_query, va_list args)
}
/**
* It retreives data using the get() callback, sends them to es_out
* It retrieves data using the get() callback, sends them to es_out
* and the release it using the release() callback.
*/
static int Demux(demux_t *demux)
......
......@@ -195,7 +195,7 @@ static int Open( vlc_object_t *p_this )
}
/* allocate ringbuffer */
/* The length of the ringbuffer is critical, it must be large enought
/* The length of the ringbuffer is critical, it must be large enough
to keep all data between 2 GrabJack() calls. We assume 1 sec is ok */
p_sys->p_jack_ringbuffer = jack_ringbuffer_create( p_sys->i_channels
* jack_get_sample_rate( p_sys->p_jack_client )
......
......@@ -1283,7 +1283,7 @@ static void HandleAudioConfig( demux_t *p_demux, const uint16_t *p_anc,
p_audio->i_delay = i_tmp;
}
if ( p_anc[13] & 0x1 )
msg_Warn( p_demux, "asymetric audio is not supported" );
msg_Warn( p_demux, "asymmetric audio is not supported" );
}
else
{
......@@ -1299,7 +1299,7 @@ static void HandleAudioConfig( demux_t *p_demux, const uint16_t *p_anc,
p_audio->i_delay = i_tmp;
}
if ( p_anc[10] & 0x1 )
msg_Warn( p_demux, "asymetric audio is not supported" );
msg_Warn( p_demux, "asymmetric audio is not supported" );
}
switch ( i_rate )
......
......@@ -88,7 +88,7 @@ static void dtsgen_Resync(struct dtsgen_t *d)
* While receiving the N first packets (N>max reorder):
* - check if it needs reorder, or increase depth
* - create slow increments in DTS while taking any frame as a start,
* substracting the total difference between first and last packet,
* subtracting the total difference between first and last packet,
* and removing the possible offset after reorder,
* divided by max possible frames.
*
......
......@@ -447,7 +447,7 @@ static int Reset( stream_t *p_access )
var_InheritBool( p_access, "audio" ),
var_InheritBool( p_access, "video" ) );
/* Check we have comptible asfh */
/* Check we have compatible asfh */
for( i = 1; i < 128; i++ )
{
asf_stream_t *p_old = &old_asfh.stream[i];
......
......@@ -66,7 +66,7 @@ typedef struct
int i_packet_seq_num;
uint8_t *p_cmd; /* latest command read */
size_t i_cmd; /* allocated at the begining */
size_t i_cmd; /* allocated at the beginning */
uint8_t *p_header; /* allocated by mms_ReadPacket */
size_t i_header;
......
......@@ -53,7 +53,7 @@
#include <poll.h>
/*****************************************************************************
* Module descriptior
* Module descriptor
*****************************************************************************/
static int DemuxOpen ( vlc_object_t * );
......
......@@ -410,7 +410,7 @@ bool rtp_dequeue (demux_t *demux, const rtp_session_t *session,
if (deadline < VLC_TICK_FROM_MS(25))
deadline = VLC_TICK_FROM_MS(25);
/* Additionnaly, we implicitly wait for the packetization time
/* Additionally, we implicitly wait for the packetization time
* multiplied by the number of missing packets. block is the first
* non-missing packet (lowest sequence number). We have no better
* estimated time of arrival, as we do not know the RTP timestamp
......
......@@ -124,7 +124,7 @@ static int proto_create (srtp_proto_t *p, int gcipher, int gmd)
* multiple simultaneous sessions with the same master key.
*
* @param encr encryption algorithm number
* @param auth authentication algortihm number
* @param auth authentication algorithm number
* @param tag_len authentication tag byte length (NOT including RCC)
* @param flags OR'ed optional flags.
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment