Thomas Guillem pushed to branch master at VideoLAN / VLC


Commits:
39a6ab3d by Thomas Guillem at 2024-03-18T10:01:52+00:00
core: fix assert in libvlc_MetadataRequest()

It is now possible to use the preparser only for parsing, only for
fetching or both.

Fixes #28545

- - - - -


1 changed file:

- src/libvlc.c


Changes:

=====================================
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;



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/39a6ab3d7c9b6214cf2bf3d3f41b5b308fef81d4

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/39a6ab3d7c9b6214cf2bf3d3f41b5b308fef81d4
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to