summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-04-01 01:12:39 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-04-01 01:12:39 +0000
commit23b23da67a988f932924aa888ae22e175869b186 (patch)
treed4b0c0dd48bfacdf4af4e1d1e33e0d8bc6285813
parent75d83745c73931327209749c32f200fa00cc44ec (diff)
downloadgst-plugins-bad-23b23da67a988f932924aa888ae22e175869b186.tar.gz
gst-plugins-bad-23b23da67a988f932924aa888ae22e175869b186.tar.bz2
gst-plugins-bad-23b23da67a988f932924aa888ae22e175869b186.zip
Fix for latest lcs.
Original commit message from CVS: Fix for latest lcs.
-rw-r--r--ext/lcs/gstcolorspace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/lcs/gstcolorspace.c b/ext/lcs/gstcolorspace.c
index 8bad1b96..291d2c4b 100644
--- a/ext/lcs/gstcolorspace.c
+++ b/ext/lcs/gstcolorspace.c
@@ -161,13 +161,13 @@ colorspace_find_lcs_format (GstCaps *caps)
gst_caps_get_fourcc_int (caps, "format", &space);
if (space == GST_MAKE_FOURCC ('R','G','B',' ')) {
- gint mask, bpp;
+ gint mask, depth;
gulong red_bits, red_shift;
gulong green_bits, green_shift;
gulong blue_bits, blue_shift;
- gst_caps_get_int (caps, "bpp", &bpp);
+ gst_caps_get_int (caps, "depth", &depth);
gst_caps_get_int (caps, "red_mask", &mask);
lcs_utils_mask_to_shift (mask, &red_bits, &red_shift);
gst_caps_get_int (caps, "green_mask", &mask);
@@ -176,7 +176,7 @@ colorspace_find_lcs_format (GstCaps *caps)
lcs_utils_mask_to_shift (mask, &blue_bits, &blue_shift);
format = lcs_format_new_simple_rgb_packed (red_bits, green_bits, blue_bits, 0,
- red_shift, green_shift, blue_shift, 0, bpp);
+ red_shift, green_shift, blue_shift, 0, depth, G_BYTE_ORDER);
g_print ("%lu %lu %lu %lu %lu %lu %s\n", red_bits, green_bits, blue_bits,
red_shift, green_shift, blue_shift, lcs_format_get_layout (format));