discovere: also parse encoded formats

The video library can now also parse encoded formats so use this to fill up the
width/height and other properties.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=681535
This commit is contained in:
Wim Taymans 2012-08-13 11:27:47 +02:00
parent 1e8827ed33
commit e6b606cfa3

View file

@ -824,11 +824,7 @@ collect_information (GstDiscoverer * dc, const GstStructure * st,
info->parent.caps = gst_caps_ref (caps);
}
/* FIXME : gst_video_info_from_caps only works with raw caps,
* wouldn't we want to get all the info below for non-raw caps ?
*/
if (g_str_has_prefix (name, "video/x-raw") &&
gst_video_info_from_caps (&vinfo, caps)) {
if (gst_video_info_from_caps (&vinfo, caps)) {
info->width = (guint) vinfo.width;
info->height = (guint) vinfo.height;