mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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:
parent
1e8827ed33
commit
e6b606cfa3
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue