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>
Showing
- include/vlc_input_item.h 12 additions, 0 deletionsinclude/vlc_input_item.h
- modules/services_discovery/sap.c 1 addition, 0 deletionsmodules/services_discovery/sap.c
- src/input/item.c 82 additions, 57 deletionssrc/input/item.c
- src/libvlccore.sym 1 addition, 0 deletionssrc/libvlccore.sym
- src/playlist/preparser.c 2 additions, 4 deletionssrc/playlist/preparser.c
Loading
Please register or sign in to comment