History

ipc: make it possible to receive log messages

The receiving part was implemented, but since no messages are enabled by default, it couldn't be used.

wm4 committed 12 years ago

Commit dbc41ea1 parent de59b872 files · +23 −0Browse files

Showing the changes to input (1 of 2 files). Show all

Unified · Split

input/ipc.c+13−0
@@ -414,6 +414,19 @@ static char *json_execute_command(struct client_arg *arg, void *ta_parent, · 413 unmodified lines
414 414
415 rc = mpv_unobserve_property(arg->client,415 rc = mpv_unobserve_property(arg->client,
416 cmd_node->u.list->values[1].u.int64);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 } else if (!strcmp("suspend", cmd)) {430 } else if (!strcmp("suspend", cmd)) {
418 if (arg->suspend_counter < INT_MAX) {431 if (arg->suspend_counter < INT_MAX) {
419 mpv_suspend(arg->client);432 mpv_suspend(arg->client);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t