mpv icon indicating copy to clipboard operation
mpv copied to clipboard

No resume

Open ponyo opened this issue 13 years ago • 10 comments

It doesnt write the special file on Windows. ♥♥♥

[global] get_path('') -> '?/mpv' [global] get_path('watch_later/0ED51671896F436C980E37AF2FB057C0') -> '?/mpv/watch_later/0ED51671896F436C980E37AF2FB057C0' [global] EOF code: 6 [global] get_path('') -> '♥/mpv' [global] get_path('watch_later/0ED51671896F436C980E37AF2FB057C0') -> 'mpv/watch_later/0ED51671896F436C980E37AF2FB057C0' [cplayer]

ponyo avatar Sep 13 '13 02:09 ponyo

You're probably using a home directory that has unicode characters. Most of mpv should be fine with that, but Iit looks like path.c still uses a 8-bit legacy variant. Maybe this is the problem.

ghost avatar Sep 13 '13 06:09 ghost

Actually Im not. Just normal letters no spaces or anything.

ponyo avatar Sep 13 '13 18:09 ponyo

So, what's that ♥ stuff about?

ghost avatar Sep 13 '13 18:09 ghost

I found out its how the console shows the "end of text" character. What does "EOF code: 6" mean maybe its related?

ponyo avatar Sep 13 '13 19:09 ponyo

What does "EOF code: 6" mean maybe its related?

No. It's just the internal value that tells how playback was stopped (stopped by user or end of file, etc.)

ghost avatar Sep 13 '13 19:09 ghost

It still doesnt work but the message has changed. The weird stuff is random it changes each run.

global: get_path('') -> '??^☻☺/mpv' global: get_path('watch_later/4E6842F9CD3CBE820991C40EAB34F968') -> 'mpv/watch_later/4E6842F9CD3CBE820991C40EAB34F968' cplayer: Saving state.

ponyo avatar Sep 14 '13 18:09 ponyo

the recent build mpv from http://mpv.srsfckn.biz/ You need to set environment MPV_HOME, so that mpv can save its config

for my case i use C:\Windows\system32>setx MPV_HOME "D:\mpv\mpv" for system wide or

C:\Windows\system32>set MPV_HOME="D:\mpv\mpv"

then the configuration will be saved in "D:\mpv\mpv"

aswger avatar Sep 17 '13 11:09 aswger

Thanks that works. I wonder why it doesnt just use ~\appdata\local\mpv by default.

ponyo avatar Sep 18 '13 00:09 ponyo

It should. Actually, after having a second look at the latest path.c changes, there were some problems. I hopefully fixed it in git master just now (b97d10a839aee875 or later).

ghost avatar Sep 18 '13 17:09 ghost

Well, no news? Then I guess this is somehow fixed. I definitely fixed a bug with undefined behavior, that could easily pop up depending how the compiler optimizes.

ghost avatar Oct 02 '13 19:10 ghost