1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-28 23:09:59 +02:00
Commit Graph

124 Commits

Author SHA1 Message Date
Romain Vimont
f66590a84a stream: remove anonymous union
The two fields of the union have types demux_t and stream_t, which are
the same type (demux_t is a typedef of stream_t).

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2021-01-12 15:11:28 +01:00
Hugo Beauzée-Luyssen
9f2933fcd0 vlc_stream: Allow fetching the underlying item type 2020-09-17 17:40:57 +02:00
Rémi Denis-Courmont
e3270f2ae4 objects: merge vlc_object_t and vlc_common_members
This should fix historical aliasing issues.
2019-04-14 22:24:33 +03:00
Rémi Denis-Courmont
db75e293e8 stream_fifo: use separate structure for writer side 2019-03-15 03:27:56 +02:00
Rémi Denis-Courmont
e8e9bda4de stream_fifo: use separater poitenrs for read and write sides 2019-03-15 03:27:56 +02:00
Steve Lhomme
5363279805 remove the $Id$ in the source code 2019-01-17 12:21:18 +01:00
Thomas Guillem
6b96ade7dd stream: replace input_thread_t by input_item_t
This will prevent all demuxers/access/streams to mess with the input_thread_t
state.
2018-07-20 17:23:03 +02:00
Steve Lhomme
26fef56c52 core: make DEMUX/STREAM_GET_PTS_DELAY officially a vlc_tick_t 2018-07-06 10:48:19 +02:00
Rémi Denis-Courmont
033d2eba89 stream: make STREAM_SET_PRIVATE_ID_CA parameter void *
This avoids having to define the pointer type middle points.
2018-05-15 19:46:29 +03:00
Rémi Denis-Courmont
7f46d83bfb stream: remove p_module 2018-04-06 20:45:10 +03:00
Rémi Denis-Courmont
66b9878782 access: fold access_demux capability 2018-03-31 18:01:14 +03:00
Rémi Denis-Courmont
c3e02261e0 stream: remove no longer used STREAM_IS_DIRECTORY 2018-03-31 18:01:12 +03:00
Rémi Denis-Courmont
2ec4bfe7b1 stream: remove dummy pf_readdir callbacks
This was required for stream filters, but not for accesses. Now that
both are stream_t, this has become inconsistent.

So this just makes them optional also for stream filters.
2018-03-31 17:59:20 +03:00
Rémi Denis-Courmont
ab6c0897df stream: clean up vlc_stream_ReadDir() documentation 2018-03-31 17:59:20 +03:00
Rémi Denis-Courmont
6c6c085663 stream: add out and pf_demux (refs #18504) 2018-02-26 21:51:50 +02:00
Rémi Denis-Courmont
ace2fdf4b2 stream: add p_next field (refs #18504) 2018-02-26 21:48:49 +02:00
Rémi Denis-Courmont
c3dea95c4a Expand VLC_COMMON_MEMBERS
This is now a one-liner. Expansion helps readability/high-lighting.
2017-12-11 18:55:12 +02:00
Rémi Denis-Courmont
7902c7a656 stream: rename p_source to s (refs #18504) 2017-12-02 23:23:56 +02:00
Rémi Denis-Courmont
ad303c60a7 stream: clarify seeking documentation 2017-11-30 18:30:23 +02:00
Francois Cartegnie
0c6f872de8 vlc_stream: add STREAM_GET_TAGS 2017-07-18 22:08:20 +02:00
Rémi Denis-Courmont
b57a08e34e stream: add helper to check extension 2017-06-03 17:42:49 +03:00
Hugo Beauzée-Luyssen
934ff6ee2a vlc_stream: Fix stream_IsMimeType 2017-04-19 11:21:55 +02:00
Rémi Denis-Courmont
7c8871b13d stream: add stream_IsMimeType() 2017-04-18 21:54:12 +03:00
Rémi Denis-Courmont
5556387d88 stream: add VLC_USED to stream_MimeType() 2017-04-18 21:54:12 +03:00
Rémi Denis-Courmont
c0d5d15812 stream: removed unused control argument 2017-04-18 21:54:09 +03:00
Filip Roséen
56f202f9ef vlc_stream: add stream_MimeType
As there is quite common for stream-consumers to be interested in the
associated mime-type, if any, of a stream; this helper function allows
access to that directly (instead of consumers having to manually parse
the string returned by stream_ContentType).

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2017-03-22 09:21:33 +02:00
Filip Roséen
e4fbdcebeb stream: rename vlc_stream_NewMRL to vlc_stream_NewURL
The function does not open MRLs, as correctly described in its
documentation, as such it is rather unfortunate that its name uses MRL
instead of URL (especially given that it cannot handle MRLs).

These changes are simply renaming all occurrences of the function, so
that the behavior of the function is properly reflected by its name.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2016-12-06 15:57:19 +01:00
Thomas Guillem
10c5ded53c stream: update documentation 2016-10-14 16:38:11 +02:00
Rémi Denis-Courmont
38be0d228c stream: merge access_t and stream_t
They were mostly identical, with just a few extra fields in access_t.
Merging them will allow removing the dummy stream_Access layer.
2016-07-21 22:27:00 +03:00
Rémi Denis-Courmont
b75462c33e stream: add vlc_stream_ReadPartial()
This is a variant of vlc_stream_Read(), such that it only waits for
some bytes (i.e. more than zero) rather than the full requested bytes
count.
2016-07-21 22:27:00 +03:00
Rémi Denis-Courmont
312d198438 stream: stream_ -> vlc_stream_ 2016-07-21 22:26:57 +03:00
Rémi Denis-Courmont
9e8c9e95cf stream: remove stream_CustomNew() 2016-07-21 19:59:25 +03:00
Rémi Denis-Courmont
c9973b6fe9 stream: remove STREAM_GET_PRIVATE_BLOCK 2016-07-21 19:59:25 +03:00
Rémi Denis-Courmont
ad84a22236 stream: improve documentation 2016-07-21 19:59:25 +03:00
Rémi Denis-Courmont
f1ed338b12 stream: add pf_block callback
This adds support for block-based stream filters.
2016-07-21 19:59:25 +03:00
Rémi Denis-Courmont
deb5e45b29 stream: add stream_ReadBlock()
This reads a block of unspecified size. The main use case will be
support for block-oriented stream filters.
2016-07-21 19:59:25 +03:00
Rémi Denis-Courmont
642a329a75 stream: add stream_Eof() 2016-07-21 19:59:24 +03:00
Rémi Denis-Courmont
676b185957 stream: make stream_t.p_sys void * (refs #17078) 2016-07-21 00:05:18 +03:00
Rémi Denis-Courmont
8d599e76b7 stream: fix stream_MemoryNew() prototype 2016-07-20 23:57:43 +03:00
Rémi Denis-Courmont
72b22e2b50 input: remove stream demux 2016-06-30 21:27:46 +03:00
Rémi Denis-Courmont
59f3310090 input: add FIFO stream type
This provides an anonymous pipe as a stream_t. The read side is a
normal non-seekable stream_t. The write side uses dedicated functions.
2016-06-30 21:27:46 +03:00
Thomas Guillem
a78bbdd234 access: change ACCESS_IS_DIRECTORY / STREAM_IS_DIRECTORY args
The first sort argument is no longer necessary.
2016-05-19 15:55:27 +02:00
Thomas Guillem
9109718b77 access: re-refactor pf_readdir
This commit changes pf_readdir callback to its original behavior. Accesses and
streams now add items to a node.

Archive stream_filters will now be able to add nodes to a node (when an archive
has directory). This was not possible before.

This commit also adds an access_fsdir helper to help fs accesses (file, smb,
nfs, ftp, sftp) adding items to a node. These accesses need the same treatment
that is now done by this helper:
 - hide hidden files or not (depending on "show-hiddenfiles" option)
 - skip some file extensions (depending on "ignore-filetypes" option)
 - sort items by type and alphabetically (depending on "directory-sort"
   option).
 - For a next commit: attach slaves to items

The directory demux won't do these operations anymore for every access/stream.

This commit doesn't change the interruptible state of the pf_readdir function,
accesses/streams are still interruptible in the middle of a pf_readdir call.

This partially reverts commit 88ffe15878.
2016-05-19 15:55:27 +02:00
Rémi Denis-Courmont
f788fa20e1 access: fix ACCESS_GET_META and STREAM_GET_META mismatches 2015-10-20 19:11:01 +03:00
Francois Cartegnie
3946b13fa2 add stream_Custom 2015-10-05 23:30:15 +02:00
Rémi Denis-Courmont
f680366757 stream: privatize the destruction callback 2015-09-02 22:30:27 +03:00
Rémi Denis-Courmont
8368744397 stream: remove first parameter to STREAM_IS_DIRECTORY
Return an error code if the stream is not a directory (similar to
STREAM_GET_SIZE).
2015-09-02 21:50:43 +03:00
Rémi Denis-Courmont
efe323f85f stream: STREAM_IS_DIRECTORY can actually fail, fix accordingly 2015-09-02 20:21:46 +03:00
Rémi Denis-Courmont
994a2555f0 stream: put stream_Seek() out of line 2015-09-02 20:03:22 +03:00
Rémi Denis-Courmont
b1082a5cc0 stream: replace STREAM_SET_POSITION control with dedicated pf_seek
Also:
 - zip: fix seeking to end of file
 - accesstweaks: fix segmentation fault when (inhibiting) seeking
 - decomp: set callbacks only on successful init
2015-09-02 20:02:03 +03:00