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 committed 2023-09-28 08:58:02 -05:00
1 parent f40bbfec4f
commit f9234d890a
1 file changed
+1 -1
+1 -1
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);
}
}