prepaser: change options handling
Reminder of the current behavior: the meta fetcher is either always triggered after the preparser is finished or manually. This commit aims to give more controls so that the meta fetcher is not necessarily triggered after a preparsng. The current behavior of macOS/playlist/mediatree is unchanged (the components touching the preparser). Here are the API changes for libvlc_MetadataRequest(): - Can't be called without a valid META_REQUEST_OPTION_SCOPE_* flag - The flag META_REQUEST_OPTION_SCOPE_* is not fetching meta anymore. Use (META_REQUEST_OPTION_SCOPE_*|META_REQUEST_OPTION_FETCH_*) to fetch meta when the preparsing ends. libvlc_ArtRequest(): - Can't be called without a valid META_REQUEST_OPTION_FETCH_* flag. - The META_REQUEST_OPTION_FETCH_NETWORK flag will now only fetch meta via network. libvlc_media_parse_with_options(): - The flag libvlc_media_parse_* is not fetching meta anymore. Use libvlc_media_fetch_* to fetch meta when the preparsing ends. - The libvlc_media_fetch_network flag will now only fetch meta via network.
Showing
- include/vlc_input_item.h 4 additions, 1 deletioninclude/vlc_input_item.h
- lib/media.c 6 additions, 1 deletionlib/media.c
- modules/gui/macosx/library/VLCInputItem.m 2 additions, 1 deletionmodules/gui/macosx/library/VLCInputItem.m
- modules/gui/qt/components/player_controller.cpp 2 additions, 2 deletionsmodules/gui/qt/components/player_controller.cpp
- src/libvlc.c 4 additions, 1 deletionsrc/libvlc.c
- src/media_source/media_tree.c 1 addition, 2 deletionssrc/media_source/media_tree.c
- src/playlist/preparse.c 3 additions, 1 deletionsrc/playlist/preparse.c
- src/preparser/fetcher.c 5 additions, 2 deletionssrc/preparser/fetcher.c
- src/preparser/preparser.c 9 additions, 4 deletionssrc/preparser/preparser.c
- test/libvlc/media.c 2 additions, 1 deletiontest/libvlc/media.c
Loading
Please register or sign in to comment