Fix #19253 (cherry picked from commit 2b6c36dd ) Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>