discovere: also parse encoded formats
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 13 Aug 2012 09:27:47 +0000 (11:27 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 13 Aug 2012 09:27:47 +0000 (11:27 +0200)
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

gst-libs/gst/pbutils/gstdiscoverer.c

index 2357a2f..07e2d04 100644 (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;