GNOME Bugzilla – Bug 720855
gst-rtsp-server: sort mount point sequence before lookup
Last modified: 2014-02-25 22:28:58 UTC
If you try to add mount point factories and then remove them without actually calling "gst_rtsp_mount_points_match" the sequence will be unsorted, and the g_sequence_lookup will fail. The documentation of g_sequence_lookup reads: This function will fail if the data contained in the sequence is unsorted.
Created attachment 264657 [details] [review] sort sequence before lookup We sort the sequence before calling g_sequence_lookup when removing mount point factories.
commit dd4c04f1b8f6a2d3cc0094d625ddfa86ba65ae26 Author: Aleix Conchillo Flaqué <aleix@oblong.com> Date: Fri Dec 20 16:39:07 2013 -0800 mount-points: sort sequence before g_sequence_lookup * gst/rtsp-server/rtsp-mount-points.c (gst_rtsp_mount_points_remove_factory): sort sequence if dirty, otherwise lookup will fail. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=720855