The receiving part was implemented, but since no messages are enabled by default, it couldn't be used.
Showing the changes to input (1 of 2 files). Show all
Unified · Split
| @@ -414,6 +414,19 @@ static char *json_execute_command(struct client_arg *arg, void *ta_parent, · 413 unmodified lines | ||
| 414 | 414 | |
| 415 | 415 | rc = mpv_unobserve_property(arg->client, |
| 416 | 416 | cmd_node->u.list->values[1].u.int64); |
| 417 | + } else if (!strcmp("request_log_messages", cmd)) { | |
| 418 | + if (cmd_node->u.list->num != 2) { | |
| 419 | + rc = MPV_ERROR_INVALID_PARAMETER; | |
| 420 | + goto error; | |
| 421 | + } | |
| 422 | + | |
| 423 | + if (cmd_node->u.list->values[1].format != MPV_FORMAT_STRING) { | |
| 424 | + rc = MPV_ERROR_INVALID_PARAMETER; | |
| 425 | + goto error; | |
| 426 | + } | |
| 427 | + | |
| 428 | + rc = mpv_request_log_messages(arg->client, | |
| 429 | + cmd_node->u.list->values[1].u.string); | |
| 417 | 430 | } else if (!strcmp("suspend", cmd)) { |
| 418 | 431 | if (arg->suspend_counter < INT_MAX) { |
| 419 | 432 | mpv_suspend(arg->client); |