From 0ae753bc3d6330d23dfd7bb30a5c998e34943e93 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 9 Jan 2017 13:38:17 +0100 Subject: 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. --- player/client.c | 6 ++++++ 1 file changed, 6 insertions(+) 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: { -- cgit v1.2.3