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 684868 - Invalid colorDepth returned for some file types
Invalid colorDepth returned for some file types
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: MediaExport plugin
0.15.x
Other Linux
: Normal normal
: ---
Assigned To: Jens Georg
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2012-09-26 12:11 UTC by Mark Ryan
Modified: 2012-10-06 19:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to ignore invalid colorDepths (1.92 KB, patch)
2012-09-26 12:11 UTC, Mark Ryan
committed Details | Review

Description Mark Ryan 2012-09-26 12:11:42 UTC
Created attachment 225203 [details] [review]
Patch to ignore invalid colorDepths

media-export calls the GStreamer function gst_discoverer_video_info_get_depth to determine the color depth of images and videos.  When this function fails it returns 0.  The media-export plugin is not currently testing for this error case and is treating 0 as a valid color depth.  Rygel in turn is reporting a color depth of 0 for some files indexed by media export.  This seems to happen for all JPEGs on my machine.

I have attached a patch that fixes the problem by preventing Rygel from returning a colorDepth resource for items whose color depth cannot be determined by gst_discoverer_video_info_get_depth.