Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef LIBVLC_INPUT_DEMUX_H
00026 #define LIBVLC_INPUT_DEMUX_H 1
00027
00028 #include <vlc_common.h>
00029 #include <vlc_demux.h>
00030
00031 #include "stream.h"
00032
00033
00034 demux_t *demux_New( vlc_object_t *p_obj, input_thread_t *p_parent_input, const char *psz_access, const char *psz_demux, const char *psz_path, stream_t *s, es_out_t *out, bool );
00035 #define demux_New( a, b, c, d, e, f, g, h ) demux_New(VLC_OBJECT(a),b,c,d,e,f,g,h)
00036
00037 void demux_Delete( demux_t * );
00038
00039 static inline int demux_Demux( demux_t *p_demux )
00040 {
00041 if( !p_demux->pf_demux )
00042 return 1;
00043
00044 return p_demux->pf_demux( p_demux );
00045 }
00046 static inline int demux_vaControl( demux_t *p_demux, int i_query, va_list args )
00047 {
00048 return p_demux->pf_control( p_demux, i_query, args );
00049 }
00050 static inline int demux_Control( demux_t *p_demux, int i_query, ... )
00051 {
00052 va_list args;
00053 int i_result;
00054
00055 va_start( args, i_query );
00056 i_result = demux_vaControl( p_demux, i_query, args );
00057 va_end( args );
00058 return i_result;
00059 }
00060
00061 #endif