core: Fix simple search for offset > 0
authorJens Georg <mail@jensge.org>
Sat, 28 Jan 2012 14:19:06 +0000 (15:19 +0100)
committerJens Georg <mail@jensge.org>
Sat, 28 Jan 2012 23:56:12 +0000 (00:56 +0100)
commite8cdb95008b6d71557f6fa53d26b89d866de1cd8
treeada50c4b45bc4c296a0bcd188e06ca0310e6b593
parent1ee2a14775d9640e7713f8bca4366b95e10a616e
core: Fix simple search for offset > 0

On a search request where offset was > 0 and limit was 0 due to
limiting the result set to offset the result was always a set of one.

Also total_matches was set to 0 in this case although we know the
number of total matches since using a start offset doesn't limit the
results.

https://bugzilla.gnome.org/show_bug.cgi?id=653120
src/rygel/rygel-searchable-container.vala