]> git.sesse.net Git - vlc/commit
input: add b_net variable in item
authorThomas Guillem <thomas@gllm.fr>
Tue, 24 Mar 2015 16:22:15 +0000 (16:22 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 25 Mar 2015 14:29:57 +0000 (15:29 +0100)
commit4089c841ccaade63169fbb723a4107eddafc31b0
treed13b9288eeae8c4a1e6f23deef4456cf6224ed99
parentbd669141be882a62b33c08d7aa97501e0b5faff2
input: add b_net variable in item

When an item was a NET/STREAM type, there was no way to distinguish if the item
was a file, a playlist or directory.

Add a new variable, b_net in addition to i_type. This variable is automatically
set when creating a new Item (set to true for ITEM_TYPE_STREAM). It can be
overridden via the new input_item_NewWithTypeExt function. This new function
will allow accesses to create FILE, or DIRECTORY items with b_net set to true.

Unless forced, the preparser won't parse items with b_net == true.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
include/vlc_input_item.h
modules/services_discovery/sap.c
src/input/item.c
src/libvlccore.sym
src/playlist/preparser.c