#ifdef BUILD_DBG
-// RunDll exports are __stdcall, we dont care about that for this debug export, rundll32.exe is able to handle this mistake
+// RunDll exports are __stdcall, we don't care about that for this debug export, rundll32.exe is able to handle this mistake
extern "C" void __declspec(dllexport) __cdecl DBGRDMyRunAs(HWND hwnd,HINSTANCE hinst,LPTSTR lpCmdLine,int nCmdShow) {
SHELLEXECUTEINFO sei={sizeof(sei)};
sei.lpFile=_T("Notepad.exe");//sei.lpParameters=_T("param1");
* Save the meta previously set
*
* \param p_md the media desriptor
- * \return true if the write operation was successfull
+ * \return true if the write operation was successful
*/
LIBVLC_API int libvlc_media_save_meta( libvlc_media_t *p_md );
int i_profile; /**< codec specific information (like real audio flavor, mpeg audio layer, h264 profile ...) */
int i_level; /**< codec specific information: indicates maximum restrictions on the stream (resolution, bitrate, codec features ...) */
- bool b_packetized; /**< wether the data is packetized (ie. not truncated) */
+ bool b_packetized; /**< whether the data is packetized (ie. not truncated) */
int i_extra; /**< length in bytes of extra data pointer */
void *p_extra; /**< extra data needed by some decoders or muxers */
* @param p_sql The SQL object
* @param p_fmt SQL query string
* @param i_length length of the string. If negative, length will be
- * considered upto the first \0 character equivalent to strlen(p_fmt).
+ * considered up to the first \0 character equivalent to strlen(p_fmt).
* Otherwise the first i_length bytes will be used
* @return a sql_stmt_t pointer or NULL on failure
*/
* @param p_stmt Statement Object
* @param i_pos Position at which the parameter should be bound
* @param p_fmt Value to be bound
- * @param i_length Length of text. If -ve text upto the first null char
+ * @param i_length Length of text. If -ve text up to the first null char
* will be selected.
* @return VLC_SUCCESS or VLC_EGENERIC
*/
? p_frontend->info.frequency_stepsize : 166667;
p_scan->frequency.i_count = (p_scan->frequency.i_max-p_scan->frequency.i_min)/p_scan->frequency.i_step;
- /* if user supplies modulation or frontend can do auto, dont scan them */
+ /* if user supplies modulation or frontend can do auto, don't scan them */
if( var_GetInteger( p_access, "dvb-modulation" ) ||
p_frontend->info.caps & FE_CAN_QAM_AUTO )
{
change_integer_range(-1, 4);
/* advanced option only */
- /* NB, unforunately vlc doesn't have a concept of 'dont care' */
+ /* NB, unforunately vlc doesn't have a concept of 'don't care' */
add_integer( ENC_CFG_PREFIX ENC_MULTIQUANT, -1,
ENC_MULTIQUANT_TEXT, ENC_MULTIQUANT_LONGTEXT, true )
change_integer_range(-1, 1);
/* advanced option only */
- /* NB, unforunately vlc doesn't have a concept of 'dont care' */
+ /* NB, unforunately vlc doesn't have a concept of 'don't care' */
add_integer( ENC_CFG_PREFIX ENC_SPARTITION, -1,
ENC_SPARTITION_TEXT, ENC_SPARTITION_LONGTEXT, true )
change_integer_range(-1, 1);
OMX_U32 nAudioBandWidth; /**< Audio band width (in Hz) to which an encoder should\r
limit the audio signal. Use 0 to let encoder decide */\r
OMX_S32 nQuality; /**< Sets encoding quality to n, between -1 (low) and 10 (high).\r
- In the default mode of operation, teh quality level is 3.\r
+ In the default mode of operation, the quality level is 3.\r
Normal quality range is 0 - 10. */\r
OMX_BOOL bManaged; /**< Set bitrate management mode. This turns off the\r
normal VBR encoding, but allows hard or soft bitrate\r
a new file could start anytime */
#define CHUNKF_ABORT 0x0020ul /* Encoder should not finish this
chunk */
-#define CHUNKF_ERROR (~0ul ^ (~0ul >> 1)) /* An error has occured
+#define CHUNKF_ERROR (~0ul ^ (~0ul >> 1)) /* An error has occurred
(passed to/from encoder). Use the
sign bit to check (long)flags < 0. */
#define CHUNKF_ALLFLAGS (0x0033ul | CHUNKF_ERROR)
ix[i] = int2idx[(xr[i] * s + 0x8000) >> 16];
}
else
- { /* check each index wether it fits the table */
+ { /* check each index whether it fits the table */
for(i=SAMPL2; i--; )
{
idx = (xr[i] * s + 0x08000) >> 16;
/**
* skips the given number of bits.
- * must only be used if the actual values in the bitstream dont matter
+ * must only be used if the actual values in the bitstream do not matter
*/
static inline void skip_put_bits(PutBitContext *s, int n){
#ifdef ALT_BITSTREAM_WRITER
void AddCommand( const KaxChapterProcessCommand & command );
- /// \return wether the codec has seeked in the files or not
+ /// \return whether the codec has seeked in the files or not
virtual bool Enter() { return false; }
virtual bool Leave() { return false; }
virtual std::string GetCodecName( bool ) const { return ""; }
// DVD command IDs
// Tests
- // wether it's a comparison on the value or register
+ // whether it's a comparison on the value or register
static const uint16 CMD_DVD_TEST_VALUE = 0x80;
static const uint16 CMD_DVD_IF_GPREG_AND = (1 << 4);
static const uint16 CMD_DVD_IF_GPREG_EQUAL = (2 << 4);
if (!s_filename.compare(s_filename.length() - 3, 3, "mkv") ||
!s_filename.compare(s_filename.length() - 3, 3, "mka"))
{
- // test wether this file belongs to our family
+ // test whether this file belongs to our family
const uint8_t *p_peek;
bool file_ok = false;
std::string s_url = make_URI( s_filename.c_str(), "file" );
return VLC_SUCCESS;
error:
- msg_Err (demux, "An error occured during sid demuxing" );
+ msg_Err (demux, "An error occurred during sid demuxing" );
delete player;
delete builder;
delete tune;
/* *** fix order (to be sure...) *** */
/* We suppose that there are near in order and this durty bubble sort
- * wont take too much time
+ * would not take too much time
*/
do
{
return VLC_SUCCESS;
error:
- msg_Err( p_demux, "An error occured during wav demuxing" );
+ msg_Err( p_demux, "An error occurred during wav demuxing" );
free( p_wf );
free( p_sys );
return VLC_EGENERIC;
- (void)resetPreviousButton
{
if (([NSDate timeIntervalSinceReferenceDate] - last_bwd_event) >= 0.35) {
- // seems like no further event occured, so let's switch the playback item
+ // seems like no further event occurred, so let's switch the playback item
[[VLCCoreInteraction sharedInstance] previous];
just_triggered_previous = NO;
}
- (void)resetNextButton
{
if (([NSDate timeIntervalSinceReferenceDate] - last_fwd_event) >= 0.35) {
- // seems like no further event occured, so let's switch the playback item
+ // seems like no further event occurred, so let's switch the playback item
[[VLCCoreInteraction sharedInstance] next];
just_triggered_next = NO;
}
QTextEdit *messages = ui.messages;
/* Only scroll if the viewport is at the end.
- Don't bug user by auto-changing/loosing viewport on insert(). */
+ Don't bug user by auto-changing/losing viewport on insert(). */
bool b_autoscroll = ( messages->verticalScrollBar()->value()
+ messages->verticalScrollBar()->pageStep()
>= messages->verticalScrollBar()->maximum() );
int i_ret = run(p_this, psz_filename, L, "read_meta");
lua_close( L );
- // Continue even if an error occured: all "meta reader" are always run.
+ // Continue even if an error occurred: all "meta reader" are always run.
return i_ret == VLC_SUCCESS ? VLC_EGENERIC : i_ret;
}
}
/**
- * @brief Update informations in the DB for an input item
+ * @brief Update information in the DB for an input item
*
* @param p_ml this media library instance
* @param i_media_id may be 0 (but not recommended)
psz_dir );
if( i_ret != VLC_SUCCESS )
{
- msg_Err( p_ml, "Error occured while making a query to the database" );
+ msg_Err( p_ml, "Error occurred while making a query to the database" );
return i_ret;
}
QuerySimple( p_ml, "DELETE FROM directories WHERE uri LIKE '%q%%'",
psz_dir );
if( i_ret != VLC_SUCCESS )
{
- msg_Err( p_ml, "Error occured while making a query to the database" );
+ msg_Err( p_ml, "Error occurred while making a query to the database" );
return i_ret;
}
QuerySimple( p_ml, "DELETE FROM directories WHERE uri = %Q",
if( Query( p_ml, &pp_results, &i_rows, &i_cols, "%s", psz_query )
!= VLC_SUCCESS )
{
- msg_Err( p_ml, "Error occured while making the query to the database" );
+ msg_Err( p_ml, "Error occurred while making the query to the database" );
return VLC_EGENERIC;
}
if( Query( p_ml, &pp_results, &i_rows, &i_cols, "%s", psz_query )
!= VLC_SUCCESS )
{
- msg_Err( p_ml, "Error occured while making the query to the database" );
+ msg_Err( p_ml, "Error occurred while making the query to the database" );
return VLC_EGENERIC;
}
free( ppsz_frompersons );
if( i_ret != VLC_SUCCESS )
- msg_Warn( p_ml, "an unknown error occured (%d)", i_ret );
+ msg_Warn( p_ml, "an unknown error occurred (%d)", i_ret );
return i_ret;
}
return;
case VLC_SUCCESS:
- msg_Dbg(p_intf, "Handshake successfull :)");
+ msg_Dbg(p_intf, "Handshake successful :)");
b_handshaked = true;
i_interval = 0;
next_exchange = mdate();
#undef HAVE_MMX1
#if defined(HAVE_MMX) && !defined(HAVE_MMX2) && !defined(HAVE_3DNOW) && !defined(HAVE_SSE)
/* means: mmx v.1. Note: Since we added alignment of destinition it speedups
- of memory copying on PentMMX, Celeron-1 and P2 upto 12% versus
+ of memory copying on PentMMX, Celeron-1 and P2 up to 12% versus
standard (non MMX-optimized) version.
- Note: on K6-2+ it speedups memory copying upto 25% and
+ Note: on K6-2+ it speedups memory copying up to 25% and
on K7 and P3 about 500% (5 times). */
#define HAVE_MMX1
#endif
/**
* Destructively find and recover the earliest timestamp from start of
- * bytestream, upto i_length.
+ * bytestream, up to i_length.
*/
static void dirac_RecoverTimestamps ( decoder_t *p_dec, size_t i_length )
{
uint32_t u_video_format = dirac_uint( &bs ); /* index */
if( u_video_format > 20 )
{
- /* dont know how to parse this header */
+ /* don't know how to parse this header */
return false;
}
/* recover any timestamps from the data that is about to be flushed */
dirac_RecoverTimestamps( p_dec, p_sys->i_offset );
- /* flush everything upto the start of the DU */
+ /* flush everything up to the start of the DU */
block_SkipBytes( &p_sys->bytestream, p_sys->i_offset );
block_BytestreamFlush( &p_sys->bytestream );
p_sys->i_offset = 0;
*
* Returns:
* 0: everything ok
- * 1: EOS occured, please flush and reset
+ * 1: EOS occurred, please flush and reset
* 2: picture number discontinuity, please flush and reset
*/
static int dirac_TimeGenPush( decoder_t *p_dec, block_t *p_block_in )
/*
def sync(addr = 0)
- 1.upto(15) do
+ 1.up to(15) do
$dev.write "\e"
end
$dev.write addr.chr
/* these two ugly loops extract the small image - goes it faster? how?
the loops are so designed that there is a small border around the extracted
- image so we wont get column and row - zero from the frame, and not the most
+ image so we won't get column and row - zero from the frame, and not the most
right and bottom pixels --- which may be clipped on computers useing TV out
- through overscan!
{
//rgb2 gives 3 separate planes, this gives 1 interleaved plane
//rv24 gives is about 20% faster but gives r&b the wrong way round
- //and I cant think of an easy way to fix this
+ //and I can't think of an easy way to fix this
fmt_out.i_chroma = VLC_CODEC_RGB32;
}
else if (p_sys->i_internal_chroma == GREY)
if( !handshaking ( p_filter ) )
{
- msg_Err( p_filter, "Error occured while handshaking vnc host" );
+ msg_Err( p_filter, "Error occurred while handshaking vnc host" );
goto exit;
}
* with the associated window (hvideownd)
*
* For directx, it is still important to call UpdateRects
- * on a move of the parent window, even if no resize occured
+ * on a move of the parent window, even if no resize occurred
*/
SetWindowPos(sys->hwnd, 0, 0, 0,
rect_parent.right - rect_parent.left,
VLCMediaStateNothingSpecial, //< Nothing
VLCMediaStateBuffering, //< Stream is buffering
VLCMediaStatePlaying, //< Stream is playing
- VLCMediaStateError, //< Can't be played because an error occured
+ VLCMediaStateError, //< Can't be played because an error occurred
} VLCMediaState;
/**
if( psz_file == NULL )
return VLC_ENOMEM;
- /* loosy check for media library file */
+ /* lousy check for media library file */
struct stat st;
if( vlc_stat( psz_file, &st ) )
{
psz_arturl = input_item_GetArtURL( p_input );
psz_name = input_item_GetName( p_input );
- /* p_input->p_meta should not be null after a successfull CreateThread */
+ /* p_input->p_meta should not be null after a successful CreateThread */
b_has_art = !EMPTY_STR( psz_arturl );
if( !b_has_art || strncmp( psz_arturl, "attachment://", 13 ) )
Decodes a duration as defined by ISO 8601
http://en.wikipedia.org/wiki/ISO_8601#Durations
@param str A null-terminated string to convert
- @return: The duration in seconds. -1 if an error occured.
+ @return: The duration in seconds. -1 if an error occurred.
Exemple input string: "PT0H9M56.46S"
*/