Skip to content

Commit

Permalink
fix #414
Browse files Browse the repository at this point in the history
  • Loading branch information
stax76 committed May 5, 2022
1 parent 7d510a8 commit 3b93682
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ Can be suppressed via shift key. Default: yes
If the player is paused and another file is loaded,
playback automatically resumes.

#### --keep-open-exit

If set to yes and keep-open is set to no, mpv.net exits after the last file ends.
In mpv the idle property would be used, it's not possible for mpv.net to use the idle property.

### General

Expand Down
2 changes: 1 addition & 1 deletion src/Misc/CorePlayer.cs → src/Misc/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ public void Init(IntPtr handle)
if (Handle == IntPtr.Zero)
throw new Exception("error mpv_create");

SetPropertyLong("wid", handle.ToInt64());

mpv_request_log_messages(Handle, "terminal-default");

Expand All @@ -130,6 +129,7 @@ public void Init(IntPtr handle)
}

SetPropertyInt("osd-duration", 2000);
SetPropertyLong("wid", handle.ToInt64());

SetPropertyBool("input-default-bindings", true);
SetPropertyBool("input-builtin-bindings", false);
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/editor_conf.txt
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ filter = Playback
help = Using no, mpv would terminate after the last file but mpv.net never terminates automatically.

option = yes If the current file ends, go to the next file, keep the last file open.
option = no If the current file ends, go to the next file.
option = no If the current file ends, go to the next file. If keep-open-exit is set to yes, mpv.net exits after the last file.
option = always Playback will never automatically advance to the next file.

[setting]
Expand All @@ -531,7 +531,7 @@ name = keep-open-exit
file = mpvnet
default = no
filter = Playback
help = If set to yes and keep-open is set to no, mpv.net exits after the last file ends.
help = If set to yes and keep-open is set to no, mpv.net exits after the last file ends. In mpv the idle property would be used, it's not possible for mpv.net to use the idle property.

option = yes
option = no
Expand Down
2 changes: 1 addition & 1 deletion src/mpv.net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
<DependentUpon>MainForm.cs</DependentUpon>
</Compile>
<Compile Include="Misc\Misc.cs" />
<Compile Include="Misc\CorePlayer.cs" />
<Compile Include="Misc\Player.cs" />
<Compile Include="Misc\Commands.cs" />
<Compile Include="Native\Native.cs" />
<Compile Include="Misc\Program.cs" />
Expand Down

0 comments on commit 3b93682

Please sign in to comment.