diff options
author | wm4 <wm4@nowhere> | 2014-03-07 15:24:32 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-09 00:19:31 +0100 |
commit | 41f2b26d11e81095a0d8d370480e0d2459208070 (patch) | |
tree | 1b665e392be25795b8fade6d0487609f73ac90d2 /player/video.c | |
parent | 74b7001500c0901b095986fafe7dca3e5c23c7f2 (diff) | |
download | mpv-41f2b26d11e81095a0d8d370480e0d2459208070.tar.bz2 mpv-41f2b26d11e81095a0d8d370480e0d2459208070.tar.xz |
audio/out: make ao struct opaque
We want to move the AO to its own thread. There's no technical reason
for making the ao struct opaque to do this. But it helps us sleep at
night, because we can control access to shared state better.
Diffstat (limited to 'player/video.c')
-rw-r--r-- | player/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/video.c b/player/video.c index 348954c855..39a5b55a2a 100644 --- a/player/video.c +++ b/player/video.c @@ -340,7 +340,7 @@ static int check_framedrop(struct MPContext *mpctx, double frame_time) struct track *t_audio = mpctx->current_track[0][STREAM_AUDIO]; struct sh_stream *sh_audio = t_audio ? t_audio->stream : NULL; // check for frame-drop: - if (mpctx->d_audio && !mpctx->ao->untimed && sh_audio && + if (mpctx->d_audio && !ao_untimed(mpctx->ao) && sh_audio && !demux_stream_eof(sh_audio)) { float delay = opts->playback_speed * ao_get_delay(mpctx->ao); |