If a stream can be viewed as a directory, such as when opening a compressed archive, a stream-extractor is used to get access to the entities inside said stream.
More...
|
These functions are used to attach a stream extractor to an already existing stream.
As hinted by their names, vlc_stream_extractor_Attach will attach an entity-extractor, whereas vlc_stream_directory_Attach will attach a stream-directory.
- Parameters
-
[out] | stream | a pointer-to-pointer to stream, *stream will refer to the attached stream on success, and left untouched on failure. |
| identifier | (if present) NULL or a c-style string referring to the desired entity |
| module_name | NULL or an explicit stream-extractor module name |
- Returns
- VLC_SUCCESS if a stream-extractor was successfully attached, an error-code on failure.
|
int | vlc_stream_extractor_Attach (stream_t **source, char const *identifier, char const *module_name) |
|
int | vlc_stream_directory_Attach (stream_t **source, char const *module_name) |
|
If a stream can be viewed as a directory, such as when opening a compressed archive, a stream-extractor is used to get access to the entities inside said stream.
A stream-extractor can do one of two things;
- lists the logical entries within a stream:
- extract data associated with one specific entry within a stream:
◆ vlc_stream_NewMRL
#define vlc_stream_NewMRL |
( |
|
a, |
|
|
|
b |
|
) |
| vlc_stream_NewMRL(VLC_OBJECT(a), b) |
◆ stream_directory_t
◆ stream_extractor_t
◆ vlc_stream_directory_Attach()
int vlc_stream_directory_Attach |
( |
stream_t ** |
source, |
|
|
char const * |
module_name |
|
) |
| |
◆ vlc_stream_extractor_Attach()
int vlc_stream_extractor_Attach |
( |
stream_t ** |
source, |
|
|
char const * |
identifier, |
|
|
char const * |
module_name |
|
) |
| |
◆ vlc_stream_extractor_CreateMRL()
Create a relative MRL for the associated entity.
This function shall be used by stream_directory_t's in order to generate an MRL that refers to an entity within the stream. Normally this function will only be invoked within pf_readdir
in order to get the virtual path of the listed items.
- Warning
- the returned value is to be freed by the caller
- Parameters
-
extractor | the stream_directory_t for which the entity belongs |
subentry | the name of the entity in question |
- Returns
- a pointer to the resulting MRL on success, NULL on failure
References stream_t::psz_url, stream_directory_t::source, and StreamExtractorCreateMRL().
◆ vlc_stream_NewMRL()