summaryrefslogtreecommitdiff
path: root/src/xine-engine/metronom.h
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2002-03-23 18:56:55 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2002-03-23 18:56:55 +0000
commitb2dfbe82d7c68198548995aa309a8883ef3da521 (patch)
treedab817ecd8e1a32a9932f89280b865592a888329 /src/xine-engine/metronom.h
parent1886d565632d0cafc381a97e066a122f6a9ccf2c (diff)
downloadxine-lib-b2dfbe82d7c68198548995aa309a8883ef3da521.tar.gz
xine-lib-b2dfbe82d7c68198548995aa309a8883ef3da521.tar.bz2
moved network buffering to a seperate file so all network/stream input plugins
can share that code. added ability to control scr adjustability to metronom (get/set options) so strict_scr is no longer needed. CVS patchset: 1620 CVS date: 2002/03/23 18:56:55
Diffstat (limited to 'src/xine-engine/metronom.h')
-rw-r--r--src/xine-engine/metronom.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/xine-engine/metronom.h b/src/xine-engine/metronom.h
index edddd2061..4f7d9ebb7 100644
--- a/src/xine-engine/metronom.h
+++ b/src/xine-engine/metronom.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: metronom.h,v 1.24 2002/03/23 13:28:36 miguelfreitas Exp $
+ * $Id: metronom.h,v 1.25 2002/03/23 18:56:56 guenter Exp $
*
* metronom: general pts => virtual calculation/assoc
*
@@ -144,12 +144,10 @@ struct metronom_s {
void (*handle_video_discontinuity) (metronom_t *this, int type, int64_t disc_off);
/*
- * manually correct audio <-> video sync
- * (this constant value is added to video vpts)
+ * set/get options for metronom, constants see below
*/
- void (*set_av_offset) (metronom_t *this, int32_t pts);
-
- int32_t (*get_av_offset) (metronom_t *this);
+ void (*set_option) (metronom_t *this, int option, int64_t value);
+ int64_t (*get_option) (metronom_t *this, int option);
/*
* system clock reference (SCR) functions
@@ -227,6 +225,7 @@ struct metronom_s {
scr_plugin_t* scr_master;
scr_plugin_t** scr_list;
pthread_t sync_thread;
+ int scr_adjustable;
pthread_mutex_t lock;
@@ -242,6 +241,13 @@ struct metronom_s {
metronom_t *metronom_init (int have_audio, void *xine);
/*
+ * metronom options
+ */
+
+#define METRONOM_SCR_ADJUSTABLE 1
+#define METRONOM_AV_OFFSET 2
+
+/*
* SCR (system clock reference) plugins
*/