GNOME Bugzilla – Bug 684868
Invalid colorDepth returned for some file types
Last modified: 2012-10-06 19:41:30 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.