1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00

client: change equality rules for MPV_FORMAT_NONE

This commit is contained in:
wm4 2014-04-09 20:27:26 +02:00
parent b23a1edf55
commit 217008be4a

View File

@ -568,7 +568,7 @@ static bool compare_value(void *a, void *b, mpv_format format)
{
switch (format) {
case MPV_FORMAT_NONE:
return false;
return true;
case MPV_FORMAT_STRING:
case MPV_FORMAT_OSD_STRING:
return strcmp(*(char **)a, *(char **)b) == 0;