Something went wrong. Try again.
馃帴 Command line media player
Something went wrong. Try again.
ipc: report some user errors better master
Using the IPC with a program, it's not often obvious that a newline must be sent to terminate a command. Print a warning if the connection is closed while there is still uninterpreted data in the buffer. Print the OS reported error if reading/writing the socket fails. Print an erro if JSON parsing fails. I considered silencing write errors if the write end is closed (EPIPE), because a client might send a bunch of commands, and then close the socket without wanting to read the reply. But then, mpv disconnects without reading further commands that might still be buffered, so it's probably a good idea to always print the error.
Author wm4 Committer Diogo Franco (Kovensky) Date (Jan 25, 2015, 8:00 AM UTC) Commit 37210f0c 37210f0cbc1c00a06a4e84dfabb55e1046e6182c Parent f24b8cbd f24b8cbd47a9e75c635b1537aff16de18d350021