summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/dash/gstmpdparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c
index df96c57f3..778ab2ea5 100644
--- a/ext/dash/gstmpdparser.c
+++ b/ext/dash/gstmpdparser.c
@@ -4708,7 +4708,7 @@ gst_mpd_client_stream_seek (GstMpdClient * client, GstActiveStream * stream,
if (index + 1 >= stream->segments->len) {
selectedChunk = NULL;
} else {
- selectedChunk = g_ptr_array_index (stream->segments, index + 1);
+ selectedChunk = g_ptr_array_index (stream->segments, ++index);
}
}
}