From 39a6ab3d7c9b6214cf2bf3d3f41b5b308fef81d4 Mon Sep 17 00:00:00 2001 From: Thomas Guillem Date: Wed, 28 Feb 2024 06:57:37 +0100 Subject: [PATCH] core: fix assert in libvlc_MetadataRequest() It is now possible to use the preparser only for parsing, only for fetching or both. Fixes #28545 --- src/libvlc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libvlc.c b/src/libvlc.c index a1070fd854..de9537f2d2 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -481,7 +481,8 @@ int libvlc_MetadataRequest(libvlc_int_t *libvlc, input_item_t *item, int timeout, void *id) { libvlc_priv_t *priv = libvlc_priv(libvlc); - assert(i_options & META_REQUEST_OPTION_SCOPE_ANY); + assert(i_options & META_REQUEST_OPTION_SCOPE_ANY || + i_options & META_REQUEST_OPTION_FETCH_ANY); if (unlikely(priv->parser == NULL)) return VLC_ENOMEM;