diff options
author | Dudemanguy <random342@airmail.cc> | 2023-09-27 21:51:49 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-27 21:51:49 -0500 |
commit | 09b04fbf0940151f5856aa4396f9b467622371a3 (patch) | |
tree | b7324ca92f240387cc3e42a8e832efd5673dae8e /sub/dec_sub.c | |
parent | c2c157ebeca3d072d4f48ff36228d01ebe888699 (diff) | |
download | mpv-09b04fbf0940151f5856aa4396f9b467622371a3.tar.bz2 mpv-09b04fbf0940151f5856aa4396f9b467622371a3.tar.xz |
Revert "demux: eagerly read subtitle streams when switching tracks while paused"
Actually, I thought of a better way of handling this shortly after
merging this. Revert it and redo it in the next commit.
This reverts commit c2c157ebeca3d072d4f48ff36228d01ebe888699.
Diffstat (limited to 'sub/dec_sub.c')
-rw-r--r-- | sub/dec_sub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/dec_sub.c b/sub/dec_sub.c index f48eea83e2..dc26aa027e 100644 --- a/sub/dec_sub.c +++ b/sub/dec_sub.c @@ -294,7 +294,7 @@ bool sub_read_packets(struct dec_sub *sub, double video_pts, bool force) double min_pts = sub->opts->sub_delay < 0 || force ? video_pts : MP_NOPTS_VALUE; struct demux_packet *pkt; - int st = demux_read_packet_async_until(sub->sh, min_pts, &pkt, force); + int st = demux_read_packet_async_until(sub->sh, min_pts, &pkt); // Note: "wait" (st==0) happens with non-interleaved streams only, and // then we should stop the playloop until a new enough packet has been // seen (or the subtitle decoder's queue is full). This usually does not |