From 8700c75544d88f1479d5455b5b2788921d4dd5ee Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Sat, 9 Feb 2002 07:13:22 +0000 Subject: the long-awaited video_out changes, not completely debuged (races) - pts are 64 bit now - scr and video_out-loop run all the time - video_out cleanups - metronom cleanups - buffer type BUF_CONTROL_DISCONTINUITY is used internally now, input plugins should no longer send this one - support for individual frame durations - using nano-/usleep instead of itimer (simpler code, maybe this will help freebsd) CVS patchset: 1487 CVS date: 2002/02/09 07:13:22 --- src/libsputext/xine_decoder.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/libsputext') diff --git a/src/libsputext/xine_decoder.c b/src/libsputext/xine_decoder.c index 2fb5725a9..90eb173cf 100644 --- a/src/libsputext/xine_decoder.c +++ b/src/libsputext/xine_decoder.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: xine_decoder.c,v 1.11 2002/01/08 16:47:56 cvogler Exp $ + * $Id: xine_decoder.c,v 1.12 2002/02/09 07:13:23 guenter Exp $ * * code based on mplayer module: * @@ -791,14 +791,14 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) { } else { - uint32_t pts, pts_end; - int32_t pts_factor; + int64_t pts, pts_end; + int64_t pts_factor; int frame_num; subtitle_t *subtitle; subtitle = NULL; - pts = buf->PTS; + pts = buf->pts; pts_end = pts; frame_num = buf->decoder_info[1]; @@ -820,7 +820,10 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) { if (subtitle->start > frame_num) return; + /* FIXME FIXME FIXME pts_factor = this->xine->metronom->get_video_rate (this->xine->metronom); + */ + pts_factor = 3000; pts += this->xine->metronom->video_wrap_offset; -- cgit v1.2.3