[vlc-devel] [PATCH 0/9] make libvlc_media_parse_async() interruptible

Thomas Guillem thomas at gllm.fr
Wed Jun 1 13:24:43 CEST 2016


This set of patch aims to cancel a preparser request when a libvlc_media is
released.

I also improved the preparser: it won't spawn an input thread on top of the
preparser thread.

I also did a few changes in input_thread_t core API, I heavily changed the
behavior of input_Read(). This function can now be interrupted and it can be
used to preparse.

Thomas Guillem (9):
  input: change input_Read() behavior
  input: return an error if input_Read() was interrupted
  preparser: read item directly from the current thread
  preparser: use unsigned for an array count
  preparser: don't fetch art if preparse fails
  preparser: add playlist_preparser_Cancel
  core: rename libvlc_MetaRequest to libvlc_MetadataRequest
  core: add libvlc_MetadataCancel
  libvlc: media: cancel preparsing when releasing a media

 include/vlc_input.h                    |   3 +-
 include/vlc_input_item.h               |   5 +-
 lib/media.c                            |   7 ++-
 lib/media_list.c                       |   9 ++-
 modules/gui/macosx/VLCPlaylist.m       |   2 +-
 modules/gui/macosx/VLCPlaylistInfo.m   |   2 +-
 modules/services_discovery/mediadirs.c |   7 ++-
 src/input/input.c                      |  77 ++++++++++++++-----------
 src/libvlc.c                           |  23 +++++++-
 src/libvlccore.sym                     |   3 +-
 src/playlist/loadsave.c                |  15 ++++-
 src/playlist/preparser.c               | 101 +++++++++++++++++++--------------
 src/playlist/preparser.h               |   8 +++
 13 files changed, 172 insertions(+), 90 deletions(-)

-- 
2.8.1



More information about the vlc-devel mailing list