[vlc-devel] [PATCH 0/5] input item unknown duration
Steve Lhomme
robux4 at ycbcr.xyz
Sat Jun 23 09:26:12 CEST 2018
Right now the code uses a mixture of -1 and VLC_TS_INVALID which are not the
same value. In some case reading the duration would give -1 and is unchecked
because it was expecting 0 (VLC_TS-INVALID) in that case.
This patchset cleans this situation once and for all.
Steve Lhomme (5):
vlc_input_item: add a define for the unknown duration
modules: make use of the special duration value INPUT_UNKNOWN_DURATION
asx: use INPUT_UNKNOWN_DURATION for the unset value
m3u: use INPUT_UNKNOWN_DURATION for the unset value
podcast: use INPUT_UNKNOWN_DURATION for the unknown value
include/vlc_input_item.h | 8 +++++---
modules/control/oldrc.c | 2 +-
modules/demux/playlist/asx.c | 4 ++--
modules/demux/playlist/m3u.c | 4 ++--
modules/demux/playlist/podcast.c | 2 +-
modules/lua/libs/sd.c | 2 +-
modules/lua/vlc.c | 2 +-
modules/services_discovery/udev.c | 2 +-
modules/services_discovery/xcb_apps.c | 2 +-
src/input/item.c | 2 ++
src/playlist/tree.c | 2 +-
11 files changed, 18 insertions(+), 14 deletions(-)
--
2.17.0
More information about the vlc-devel
mailing list