From b0558e48b184cb9a4555d8156d86bebe2315690f Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 12 Dec 2012 23:05:57 +0100 Subject: cleanup: remove ao.brokenpts This field was used by ao_v4l2, and is now unused. --- core/mplayer.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'core') diff --git a/core/mplayer.c b/core/mplayer.c index e18acf9eac..c68c4f3dc2 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -2156,9 +2156,6 @@ static int write_to_ao(struct MPContext *mpctx, void *data, int len, int flags, struct ao *ao = mpctx->ao; double bps = ao->bps / mpctx->opts.playback_speed; ao->pts = pts; - // hack used by some mpeg-writing AOs - ao->brokenpts = ((mpctx->sh_video ? mpctx->sh_video->timer : 0) + - mpctx->delay) * 90000.0; int played = ao_play(mpctx->ao, data, len, flags); if (played > 0) { mpctx->delay += played / bps; @@ -2269,10 +2266,6 @@ static int fill_audio_out_buffers(struct MPContext *mpctx, double endpts) bool modifiable_audio_format = !(ao->format & AF_FORMAT_SPECIAL_MASK); int unitsize = ao->channels * af_fmt2bits(ao->format) / 8; - // hack used by some mpeg-writing AOs - ao->brokenpts = ((mpctx->sh_video ? mpctx->sh_video->timer : 0) + - mpctx->delay) * 90000.0; - if (mpctx->paused) playsize = 1; // just initialize things (audio pts at least) else -- cgit v1.2.3