mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 06:30:06 +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:
parent
731fc5b816
commit
a46de35abb
@ -1193,7 +1193,7 @@ static void getproperty_fn(void *arg)
|
|||||||
char *s = NULL;
|
char *s = NULL;
|
||||||
err = mp_property_do(req->name, M_PROPERTY_GET_STRING, &s, req->mpctx);
|
err = mp_property_do(req->name, M_PROPERTY_GET_STRING, &s, req->mpctx);
|
||||||
if (err == M_PROPERTY_OK)
|
if (err == M_PROPERTY_OK)
|
||||||
*(char **)req->data = s;
|
*(char **)data = s;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MPV_FORMAT_NODE:
|
case MPV_FORMAT_NODE:
|
||||||
|
Loading…
Reference in New Issue
Block a user