Total matches might be lower than number of items returned on browse
Submitted by Richard Röjfors
Link to original bug (#732391)
Description
Created attachment 279487 Proposed change
Currently rygel-browse checks child_count before browsing the container. The browse might take time and changes might happen to the container during the browse. This might result in that the number of returned items is greater than the total total matches. In that case update total matches to the number of returned items.
This is not perfect, we could check the new child_count of the container, but what if the count is below the number of returned items, should we throw the items and browse again? This results in some kind of odd loop.
This also covers for an issue in the rygel-simple-root-container. If is has create_mode_enabled it returns all children, while child_count is only set to the non-empty children.
Patch 279487, "Proposed change":
0001-rygel-browse-Make-sure-totalmatches-number-of-return.patch
Version: git master