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 668335 - rygel hits endless loop when coping file to empty media directory
rygel hits endless loop when coping file to empty media directory
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: MediaExport plugin
git master
Other Linux
: Normal normal
: ---
Assigned To: Jens Georg
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2012-01-20 12:35 UTC by Lukasz Pawlik
Modified: 2012-01-20 21:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
media-export: Fix endless loop (4.33 KB, patch)
2012-01-20 21:20 UTC, Jens Georg
committed Details | Review

Description Lukasz Pawlik 2012-01-20 12:35:25 UTC
Preconditions:
Have MediaExport plugin enabled and empty media directory.

Steps to reproduce:
1. Run rygel
2. Copy media file to media directory.

Results:
rygel hits endless loop:
(rygel:13520): GLib-GIO-CRITICAL **: g_file_get_parent: assertion `G_IS_FILE (file)' failed

(rygel:13520): MediaExport-CRITICAL **: rygel_media_export_media_cache_get_id: assertion `file != NULL' failed

(rygel:13520): MediaExport-CRITICAL **: rygel_media_export_media_cache_get_object: assertion `object_id != NULL' failed
Comment 1 Jens Georg 2012-01-20 20:34:35 UTC
Fall-back to root container is missing...
Comment 2 Jens Georg 2012-01-20 21:20:02 UTC
The following fix has been pushed:
c6e60de media-export: Fix endless loop
Comment 3 Jens Georg 2012-01-20 21:20:05 UTC
Created attachment 205732 [details] [review]
media-export: Fix endless loop

If a file is added in a directory tree that didn't contain anything
sharable before, the code would loop endlessly marching up the
filesystem hierarchy.