GNOME Bugzilla – Bug 706797
Upload fails for some media types
Last modified: 2013-08-28 09:42:45 UTC
Trying to upload some files that used to work with previous Rygel versions now fail: (lt-rygel:13218): Rygel-WARNING **: Failed to create item under '29d2939b9a77278c2314d551befdf8d2': DLNA profile 'JPEG_SM' not supported (lt-rygel:13218): Rygel-WARNING **: Failed to create item under '29d2939b9a77278c2314d551befdf8d2': DLNA profile 'PNG_TN' not supported The upload works fine with .ogg, .mp4 files, but fails for .jpg, .png for instance.
JPEG_SM is weird. PNG_TN is not much of a bug because it should only be used for thumbnails; files present in the DLNA server should use PNG_LRG only (That's defined somewhere in the media format guidelines IIRC, at least we had to remove *_TN and *_ICO profiles from Rygel for certification) Is the client using X_GetDLNAUploadProfiles?
No the client app does not make use of X_GetDLNAUploadProfile. I get errors for JPEG_LRG and PNG_LRG too: (lt-rygel:17050): Rygel-WARNING **: Failed to create item under '29d2939b9a77278c2314d551befdf8d2': DLNA profile 'PNG_LRG' not supported (lt-rygel:17050): Rygel-WARNING **: Failed to create item under '29d2939b9a77278c2314d551befdf8d2': DLNA profile 'JPEG_LRG' not supported
Yeah, I can reproduce this.
After debugging, the problem comes from Rygel.MediaServerPlugin::upload_profiles that returned an empty list. I am attaching a patch proposal to fix this.
Created attachment 253227 [details] [review] Fix the empty upload_profiles list
Thanks!