diff options
author | wm4 <wm4@nowhere> | 2017-01-09 13:38:17 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-09 13:38:17 +0100 |
commit | 0ae753bc3d6330d23dfd7bb30a5c998e34943e93 (patch) | |
tree | 301caa3821b166f709528c687c286d5eacadcd07 | |
parent | 42a60143c22780fcb6dba1ac9e84753d58b932aa (diff) | |
download | mpv-0ae753bc3d6330d23dfd7bb30a5c998e34943e93.tar.bz2 mpv-0ae753bc3d6330d23dfd7bb30a5c998e34943e93.tar.xz |
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.
-rw-r--r-- | player/client.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/player/client.c b/player/client.c index ccbec2da72..cd22312bde 100644 --- a/player/client.c +++ b/player/client.c @@ -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: { |