mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 10:42:22 +00:00
discoverer: Only call gst_video_info_from_caps on raw video
This commit is contained in:
parent
6eb5f5b13e
commit
8268a7a20e
1 changed files with 5 additions and 1 deletions
|
@ -692,7 +692,11 @@ collect_information (GstDiscoverer * dc, const GstStructure * st,
|
|||
info->parent.caps = caps;
|
||||
}
|
||||
|
||||
if (gst_video_info_from_caps (&vinfo, 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)) {
|
||||
info->width = (guint) vinfo.width;
|
||||
info->height = (guint) vinfo.height;
|
||||
|
||||
|
|
Loading…
Reference in a new issue