diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2013-10-05 21:01:53 +0200 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2013-10-05 21:03:33 +0200 |
commit | b13385f96abfca2a9118adb2de7f064e3c1636ab (patch) | |
tree | 600f87a979dba83ca06bd9c75ff6a4a6592e4df4 | |
parent | 12f85c325db81e36d12bcbb348d4806eb5057458 (diff) |
discoverer: report depth for video
This was returning 0 in all cases. Use the data from GstVideoFormatInfo instead.
-rw-r--r-- | gst-libs/gst/pbutils/gstdiscoverer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/pbutils/gstdiscoverer.c b/gst-libs/gst/pbutils/gstdiscoverer.c index 73baa8eb1..95ae9f43f 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer.c +++ b/gst-libs/gst/pbutils/gstdiscoverer.c @@ -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; |