bool b_can_stream_record;
bool b_rescale_ts;
+ /* */
+ int64_t i_pts_delay;
+
bool b_eof; /* eof of demuxer */
} input_source_t;
+typedef struct
+{
+ int i_type;
+ vlc_value_t val;
+} input_control_t;
+
/** Private input fields */
struct input_thread_private_t
{
/* Global properties */
bool b_can_pause;
bool b_can_rate_control;
+ bool b_can_pace_control;
double f_fps;
-
- /* Internal caching common to all sources */
- mtime_t i_pts_delay;
+ int i_state;
/* Current state */
int i_rate;
int64_t i_stop; /* :stop-time, 0 if none */
int64_t i_run; /* :run-time, 0 if none */
int64_t i_time; /* Current time */
+ bool b_fast_seek;/* :input-fast-seek */
/* Title infos FIXME multi-input (not easy) ? */
int i_title;
/* Input item */
input_item_t *p_item;
- /* Clock average variation */
- int i_cr_average;
+
/* Main source */
input_source_t input;
/* Slave sources (subs, and others) */
int i_slave;
input_source_t **slave;
- /* Ressources */
- input_ressource_t *p_ressource;
+ /* Resources */
+ input_resource_t *p_resource;
/* Stats counters */
struct {
counter_t *p_input_bitrate;
counter_t *p_demux_read;
counter_t *p_demux_bitrate;
+ counter_t *p_demux_corrupted;
+ counter_t *p_demux_discontinuity;
counter_t *p_decoded_audio;
counter_t *p_decoded_video;
counter_t *p_decoded_sub;
vlc_mutex_t lock_control;
vlc_cond_t wait_control;
int i_control;
- struct
- {
- /* XXX for string value you have to allocate it before calling
- * input_ControlPush */
- int i_type;
- vlc_value_t val;
- } control[INPUT_CONTROL_FIFO_SIZE];
+ input_control_t control[INPUT_CONTROL_FIFO_SIZE];
+
+ bool b_abort;
};
/***************************************************************************
};
/* Internal helpers */
+
+/* XXX for string value you have to allocate it before calling
+ * input_ControlPush
+ */
void input_ControlPush( input_thread_t *, int i_type, vlc_value_t * );
/**********************************************************************