]> git.sesse.net Git - vlc/blobdiff - src/input/input_internal.h
stats: Add stream quality counters to Qt4 stastics by counting corrupted blocks and...
[vlc] / src / input / input_internal.h
index 13fd9950c1febb1551037110fef26db0c1124f0f..ee3dbd2d88db63a6d641506ae9d5d11aac737c24 100644 (file)
@@ -68,6 +68,9 @@ typedef struct
     bool b_can_stream_record;
     bool b_rescale_ts;
 
+    /* */
+    int64_t i_pts_delay;
+
     bool       b_eof;   /* eof of demuxer */
 
 } input_source_t;
@@ -78,16 +81,20 @@ struct input_thread_private_t
     /* Global properties */
     bool        b_can_pause;
     bool        b_can_rate_control;
+    bool        b_can_pace_control;
     double      f_fps;
+    int         i_state;
 
     /* Current state */
     int         i_rate;
     bool        b_recording;
 
-    /* Playtime configuration */
+    /* Playtime configuration and state */
     int64_t     i_start;    /* :start-time,0 by default */
     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;
@@ -115,14 +122,16 @@ struct input_thread_private_t
 
     /* 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;
 
+    /* Resources */
+    input_resource_t *p_resource;
+
     /* Stats counters */
     struct {
         counter_t *p_read_packets;
@@ -130,6 +139,8 @@ struct input_thread_private_t
         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;