[vlc-devel] [v3 0/9] Input item duration cleaning

Steve Lhomme robux4 at ycbcr.xyz
Thu Jul 26 10:03:53 CEST 2018


With more refined comments on each value it becomes clearer which is what.
- Invalid is actually "no value" (which ends up being 0)
- 0 is meant to be set explicitly to 0 (not none, and no define needed)
- unknown is reserved for live sources

Steve Lhomme (9):
  vlc_input_item: rename INPUT_DURATION_INVALID to INPUT_DURATION_NONE
  input:item: the duration for card items is INPUT_DURATION_UNKNOWN
  m3u: reset the duration between items to INPUT_DURATION_UNKNOWN
  podcast: set the podcat duration to 0 when it cannot be parsed
  input:item: return 0 when the duration is unknown, rather than -1
  modules: set 0 for items which value is actually 0
  vlc_input_item: remove INPUT_DURATION_ZERO
  vlc_input_item: use 0 instead of VLC_TICK_INVALID for
    INPUT_DURATION_NONE
  lua:sd: discovered nodes have a no duration, it's not unknown/infinite

 include/vlc_input_item.h         | 9 ++++-----
 modules/demux/playlist/asx.c     | 2 +-
 modules/demux/playlist/m3u.c     | 2 +-
 modules/demux/playlist/podcast.c | 2 +-
 modules/demux/playlist/sgimb.c   | 2 +-
 modules/lua/libs/sd.c            | 2 +-
 src/input/item.c                 | 6 ++++--
 src/playlist/tree.c              | 2 +-
 test/libvlc/media.c              | 2 +-
 9 files changed, 15 insertions(+), 14 deletions(-)

-- 
2.17.0



More information about the vlc-devel mailing list