mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
discoverer: report depth for video
This was returning 0 in all cases. Use the data from GstVideoFormatInfo instead.
This commit is contained in:
parent
12f85c325d
commit
b13385f96a
1 changed files with 1 additions and 1 deletions
|
@ -877,7 +877,7 @@ collect_information (GstDiscoverer * dc, const GstStructure * st,
|
|||
info->width = (guint) vinfo.width;
|
||||
info->height = (guint) vinfo.height;
|
||||
|
||||
info->depth = (guint) 0;
|
||||
info->depth = vinfo.finfo->bits * vinfo.finfo->n_components;
|
||||
|
||||
info->par_num = vinfo.par_n;
|
||||
info->par_denom = vinfo.par_d;
|
||||
|
|
Loading…
Reference in a new issue