1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-03 05:22:23 +00:00

client API: fix mpv_get_property_async() string case

The logic for this code didn't survive the previous refactor. It always
crashed in async mode.

Fixes #2121.
This commit is contained in:
wm4 2015-07-10 11:03:03 +02:00
parent 731fc5b816
commit a46de35abb

View File

@ -1193,7 +1193,7 @@ static void getproperty_fn(void *arg)
char *s = NULL;
err = mp_property_do(req->name, M_PROPERTY_GET_STRING, &s, req->mpctx);
if (err == M_PROPERTY_OK)
*(char **)req->data = s;
*(char **)data = s;
break;
}
case MPV_FORMAT_NODE: