Data Structures | Functions

stream.h File Reference

Include dependency graph for stream.h:

Go to the source code of this file.

Data Structures

struct  stream_text_t

Functions

stream_tstream_CommonNew (vlc_object_t *)
void stream_CommonDelete (stream_t *)
stream_tstream_AccessNew (access_t *p_access, char **ppsz_list)
 This function creates a stream_t from a provided access_t.
stream_tstream_FilterNew (stream_t *p_source, const char *psz_stream_filter)
 This function creates a new stream_t filter.
stream_tstream_FilterChainNew (stream_t *p_source, const char *psz_chain, bool b_record)
 This function creates a chain of filters:

  • first, automatic probed stream filters are inserted.


Function Documentation

stream_t* stream_AccessNew ( access_t p_access,
char **  ppsz_list 
)

This function creates a stream_t from a provided access_t.

An optional NULL terminated list of file may be provided. The content of these extra files will be concatenated after to the main access.

XXX ppsz_list is treated as const (I failed to avoid a warning when using const keywords for pointer of pointers)

References ACCESS_CAN_FASTSEEK, access_Control(), access_Delete(), access_New, AStreamPrebufferBlock(), AStreamPrebufferStream(), stream_sys_t::b_fastseek, stream_sys_t::block, stream_sys_t::i_bytes, stream_track_t::i_date, stream_track_t::i_end, stream_sys_t::i_list, stream_sys_t::i_list_index, stream_sys_t::i_offset, stream_sys_t::i_peek, access_t::i_pos, stream_sys_t::i_pos, stream_sys_t::i_read_count, stream_sys_t::i_read_size, stream_sys_t::i_read_time, stream_sys_t::i_seek_count, stream_sys_t::i_seek_time, stream_sys_t::i_size, access_t::i_size, access_entry_t::i_size, stream_track_t::i_start, stream_sys_t::i_start, stream_sys_t::i_tk, stream_sys_t::i_used, access_t::info, stream_sys_t::list, stream_sys_t::method, msg_Dbg, msg_Err, stream_sys_t::p_access, stream_track_t::p_buffer, stream_sys_t::p_buffer, stream_sys_t::p_current, stream_sys_t::p_first, access_t::p_input, stream_t::p_input, stream_sys_t::p_list_access, stream_sys_t::p_peek, stream_t::p_sys, access_t::pf_block, stream_t::pf_control, stream_t::pf_destroy, stream_t::pf_peek, stream_t::pf_read, stream_sys_t::pp_last, access_t::psz_access, stream_t::psz_access, access_t::psz_location, psz_name, access_entry_t::psz_path, stream_t::psz_path, stream_sys_t::stat, strdup(), stream_sys_t::stream, STREAM_CACHE_SIZE, stream_CommonDelete(), stream_CommonNew(), STREAM_METHOD_BLOCK, STREAM_METHOD_STREAM, TAB_APPEND, TAB_INIT, stream_sys_t::tk, and VLC_OBJECT.

Referenced by InputSourceInit(), and stream_UrlNew().

void stream_CommonDelete ( stream_t  ) 
stream_t* stream_CommonNew ( vlc_object_t  ) 
stream_t* stream_FilterChainNew ( stream_t p_source,
const char *  psz_chain,
bool  b_record 
)

This function creates a chain of filters:

  • first, automatic probed stream filters are inserted.

  • then, optional user filters (configured by psz_chain) are inserted.
  • finaly, an optional record filter is inserted if b_record is true.

You must release the returned value using stream_Delete unless it is used as a source to another filter.

References msg_Dbg, msg_Warn, strdup(), and stream_FilterNew().

Referenced by InputSourceInit().

stream_t* stream_FilterNew ( stream_t p_source,
const char *  psz_stream_filter 
)

This function creates a new stream_t filter.

You must release it using stream_Delete unless it is used as a source to another filter.

Referenced by stream_FilterChainNew().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines