Skip to content

Commit

Permalink
Merge branch 'mpv-player:master' into plex-htpc-hdr-patches
Browse files Browse the repository at this point in the history
  • Loading branch information
mitzsch authored Apr 21, 2024
2 parents 10b460a + 5318522 commit 3e89839
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
2 changes: 1 addition & 1 deletion DOCS/man/console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Configuration

This script can be customized through a config file ``script-opts/console.conf``
placed in mpv's user directory and through the ``--script-opts`` command-line
option. The configuration syntax is described in `ON SCREEN CONTROLLER`_.
option. The configuration syntax is described in `mp.options functions`_.

Key bindings can be changed in a standard way, see for example stats.lua
documentation.
Expand Down
19 changes: 3 additions & 16 deletions DOCS/man/osc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,22 +130,9 @@ del Cycles visibility between never / auto (mouse-move) / always
Configuration
-------------

The OSC offers limited configuration through a config file
``script-opts/osc.conf`` placed in mpv's user dir and through the
``--script-opts`` command-line option. Options provided through the command-line
will override those from the config file.

Config Syntax
~~~~~~~~~~~~~

The config file must exactly follow the following syntax::

# this is a comment
optionA=value1
optionB=value2

``#`` can only be used at the beginning of a line and there may be no
spaces around the ``=`` or anywhere else.
This script can be customized through a config file ``script-opts/osc.conf``
placed in mpv's user directory and through the ``--script-opts`` command-line
option. The configuration syntax is described in `mp.options functions`_.

Command-line Syntax
~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion DOCS/man/stats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Configuration

This script can be customized through a config file ``script-opts/stats.conf``
placed in mpv's user directory and through the ``--script-opts`` command-line
option. The configuration syntax is described in `ON SCREEN CONTROLLER`_.
option. The configuration syntax is described in `mp.options functions`_.

Configurable Options
~~~~~~~~~~~~~~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions player/loadfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,10 @@ static bool compare_track(struct track *t1, struct track *t2, char **langs, bool
return l1 > l2;
if (forced)
return t1->forced_track;
if (sub && !t2->forced_select && t2->forced_track)
return !t1->forced_track;
if (t1->default_track != t2->default_track && !t2->forced_select)
return t1->default_track;
if (sub && !t2->forced_select && t2->forced_track)
return !t1->forced_track;
if (os_langs && l1 != l2)
return l1 > l2;
if (t1->attached_picture != t2->attached_picture)
Expand Down

0 comments on commit 3e89839

Please sign in to comment.