-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
input-ipc-server command line switch overridden by config in mpv.net v7 #654
Comments
In mpv.net v6 most CLI options were set after the initialization of the mpv core, in v7 this was changed to all CLI options being set before the initialization of the mpv core, I was told by a mpv developer that's the way to do it. It's probably this change causing the problem. I'll try to better understand it and fix it, but it will take time, as I'm currently taking a development break. |
@Et0h can this be fixed on syncplay side by reading |
@soredake It would be too complicated for Syncplay to do this. For example, there could be several different conf files and in those files there might be one than one input-ipc-server value, e.g. due to profiles. It is just way too hacky and unpredictable. It'd be far better to just tell the user to delete their input-ipc-server value. @stax76 It's interesting that an mpv developer called for this behaviour as it results in different results to the main MPV. Let's provide an easier to test example of osd-msg1. In mpv-0.37.0-x86_64 if I put osd-msg1=Bob in mpv.conf but run with the argument osd-msg1=Alice, it will display Alice. For most things this isn't a big deal as I can just override the value via the IPC connection once mpv.net has started, but if the input-ipc-server value is set then I don't have an IPC connection in the first place. If this is a known issue then people can just be instructed to not set input-ipc-server in their mpv.net configuration if they want to use Syncplay, and instead to set it via Syncplay itself (a feature I'm working on). As such, this probably doesn't need to be seen as a high priority issue, but is worth knowing about. |
I could reproduce it and think I understand now what's wrong, I fix it in the next couple of days. |
A new release fixing it is available. |
Describe the bug
Syncplay uses JSON IPC to connect to mpv.net. While this works fine with mpv.net v6, in Syncplay does not work with mpv.net v7 if the user specifies a different value for input-ipc-server in config.
I believe this is because mpv.net is prioritising the value in the config over the value used by Syncplay's value set via the input-ipc-server command line switch.
To Reproduce
Syncplay 1.7.1
.Expected behavior
For mpv.net to allow IPC-Server to be overridden so Syncplay will start.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: