Skip to content

Commit

Permalink
various: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 authored and jeeb committed Jan 4, 2025
1 parent efcee92 commit 59d1dc4
Show file tree
Hide file tree
Showing 41 changed files with 87 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/2_bug_report_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ body:
attributes:
label: "Other Information"
description: >
Provide follwing information if applicable.
Provide following information if applicable.
- Linux Version: `cat /etc/os-release | grep "NAME"`
- Kernel Version: `uname -a`
- GPU Model: `lspci -nn | grep VGA` or `lshw -C display -numeric`
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/2_bug_report_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ body:
save the terminal output to a file, and attach it to the issue.
In the case of a crash, please provide a backtrace, attach the approriate `.dmp` file
In the case of a crash, please provide a backtrace, attach the appropriate `.dmp` file
from `%LOCALAPPDATA%\CrashDumps`.
Expand Down
2 changes: 1 addition & 1 deletion DOCS/client-api-changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ API changes
TRACK_SWITCHED, METADATA_UPDATE, CHAPTER_CHANGE events
--- mpv 0.33.0 ---
1.109 - add MPV_RENDER_API_TYPE_SW and related (software rendering API)
- inactivate the opengl_cb API (always fails to initialize now)
- deactivate the opengl_cb API (always fails to initialize now)
The opengl_cb API was deprecated over 2 years ago. Use the render API
instead.
1.108 - Deprecate MPV_EVENT_IDLE
Expand Down
8 changes: 4 additions & 4 deletions DOCS/interface-changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@ Interface changes
- `--save-position-on-quit` and its associated commands now store state files in
the XDG_STATE_HOME directory by default. This only has an effect on linux/bsd
systems.
- mpv now implictly saves cache files in XDG_CACHE_HOME by default. This only has
- mpv now implicitly saves cache files in XDG_CACHE_HOME by default. This only has
an effect if the user enables options that would lead to cache being stored and
only makes a difference on linux/bsd systems.
- `--cache-on-disk` no longer requires explictly setting the `--cache-dir` option
- `--cache-on-disk` no longer requires explicitly setting the `--cache-dir` option
- add `--icc-cache` and `--gpu-shader-cache` options to control whether or not to
save cache files for these features; explictly setting `--icc-cache-dir` and
save cache files for these features; explicitly setting `--icc-cache-dir` and
`--gpu-shader-cache` is no longer required
- remove the `--tone-mapping-crosstalk` option
- add `--gamut-mapping-mode=perceptual|relative|saturation|absolute|linear`
Expand Down Expand Up @@ -461,7 +461,7 @@ Interface changes
- deprecate --input-file (there are no plans to remove this short-term,
but it will probably eventually go away <- that was a lie)
- deprecate --video-sync=display-adrop (might be removed if it's in the way;
undeprecated or readded if it's not too much of a problem)
undeprecated or re-added if it's not too much of a problem)
- deprecate all input section commands (these will be changed/removed, as
soon as mpv internals do not require them anymore)
- remove deprecated --playlist-pos alias (use --playlist-start)
Expand Down
22 changes: 11 additions & 11 deletions DOCS/man/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ Playback Control

Known problems:

- It's fragile. If anything doesn't work, random non-useful behavior may
occur. In simple cases, the player will just play nonsense and artifacts.
- It's fragile. If anything doesn't work, random behavior may occur.
In simple cases, the player will just play nonsense and artifacts.
In other cases, it may get stuck or heat the CPU. (Exceeding memory usage
significantly beyond the user-set limits would be a bug, though.)

Expand Down Expand Up @@ -988,7 +988,7 @@ Program Behavior
Add thumbnails as video tracks (default: none).

Thumbnails get downloaded when they are added as tracks, so 'all' can
have a noticable impact on how long it takes to open the video when
have a noticeable impact on how long it takes to open the video when
there are a lot of thumbnails.

``use_manifests=<yes|no>``
Expand Down Expand Up @@ -2315,7 +2315,7 @@ Audio
directories.

``--audio-exts=ext1,ext2,...``
Audio file extentions to try to match when using ``--audio-file-auto``,
Audio file extensions to try to match when using ``--audio-file-auto``,
``--autocreate-playlist`` or ``--directory-filter-types``.

This is a string list option. See `List Options`_ for details.
Expand Down Expand Up @@ -2714,7 +2714,7 @@ Subtitles
(default: no). Normally, the subtitle canvas is fit into the video canvas
(e.g. letterboxed). Setting this option uses the video size as subtitle
canvas size. Can be useful to test broken subtitles, which often happen
when the video was trancoded, while attempting to keep the old subtitles.
when the video was transcoded, while attempting to keep the old subtitles.

``--sub-ass=<yes|no>``
Render ASS subtitles natively (default: yes).
Expand Down Expand Up @@ -2748,7 +2748,7 @@ Subtitles
:all: Load all subs in the current and ``--sub-file-paths`` directories.

``--sub-auto-exts=ext1,ext2,...``
Subtitle extentions to try and match when using ``--sub-auto``. Note that
Subtitle extensions to try and match when using ``--sub-auto``. Note that
modifying this list will also affect what mpv recognizes as subtitles when
using drag and drop.

Expand Down Expand Up @@ -3355,7 +3355,7 @@ Window

``--ontop-level=<window|system|desktop|level>``
(macOS only)
Sets the level of an ontop window (default: window).
Sets the level of an on-top window (default: window).

:window: On top of all other windows.
:system: On top of system elements like Taskbar, Menubar and Dock.
Expand Down Expand Up @@ -7710,7 +7710,7 @@ Miscellaneous
used to disable cover art that is part of the file).

``--image-exts=ext1,ext2,...``
Image file extentions to try to match when using ``--cover-art-auto``,
Image file extensions to try to match when using ``--cover-art-auto``,
``--autocreate-playlist`` or ``--directory-filter-types``.

This is a string list option. See `List Options`_ for details.
Expand All @@ -7726,21 +7726,21 @@ Miscellaneous
This is a string list option. See `List Options`_ for details.

``--video-exts=ext1,ext2,...``
Video file extentions to try to match when using ``--autocreate-playlist`` or
Video file extensions to try to match when using ``--autocreate-playlist`` or
``--directory-filter-types``.

This is a string list option. See `List Options`_ for details.
Use ``--help=video-exts`` to see default extensions.

``--archive-exts=ext1,ext2,...``
Archive file extentions to try to match when using ``--autocreate-playlist``
Archive file extensions to try to match when using ``--autocreate-playlist``
or ``--directory-filter-types``.

This is a string list option. See `List Options`_ for details. Use
``--help=archive-exts`` to see the default extensions.

``--playlist-exts=ext1,ext2,...``
Playlist file extentions to try to match when using
Playlist file extensions to try to match when using
``--autocreate-playlist`` or ``--directory-filter-types``.

This is a string list option. See `List Options`_ for details. Use
Expand Down
2 changes: 1 addition & 1 deletion DOCS/release-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ While on master:
- Create a new GitHub release using the content of `RELEASE_NOTES` related to
the new version.

- Readd -UNKNOWN suffix to version in `MPV_VERSION` file.
- Re-add -UNKNOWN suffix to version in `MPV_VERSION` file.

If necessary (to e.g. exclude commits already on master), the release can
be done on a branch with different commit history. The release branch **must**
Expand Down
2 changes: 1 addition & 1 deletion TOOLS/dylib_unhell.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def process_vulkan_loader(binary, loader_name, loader_relative_folder, library_n
print(">>> could not find loader library " + library_system_path)
return

print(">>> modifiying and writing loader json " + loader_name)
print(">>> modifying and writing loader json " + loader_name)
loader_bundle_file = open(loader_bundle_path, "w")
loader_library_name = os.path.basename(library_system_path)
library_path = os.path.join(library_relative_folder, loader_library_name)
Expand Down
2 changes: 1 addition & 1 deletion TOOLS/lua/autoload.lua
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ local function find_and_add_entries()
extensions = EXTENSIONS
end
if not extensions then
msg.debug("stopping: no matched extentions list")
msg.debug("stopping: no matched extensions list")
return
end

Expand Down
2 changes: 1 addition & 1 deletion audio/decode/ad_lavc.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ static int receive_frame(struct mp_filter *da, struct mp_frame *out)
if (ret == AVERROR_EOF) {
// If flushing was initialized earlier and has ended now, make it start
// over in case we get new packets at some point in the future.
// (Dont' reset the filter itself, we want to keep other state.)
// (Don't reset the filter itself, we want to keep other state.)
avcodec_flush_buffers(priv->avctx);
return ret;
} else if (ret < 0 && ret != AVERROR(EAGAIN)) {
Expand Down
2 changes: 1 addition & 1 deletion audio/out/ao_coreaudio_exclusive.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static int select_stream(struct ao *ao)
talloc_free(streams);

if (p->stream_idx < 0) {
MP_ERR(ao, "No useable substream found.\n");
MP_ERR(ao, "No usable substream found.\n");
goto coreaudio_error;
}

Expand Down
2 changes: 1 addition & 1 deletion ci/build-freebsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export CFLAGS="$CFLAGS -isystem/usr/local/include -march=native"
export CXXFLAGS="$CXXFLAGS -isystem/usr/local/include"
export LDFLAGS="$LDFLAGS -L/usr/local/lib"

# TODO: readd -Ddvbin=enabled
# TODO: re-add -Ddvbin=enabled

meson setup build $common_args \
-Db_sanitize=address,undefined \
Expand Down
2 changes: 1 addition & 1 deletion common/playlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static void playlist_update_indexes(struct playlist *pl, int start, int end)
}

// Inserts the entry so that it takes "at"'s place, shifting "at" and all
// further entires to the right (or append to end, if at==NULL).
// further entries to the right (or append to end, if at==NULL).
void playlist_insert_at(struct playlist *pl, struct playlist_entry *add,
struct playlist_entry *at)
{
Expand Down
2 changes: 1 addition & 1 deletion demux/demux.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ struct demux_internal {
// -- Access from demuxer thread only
bool enable_recording;
struct mp_recorder *recorder;
int64_t slave_unbuffered_read_bytes; // value repoted from demuxer impl.
int64_t slave_unbuffered_read_bytes; // value reported from demuxer impl.
int64_t hack_unbuffered_read_bytes; // for demux_get_bytes_read_hack()
int64_t cache_unbuffered_read_bytes; // for demux_reader_state.bytes_per_second
int64_t byte_level_seeks; // for demux_reader_state.byte_level_seeks
Expand Down
2 changes: 1 addition & 1 deletion demux/demux_mkv.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ static void parse_trackcolour(struct demuxer *demuxer, struct mkv_track *track,
{
// Note: As per matroska spec, the order is consistent with ISO/IEC
// 23001-8:2013/DCOR1, which is the same order used by libavutil/pixfmt.h,
// so we can just re-use our avcol_ conversion functions.
// so we can just reuse our avcol_ conversion functions.
if (colour->n_matrix_coefficients) {
track->repr.sys = pl_system_from_av(colour->matrix_coefficients);
MP_DBG(demuxer, "| + Matrix: %s\n",
Expand Down
2 changes: 1 addition & 1 deletion demux/stheader.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ struct mp_codec_params {
int rotate; // intended display rotation, in degrees, [0, 359]
int stereo_mode; // mp_stereo3d_mode (0 if none/unknown)
struct pl_color_space color; // colorspace info where available
struct pl_color_repr repr; // color representaion info where available
struct pl_color_repr repr; // color representation info where available
struct mp_rect crop; // crop to be applied

bool dovi;
Expand Down
2 changes: 1 addition & 1 deletion filters/f_autoconvert.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void mp_autoconvert_add_srate(struct mp_autoconvert *c, int rate);

// Reset set of allowed formats back to initial state. (This does not flush
// any frames or remove currently active filters, although to get reasonable
// behavior, you need to readd all previously allowed formats, or reset the
// behavior, you need to re-add all previously allowed formats, or reset the
// filter.)
void mp_autoconvert_clear(struct mp_autoconvert *c);

Expand Down
2 changes: 1 addition & 1 deletion fuzzers/fuzzer_loadfile_direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
if (size <= 1 || data[size - 1] != '\0')
return 0;

// Exlude data with null bytes inside
// Exclude data with null bytes inside
if (strlen(data) != size - 1)
return 0;

Expand Down
6 changes: 3 additions & 3 deletions input/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ static void feed_key(struct input_ctx *ictx, int code, double scale,
return;
}
double now = mp_time_sec();
// ignore system doubleclick if we generate these events ourselves
// ignore system double-click if we generate these events ourselves
if (!force_mouse && opts->doubleclick_time && MP_KEY_IS_MOUSE_BTN_DBL(unmod))
return;
int units = 1;
Expand All @@ -796,7 +796,7 @@ static void feed_key(struct input_ctx *ictx, int code, double scale,
} else if (code == MP_MBTN_LEFT && ictx->opts->allow_win_drag &&
!test_mouse(ictx, ictx->mouse_vo_x, ictx->mouse_vo_y, MP_INPUT_ALLOW_VO_DRAGGING))
{
// This is a mouse left button down event which isn't part of a doubleclick,
// This is a mouse left button down event which isn't part of a double-click,
// and the mouse is on an input section which allows VO dragging.
// Mark the dragging mouse button down in this case.
ictx->dragging_button_down = true;
Expand All @@ -810,7 +810,7 @@ static void feed_key(struct input_ctx *ictx, int code, double scale,
if (code & MP_KEY_STATE_UP) {
code &= ~MP_KEY_STATE_UP;
if (code == MP_MBTN_LEFT) {
// This is a mouse left botton up event. Mark the dragging mouse button up.
// This is a mouse left button up event. Mark the dragging mouse button up.
ictx->dragging_button_down = false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion osdep/mac/app_hub.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class AppHub: NSObject {

@objc func stopRemote() {
#if HAVE_MACOS_MEDIA_PLAYER
log.verbose("Stoping RemoteCommandCenter")
log.verbose("Stopping RemoteCommandCenter")
remote?.stop()
#endif
}
Expand Down
4 changes: 2 additions & 2 deletions osdep/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void mp_time_init(void);
// Return time in nanoseconds. Never wraps. Never returns negative values.
int64_t mp_time_ns(void);

// Return time in nanoseconds. Coverts raw time in nanoseconds to mp time, subtracts init offset.
// Return time in nanoseconds. Converts raw time in nanoseconds to mp time, subtracts init offset.
int64_t mp_time_ns_from_raw_time(uint64_t raw_time);

// Return time in seconds. Can have down to 1 nanosecond resolution, but will
Expand All @@ -43,7 +43,7 @@ uint64_t mp_raw_time_ns(void);
void mp_sleep_ns(int64_t ns);

#if HAVE_DARWIN
// Coverts mach time to raw time in nanoseconds and returns it.
// Converts mach time to raw time in nanoseconds and returns it.
uint64_t mp_raw_time_ns_from_mach(uint64_t mach_time);
#endif

Expand Down
8 changes: 4 additions & 4 deletions player/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -4555,18 +4555,18 @@ int mp_property_do(const char *name, int action, void *val,
int r = m_property_do(ctx->log, cmd->properties, name, action, val, ctx);

if (mp_msg_test(ctx->log, MSGL_V) && is_property_set(action, val)) {
struct m_option ot = {0};
struct m_option option_type = {0};
void *data = val;
switch (action) {
case M_PROPERTY_SET_NODE:
ot.type = &m_option_type_node;
option_type.type = &m_option_type_node;
break;
case M_PROPERTY_SET_STRING:
ot.type = &m_option_type_string;
option_type.type = &m_option_type_string;
data = &val;
break;
}
char *t = ot.type ? m_option_print(&ot, data) : NULL;
char *t = option_type.type ? m_option_print(&option_type, data) : NULL;
MP_VERBOSE(ctx, "Set property: %s%s%s -> %d\n",
name, t ? "=" : "", t ? t : "", r);
talloc_free(t);
Expand Down
2 changes: 1 addition & 1 deletion player/lua/auto_profiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local pending_hooks = {} -- as set (keys only, meaningless values)
-- profile the condition is evaluated for.
local current_profile = nil

-- Cached set of all top-level mpv properities. Only used for extra validation.
-- Cached set of all top-level mpv properties. Only used for extra validation.
local property_set = {}
for _, property in pairs(mp.get_property_native("property-list")) do
property_set[property] = true
Expand Down
2 changes: 1 addition & 1 deletion player/lua/console.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ mp.register_script_message('get-input', function (script_name, args)
end)

mp.register_script_message('log', function (message)
-- input.get's edited handler is invoked after submit, so avoid modifying
-- input.get edited handler is invoked after submit, so avoid modifying
-- the default log.
if input_caller == nil then
return
Expand Down
6 changes: 3 additions & 3 deletions player/lua/fzy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ end
-- Compute a matching score.
--
-- Args:
-- needle (string): must be a subequence of `haystack`, or the result is
-- needle (string): must be a subsequence of `haystack`, or the result is
-- undefined.
-- haystack (string)
-- case_sensitive (bool, optional): defaults to false
Expand Down Expand Up @@ -180,7 +180,7 @@ end
-- in the optimal match.
--
-- Args:
-- needle (string): must be a subequence of `haystack`, or the result is
-- needle (string): must be a subsequence of `haystack`, or the result is
-- undefined.
-- haystack (string)
-- case_sensitive (bool, optional): defaults to false
Expand Down Expand Up @@ -289,7 +289,7 @@ function fzy.get_score_ceiling()
return MATCH_MAX_LENGTH * SCORE_MATCH_CONSECUTIVE
end

-- The name of the currently-running implmenetation, "lua" or "native".
-- The name of the currently-running implementation, "lua" or "native".
function fzy.get_implementation_name()
return "lua"
end
Expand Down
10 changes: 1 addition & 9 deletions player/lua/ytdl_hook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ local function Set (t)
return set
end

-- ?: surrogate (keep in mind that there is no lazy evaluation)
local function iif(cond, if_true, if_false)
if cond then
return if_true
end
return if_false
end

-- youtube-dl JSON name to mpv tag name
local tag_list = {
["artist"] = "artist",
Expand Down Expand Up @@ -611,7 +603,7 @@ local function formats_to_edl(json, formats, use_all_formats)
end
hdr[#hdr + 1] = "!track_meta,title=" ..
edl_escape(title) .. ",byterate=" .. byterate ..
iif(#flags > 0, ",flags=" .. table.concat(flags, "+"), "")
(#flags > 0 and ",flags=" .. table.concat(flags, "+") or "")
end

if duration > 0 then
Expand Down
Loading

0 comments on commit 59d1dc4

Please sign in to comment.