Browse Source

core: add libvlc_GetMainPreparser()

Will replace vlc_MetadataRequest().
pull/170/head
Thomas Guillem 2 years ago
committed by Steve Lhomme
parent
commit
b8e64e470b
  1. 8
      include/vlc_preparser.h
  2. 7
      src/libvlc.c
  3. 1
      src/libvlccore.sym

8
include/vlc_preparser.h

@ -103,6 +103,14 @@ VLC_API void vlc_preparser_Delete( vlc_preparser_t *preparser );
*/
VLC_API void vlc_preparser_Deactivate( vlc_preparser_t *preparser );
/**
* Recover the main preparser from libvlc
*
* @param libvlc valid libvlc object
* @return the main preparser (can be NULL)
*/
VLC_API vlc_preparser_t *libvlc_GetMainPreparser(libvlc_int_t *libvlc);
/** @} vlc_preparser */
#endif

7
src/libvlc.c

@ -454,6 +454,13 @@ static void GetFilenames( libvlc_int_t *p_vlc, unsigned n,
}
}
vlc_preparser_t *
libvlc_GetMainPreparser(libvlc_int_t *libvlc)
{
libvlc_priv_t *priv = libvlc_priv(libvlc);
return priv->parser;
}
int vlc_MetadataRequest(libvlc_int_t *libvlc, input_item_t *item,
input_item_meta_request_option_t i_options,
const struct vlc_metadata_cbs *cbs,

1
src/libvlccore.sym

@ -1007,6 +1007,7 @@ vlc_playlist_Preparse
vlc_playlist_Export
vlc_playlist_SetMediaStoppedAction
vlc_intf_GetMainPlaylist
libvlc_GetMainPreparser
vlc_media_source_Hold
vlc_media_source_Release
vlc_media_source_provider_Get

Loading…
Cancel
Save