From: Luotao Fu Date: Tue, 23 Dec 2008 12:25:47 +0000 (+0000) Subject: sys/fbdev/gstfbdevsink.c: Fix the Depth calculation. X-Git-Tag: 1.19.3~507^2~19718 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=382bbcbd2b83bdd17ff4e127ee429901985b95ad;p=platform%2Fupstream%2Fgstreamer.git sys/fbdev/gstfbdevsink.c: Fix the Depth calculation. Original commit message from CVS: Patch by: Luotao Fu * sys/fbdev/gstfbdevsink.c: (gst_fbdevsink_getcaps): Fix the Depth calculation. Fixes #564114. --- diff --git a/ChangeLog b/ChangeLog index eba4c35563..fd1f5f5c8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-12-23 Wim Taymans + + Patch by: Luotao Fu + + * sys/fbdev/gstfbdevsink.c: (gst_fbdevsink_getcaps): + Fix the Depth calculation. + Fixes #564114. + 2008-12-23 Wim Taymans Patch by: Arnout Vandecappelle diff --git a/sys/fbdev/gstfbdevsink.c b/sys/fbdev/gstfbdevsink.c index 0fb7d9815e..6975f55db9 100644 --- a/sys/fbdev/gstfbdevsink.c +++ b/sys/fbdev/gstfbdevsink.c @@ -188,8 +188,10 @@ gst_fbdevsink_getcaps (GstBaseSink * bsink) caps = gst_caps_from_string (GST_VIDEO_CAPS_RGB_15); gst_caps_set_simple (caps, "bpp", G_TYPE_INT, fbdevsink->varinfo.bits_per_pixel, - "depth", G_TYPE_INT, fbdevsink->varinfo.bits_per_pixel - - fbdevsink->varinfo.transp.length, + "depth", G_TYPE_INT, fbdevsink->varinfo.red.length + + fbdevsink->varinfo.green.length + + fbdevsink->varinfo.blue.length + + fbdevsink->varinfo.transp.length, "endianness", G_TYPE_INT, endianness, "red_mask", G_TYPE_INT, rmask, "green_mask", G_TYPE_INT, gmask, "blue_mask", G_TYPE_INT, bmask, NULL);