After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 669680 - external: Rygel does not update child count after removing an item from a container
external: Rygel does not update child count after removing an item from a con...
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: External plugin
0.12.x
Other Linux
: Normal normal
: ---
Assigned To: rygel-maint
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2012-02-08 14:50 UTC by Christoph Reiter (lazka)
Modified: 2012-02-09 13:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
external: Update child-count after D-Bus signal (1.81 KB, patch)
2012-02-09 11:39 UTC, Jens Georg
committed Details | Review

Description Christoph Reiter (lazka) 2012-02-08 14:50:29 UTC
After removing an item, I call PropertiesChanged on the parent container for displayname, childcount, itemcount and Updated after that.

After that, Rygel updates the container by calling ListChildren, but wants childcount+1 children.

I guess the value isn't updated in Rygel, since upnp-inspector also updates the container but shows the wrong item count (children+1).
Comment 1 Christoph Reiter (lazka) 2012-02-09 09:20:52 UTC
Here is a dbus-monitor log of the above problem:

http://paste.pocoo.org/show/547471/
Comment 2 Jens Georg 2012-02-09 11:39:05 UTC
Created attachment 207179 [details] [review]
external: Update child-count after D-Bus signal
Comment 3 Jens Georg 2012-02-09 13:28:02 UTC
Attachment 207179 [details] pushed as b41219a - external: Update child-count after D-Bus signal