playloop: don't refresh seek on external sub streams

External subtitles are always read as eager, so they do not need to be
changed on pause/unpause. Don't do the refresh seek since it will just
buffer forever. Fixes f40bbfec4f.
This commit is contained in:
Dudemanguy 2023-09-28 08:49:50 -05:00
parent f40bbfec4f
commit f9234d890a
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ void set_pause_state(struct MPContext *mpctx, bool user_pause)
double pts = get_current_time(mpctx);
for (int n = 0; n < num_ptracks[STREAM_SUB]; n++) {
struct track *track = mpctx->current_track[n][STREAM_SUB];
if (track)
if (track && !track->is_external)
demuxer_refresh_track(mpctx->demuxer, track->stream, pts, mpctx->paused);
}
}