mirror of https://github.com/mpv-player/mpv
Fix misspellings
This commit is contained in:
parent
24478a8a72
commit
c5094206ce
|
@ -123,7 +123,7 @@ options/options.h, options/options.c
|
||||||
parser-mpcmd.c, and uses the option table in options.c.
|
parser-mpcmd.c, and uses the option table in options.c.
|
||||||
|
|
||||||
input/input.c:
|
input/input.c:
|
||||||
This translates keyboard input comming from VOs and other sources (such
|
This translates keyboard input coming from VOs and other sources (such
|
||||||
as remote control devices like Apple IR or client API commands) to the
|
as remote control devices like Apple IR or client API commands) to the
|
||||||
key bindings listed in the user's (or the builtin) input.conf and turns
|
key bindings listed in the user's (or the builtin) input.conf and turns
|
||||||
them into items of type struct mp_cmd. These commands are queued, and read
|
them into items of type struct mp_cmd. These commands are queued, and read
|
||||||
|
|
|
@ -557,7 +557,7 @@ void af_destroy(struct af_stream *s)
|
||||||
format of the preferred output respectively. The function is
|
format of the preferred output respectively. The function is
|
||||||
reentrant i.e. if called with an already initialized stream the
|
reentrant i.e. if called with an already initialized stream the
|
||||||
stream will be reinitialized.
|
stream will be reinitialized.
|
||||||
If one of the prefered output parameters is 0 the one that needs
|
If one of the preferred output parameters is 0 the one that needs
|
||||||
no conversion is used (i.e. the output format in the last filter).
|
no conversion is used (i.e. the output format in the last filter).
|
||||||
The return value is 0 if success and -1 if failure */
|
The return value is 0 if success and -1 if failure */
|
||||||
int af_init(struct af_stream *s)
|
int af_init(struct af_stream *s)
|
||||||
|
|
|
@ -132,7 +132,7 @@ static bool thread_feed(struct ao *ao)
|
||||||
mp_time_us() + (int64_t)llrint(delay_us));
|
mp_time_us() + (int64_t)llrint(delay_us));
|
||||||
|
|
||||||
// note, we can't use ao_read_data return value here since we already
|
// note, we can't use ao_read_data return value here since we already
|
||||||
// commited to frame_count above in the GetBuffer call
|
// committed to frame_count above in the GetBuffer call
|
||||||
hr = IAudioRenderClient_ReleaseBuffer(state->pRenderClient,
|
hr = IAudioRenderClient_ReleaseBuffer(state->pRenderClient,
|
||||||
frame_count, 0);
|
frame_count, 0);
|
||||||
EXIT_ON_ERROR(hr);
|
EXIT_ON_ERROR(hr);
|
||||||
|
|
|
@ -95,7 +95,7 @@ static HRESULT STDMETHODCALLTYPE sIMMNotificationClient_OnDeviceAdded(
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
// maybe MPV can go over to the prefered device once it is plugged in?
|
// maybe MPV can go over to the preferred device once it is plugged in?
|
||||||
static HRESULT STDMETHODCALLTYPE sIMMNotificationClient_OnDeviceRemoved(
|
static HRESULT STDMETHODCALLTYPE sIMMNotificationClient_OnDeviceRemoved(
|
||||||
IMMNotificationClient *This,
|
IMMNotificationClient *This,
|
||||||
LPCWSTR pwstrDeviceId)
|
LPCWSTR pwstrDeviceId)
|
||||||
|
|
|
@ -116,7 +116,7 @@ int bstr_validate_utf8(struct bstr s);
|
||||||
// talloc, with talloc_ctx as parent.
|
// talloc, with talloc_ctx as parent.
|
||||||
struct bstr bstr_sanitize_utf8_latin1(void *talloc_ctx, struct bstr s);
|
struct bstr bstr_sanitize_utf8_latin1(void *talloc_ctx, struct bstr s);
|
||||||
|
|
||||||
// Return the text before the occurance of a character, and return it. Change
|
// Return the text before the occurrence of a character, and return it. Change
|
||||||
// *rest to point to the text following this character. (rest can be NULL.)
|
// *rest to point to the text following this character. (rest can be NULL.)
|
||||||
struct bstr bstr_splitchar(struct bstr str, struct bstr *rest, const char c);
|
struct bstr bstr_splitchar(struct bstr str, struct bstr *rest, const char c);
|
||||||
|
|
||||||
|
|
|
@ -394,7 +394,7 @@ struct m_option {
|
||||||
|
|
||||||
// Dynamic data type.
|
// Dynamic data type.
|
||||||
/** This flag indicates that the data is dynamically allocated (m_option::p
|
/** This flag indicates that the data is dynamically allocated (m_option::p
|
||||||
* points to a pointer). It enables a little hack in the \ref Config wich
|
* points to a pointer). It enables a little hack in the \ref Config which
|
||||||
* replaces the initial value of such variables with a dynamic copy in case
|
* replaces the initial value of such variables with a dynamic copy in case
|
||||||
* the initial value is statically allocated (pretty common with strings).
|
* the initial value is statically allocated (pretty common with strings).
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
kHIDRemoteModeNone = 0L,
|
kHIDRemoteModeNone = 0L,
|
||||||
kHIDRemoteModeShared, // Share the remote with others - let's you listen to the remote control events as long as noone has an exclusive lock on it
|
kHIDRemoteModeShared, // Share the remote with others - let's you listen to the remote control events as long as no one has an exclusive lock on it
|
||||||
// (RECOMMENDED ONLY FOR SPECIAL PURPOSES)
|
// (RECOMMENDED ONLY FOR SPECIAL PURPOSES)
|
||||||
|
|
||||||
kHIDRemoteModeExclusive, // Try to acquire an exclusive lock on the remote (NOT RECOMMENDED)
|
kHIDRemoteModeExclusive, // Try to acquire an exclusive lock on the remote (NOT RECOMMENDED)
|
||||||
|
@ -182,7 +182,7 @@ typedef enum
|
||||||
- (BOOL)hidRemote:(HIDRemote *)hidRemote // Invoked when new hardware is inspected
|
- (BOOL)hidRemote:(HIDRemote *)hidRemote // Invoked when new hardware is inspected
|
||||||
inspectNewHardwareWithService:(io_service_t)service //
|
inspectNewHardwareWithService:(io_service_t)service //
|
||||||
prematchResult:(BOOL)prematchResult; // Return YES if HIDRemote should go on with this hardware and try
|
prematchResult:(BOOL)prematchResult; // Return YES if HIDRemote should go on with this hardware and try
|
||||||
// to use it, or NO if it should not be persued further.
|
// to use it, or NO if it should not be pursued further.
|
||||||
|
|
||||||
// Exlusive lock lending
|
// Exlusive lock lending
|
||||||
- (BOOL)hidRemote:(HIDRemote *)hidRemote
|
- (BOOL)hidRemote:(HIDRemote *)hidRemote
|
||||||
|
|
|
@ -293,7 +293,7 @@ static HIDRemote *sHIDRemote = nil;
|
||||||
|
|
||||||
}while(0);
|
}while(0);
|
||||||
|
|
||||||
// An error occured. Do necessary clean up.
|
// An error occurred. Do necessary clean up.
|
||||||
if (matchDict!=NULL)
|
if (matchDict!=NULL)
|
||||||
{
|
{
|
||||||
CFRelease(matchDict);
|
CFRelease(matchDict);
|
||||||
|
@ -1422,7 +1422,7 @@ static HIDRemote *sHIDRemote = nil;
|
||||||
[((NSObject <HIDRemoteDelegate> *)[self delegate]) hidRemote:self failedNewHardwareWithError:error];
|
[((NSObject <HIDRemoteDelegate> *)[self delegate]) hidRemote:self failedNewHardwareWithError:error];
|
||||||
}
|
}
|
||||||
|
|
||||||
// An error occured or this device is not of interest .. cleanup ..
|
// An error occurred or this device is not of interest .. cleanup ..
|
||||||
if (serviceNotification!=0)
|
if (serviceNotification!=0)
|
||||||
{
|
{
|
||||||
IOObjectRelease(serviceNotification);
|
IOObjectRelease(serviceNotification);
|
||||||
|
@ -1615,7 +1615,7 @@ static HIDRemote *sHIDRemote = nil;
|
||||||
switch (buttonCode)
|
switch (buttonCode)
|
||||||
{
|
{
|
||||||
case kHIDRemoteButtonCodeIDChanged:
|
case kHIDRemoteButtonCodeIDChanged:
|
||||||
// Do nothing, this is handled seperately
|
// Do nothing, this is handled separately
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kHIDRemoteButtonCodeUp:
|
case kHIDRemoteButtonCodeUp:
|
||||||
|
|
|
@ -1352,7 +1352,7 @@ static int start(priv_t *priv)
|
||||||
if (priv->map[i].buf.flags & V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC)
|
if (priv->map[i].buf.flags & V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC)
|
||||||
MP_WARN(priv, "compiled without clock_gettime() that is needed to handle monotone video timestamps from the kernel. Expect desync.\n");
|
MP_WARN(priv, "compiled without clock_gettime() that is needed to handle monotone video timestamps from the kernel. Expect desync.\n");
|
||||||
#endif
|
#endif
|
||||||
/* count up to make sure this is correct everytime */
|
/* count up to make sure this is correct every time */
|
||||||
priv->mapcount++;
|
priv->mapcount++;
|
||||||
|
|
||||||
if (v4l2_ioctl(priv->video_fd, VIDIOC_QBUF, &(priv->map[i].buf)) < 0) {
|
if (v4l2_ioctl(priv->video_fd, VIDIOC_QBUF, &(priv->map[i].buf)) < 0) {
|
||||||
|
|
|
@ -68,7 +68,7 @@ struct d3dva_mode {
|
||||||
|
|
||||||
#define MODE2(id) &MP_CONCAT(DXVA2_Mode, id), # id
|
#define MODE2(id) &MP_CONCAT(DXVA2_Mode, id), # id
|
||||||
#define MODE(id) &MP_CONCAT(DXVA_, id), # id
|
#define MODE(id) &MP_CONCAT(DXVA_, id), # id
|
||||||
// Prefered modes must come first
|
// Preferred modes must come first
|
||||||
static const struct d3dva_mode d3dva_modes[] = {
|
static const struct d3dva_mode d3dva_modes[] = {
|
||||||
// MPEG-1/2
|
// MPEG-1/2
|
||||||
{MODE2(MPEG2_VLD), AV_CODEC_ID_MPEG2VIDEO, PROF_MPEG2_MAIN},
|
{MODE2(MPEG2_VLD), AV_CODEC_ID_MPEG2VIDEO, PROF_MPEG2_MAIN},
|
||||||
|
|
|
@ -83,7 +83,7 @@ void *gpu_memcpy(void *restrict d, const void *restrict s, size_t size)
|
||||||
xmm15 = _mm_stream_load_si128(pSrc + 15);
|
xmm15 = _mm_stream_load_si128(pSrc + 15);
|
||||||
#endif
|
#endif
|
||||||
pSrc += regsInLoop;
|
pSrc += regsInLoop;
|
||||||
// _mm_store_si128 emit the SSE2 intruction MOVDQA (aligned store)
|
// _mm_store_si128 emit the SSE2 instruction MOVDQA (aligned store)
|
||||||
_mm_store_si128(pTrg , xmm0);
|
_mm_store_si128(pTrg , xmm0);
|
||||||
_mm_store_si128(pTrg + 1, xmm1);
|
_mm_store_si128(pTrg + 1, xmm1);
|
||||||
_mm_store_si128(pTrg + 2, xmm2);
|
_mm_store_si128(pTrg + 2, xmm2);
|
||||||
|
|
|
@ -2564,7 +2564,7 @@ static void gl_video_interpolate_frame(struct gl_video *p, struct vo_frame *t,
|
||||||
if (t->still)
|
if (t->still)
|
||||||
gl_video_reset_surfaces(p);
|
gl_video_reset_surfaces(p);
|
||||||
|
|
||||||
// First of all, figure out if we have a frame availble at all, and draw
|
// First of all, figure out if we have a frame available at all, and draw
|
||||||
// it manually + reset the queue if not
|
// it manually + reset the queue if not
|
||||||
if (p->surfaces[p->surface_now].pts == MP_NOPTS_VALUE) {
|
if (p->surfaces[p->surface_now].pts == MP_NOPTS_VALUE) {
|
||||||
if (!gl_video_upload_image(p, t->current))
|
if (!gl_video_upload_image(p, t->current))
|
||||||
|
|
|
@ -822,7 +822,7 @@ static bool resize_d3d(d3d_priv *priv)
|
||||||
MP_VERBOSE(priv, "resize_d3d %dx%d called.\n",
|
MP_VERBOSE(priv, "resize_d3d %dx%d called.\n",
|
||||||
priv->vo->dwidth, priv->vo->dheight);
|
priv->vo->dwidth, priv->vo->dheight);
|
||||||
|
|
||||||
/* Make sure that backbuffer is large enough to accomodate the new
|
/* Make sure that backbuffer is large enough to accommodate the new
|
||||||
viewport dimensions. Grow it if necessary. */
|
viewport dimensions. Grow it if necessary. */
|
||||||
|
|
||||||
bool backbuf_resize = priv->vo->dwidth > priv->cur_backbuf_width ||
|
bool backbuf_resize = priv->vo->dwidth > priv->cur_backbuf_width ||
|
||||||
|
|
|
@ -1182,7 +1182,7 @@ static void gui_thread_reconfig(void *ptr)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Recenter window around old position on new video size
|
// Recenter window around old position on new video size
|
||||||
// excluding the case when initial positon handled by win_state.
|
// excluding the case when initial position handled by win_state.
|
||||||
if (!pos_init) {
|
if (!pos_init) {
|
||||||
w32->window_x += w32->dw / 2 - vo->dwidth / 2;
|
w32->window_x += w32->dw / 2 - vo->dwidth / 2;
|
||||||
w32->window_y += w32->dh / 2 - vo->dheight / 2;
|
w32->window_y += w32->dh / 2 - vo->dheight / 2;
|
||||||
|
|
Loading…
Reference in New Issue