summaryrefslogtreecommitdiffstats
path: root/player/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/misc.c')
-rw-r--r--player/misc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/player/misc.c b/player/misc.c
index e50ea6b143..3ae4a8ab9a 100644
--- a/player/misc.c
+++ b/player/misc.c
@@ -100,8 +100,9 @@ double get_main_demux_pts(struct MPContext *mpctx)
double main_new_pos = MP_NOPTS_VALUE;
if (mpctx->demuxer) {
for (int n = 0; n < mpctx->demuxer->num_streams; n++) {
- if (main_new_pos == MP_NOPTS_VALUE)
- main_new_pos = demux_get_next_pts(mpctx->demuxer->streams[n]);
+ struct sh_stream *stream = mpctx->demuxer->streams[n];
+ if (main_new_pos == MP_NOPTS_VALUE && stream->type != STREAM_SUB)
+ main_new_pos = demux_get_next_pts(stream);
}
}
return main_new_pos;