summaryrefslogtreecommitdiff
path: root/src/xine-engine/metronom.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-07-08 18:15:54 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-07-08 18:15:54 +0000
commitc980a592bd835f2c0826e4f0638cef3fabd70ee7 (patch)
treeecf5e9adcd28cabe0d59e0842780a1dbb3cc0633 /src/xine-engine/metronom.c
parentfbf6214d84dbed2b9e22da164748eca8c762cb82 (diff)
downloadxine-lib-c980a592bd835f2c0826e4f0638cef3fabd70ee7.tar.gz
xine-lib-c980a592bd835f2c0826e4f0638cef3fabd70ee7.tar.bz2
subtitle patches from james
CVS patchset: 259 CVS date: 2001/07/08 18:15:54
Diffstat (limited to 'src/xine-engine/metronom.c')
-rw-r--r--src/xine-engine/metronom.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/xine-engine/metronom.c b/src/xine-engine/metronom.c
index ef6706ebf..bdea19b8e 100644
--- a/src/xine-engine/metronom.c
+++ b/src/xine-engine/metronom.c
@@ -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.c,v 1.14 2001/07/04 17:10:24 uid32519 Exp $
+ * $Id: metronom.c,v 1.15 2001/07/08 18:15:54 guenter Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -281,9 +281,13 @@ static void metronom_set_audio_rate (metronom_t *this, uint32_t pts_per_smpls) {
}
-static uint32_t metronom_got_spu_packet (metronom_t *this, uint32_t pts) {
- /* FIXME: not tested */
-
+static uint32_t metronom_got_spu_packet (metronom_t *this, uint32_t pts,uint32_t duration) {
+ if (pts) {
+ this->spu_vpts=pts;
+ } else {
+ pts=this->spu_vpts;
+ this->spu_vpts=this->spu_vpts;
+ }
return pts + this->video_wrap_offset;
}