From 0b41ed78504896a8a9e8cf56d4fff3f773213e1d Mon Sep 17 00:00:00 2001 From: Chong Kai Xiong Date: Fri, 24 Jan 2025 06:45:46 +0800 Subject: [PATCH] Core (LV::Video): Check palettes are equal in has_same_content(). --- libvisual/libvisual/lv_video.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libvisual/libvisual/lv_video.cpp b/libvisual/libvisual/lv_video.cpp index 9bb5f1b17..6367418e4 100644 --- a/libvisual/libvisual/lv_video.cpp +++ b/libvisual/libvisual/lv_video.cpp @@ -392,6 +392,10 @@ namespace LV { } } + // Videos must have the same palette. + if (m_impl->palette != video->m_impl->palette) + return false; + return true; }