Skip to content
Snippets Groups Projects
Commit 59642478 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller :tropical_fish:
Browse files

mount-points: bail out of loop again when matching mount points

Previous patch led to us iterating the entire sequence. Bail out
of the loop again if we have a match but are moving away from it.

https://bugzilla.gnome.org/show_bug.cgi?id=771555
parent f5b99d8f
No related branches found
No related tags found
No related merge requests found
......@@ -277,6 +277,11 @@ gst_rtsp_mount_points_match (GstRTSPMountPoints * mounts,
data_item_dump (ritem, "new best: ");
}
best = iter;
} else {
/* if have a match and the current item doesn't prefix match the best we
* found so far then we're moving away and can bail out of the loop */
if (best != NULL && !has_prefix (ritem, g_sequence_get (best)))
break;
}
iter = g_sequence_iter_next (iter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment