We know these values don't change during the loop, but the compiler
doesn't and has to re-check them for every iteration.
if (demux->index && demux->times && demux->filepositions
&& !demux->random_access) {
+ guint num;
+
/* If an index was found and we're in push mode, insert associations */
- for (i = 0; i < MIN (demux->times->len, demux->filepositions->len); i++) {
+ num = MIN (demux->times->len, demux->filepositions->len);
+ for (i = 0; i < num; i++) {
GstIndexAssociation associations[2];
guint64 time, fileposition;