commit | 21b01acef100cc08879d653068ab5dcbd76dc1d7 | [log] [tgz] |
---|---|---|
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | Thu Jan 11 17:47:39 2018 -0500 |
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | Thu Jan 11 17:51:13 2018 -0500 |
tree | 44a68abe388537ca0b066cecccba8dfd8cc2ccc7 | |
parent | b3afa0dc1da53df65361e05a589a0e844d7947b3 [diff] |
v4l2src: Maintain downstream caps order The g_list_insert_sorted() will behave like prepend when the compare function returns 0. In our case, we want to maintain the order hence append. This fixes this issue and improve the sorting algorithm to make a 10x10 prefered over 10x200 with a preference of 10x8 (and similar cases which was badly handled). This fixes generally fixes issue were a sub-optimal format / size is picked. https://bugzilla.gnome.org/show_bug.cgi?id=792435