mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 03:52:22 +02:00
client API: handle missing MPV_FORMAT_BYTE_ARRAY case in compare_value
Since there's no property yet that uses this type, and the code is used for property change detection only. this is dead code. Add it anyway for completeness.
This commit is contained in:
parent
42a60143c2
commit
0ae753bc3d
@ -851,6 +851,12 @@ static bool compare_value(void *a, void *b, mpv_format format)
|
||||
return false;
|
||||
return compare_value(&a_n->u, &b_n->u, a_n->format);
|
||||
}
|
||||
case MPV_FORMAT_BYTE_ARRAY: {
|
||||
struct mpv_byte_array *a_r = a, *b_r = b;
|
||||
if (a_r->size != b_r->size)
|
||||
return false;
|
||||
return memcmp(a_r->data, b_r->data, a_r->size) == 0;
|
||||
}
|
||||
case MPV_FORMAT_NODE_ARRAY:
|
||||
case MPV_FORMAT_NODE_MAP:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user