summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux.c')
-rw-r--r--demux/demux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demux/demux.c b/demux/demux.c
index 50fc32cb96..61c8e40b8c 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -309,8 +309,8 @@ int demux_add_packet(struct sh_stream *stream, demux_packet_t *dp)
if (ds->refreshing) {
// Resume reading once the old position was reached (i.e. we start
// returning packets where we left off before the refresh).
- drop = true;
- if (dp->pos == ds->last_pos)
+ drop = dp->pos <= ds->last_pos;
+ if (dp->pos >= ds->last_pos)
ds->refreshing = false;
}