[vlc-commits] input: add b_net variable in item

Thomas Guillem git at videolan.org
Wed Mar 25 15:35:10 CET 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 24 16:22:15 2015 +0000| [4089c841ccaade63169fbb723a4107eddafc31b0] | committer: Jean-Baptiste Kempf

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 at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4089c841ccaade63169fbb723a4107eddafc31b0
---

 include/vlc_input_item.h         |   12 ++++
 modules/services_discovery/sap.c |    1 +
 src/input/item.c                 |  139 ++++++++++++++++++++++----------------
 src/libvlccore.sym               |    1 +
 src/playlist/preparser.c         |    6 +-
 5 files changed, 98 insertions(+), 61 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=4089c841ccaade63169fbb723a4107eddafc31b0


More information about the vlc-commits mailing list