support lastest mpv

This commit is contained in:
Dark 2020-10-18 12:19:13 -04:00
parent 18a09fe480
commit e5b4ea137b
Signed by: Dark
GPG key ID: 8910EE89544A1676
2 changed files with 2 additions and 4 deletions

View file

@ -1,7 +1,7 @@
all: discord.so
discord.so:
cc mpvdiscord.c libdiscord-rpc.a -shared -o discord.so
cc -Wall mpvdiscord.c libdiscord-rpc.a -shared -o discord.so
clean:
rm discord.so

View file

@ -8,8 +8,6 @@
#include <mpv/client.h>
#include "discord_rpc.h"
int mpv_command_ret(mpv_handle *ctx, char *args[], mpv_node *result) ;
//yeah
static void nullfunc() {}
@ -43,7 +41,7 @@ static void update(mpv_handle *handle) {
mpv_get_property(handle, "pause", MPV_FORMAT_FLAG, &paused);
mpv_node result;
char *args[] = {
const char *args[] = {
"expand-text",
NULL,
NULL