summaryrefslogtreecommitdiffstats
path: root/gst/flx/flx_color.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2006-02-19 11:57:58 +0000
committerWim Taymans <wim.taymans@gmail.com>2006-02-19 11:57:58 +0000
commitb4d28290943826462216623b6f7aa01d8ee975a5 (patch)
tree28b415677fac2d8b3fee412dc37a1ed2d0a289f1 /gst/flx/flx_color.h
parentc64021f87d770e1e1ad8e62dd3be308bf05e7c53 (diff)
gst/flx/: Set MALLOCDATA for the temp buffers so we don't leak.
Original commit message from CVS: * gst/flx/flx_color.h: * gst/flx/flx_fmt.h: * gst/flx/gstflxdec.c: (gst_flxdec_init), (gst_flxdec_src_query_handler), (flx_decode_color), (gst_flxdec_chain): * gst/flx/gstflxdec.h: Set MALLOCDATA for the temp buffers so we don't leak. Some debug cleanups. Consume all data in the adapter before leaving the chain function. Fixes #330678.
Diffstat (limited to 'gst/flx/flx_color.h')
-rw-r--r--gst/flx/flx_color.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/flx/flx_color.h b/gst/flx/flx_color.h
index 673505b4..80378e1d 100644
--- a/gst/flx/flx_color.h
+++ b/gst/flx/flx_color.h
@@ -17,8 +17,13 @@
* Boston, MA 02111-1307, USA.
*/
+#ifndef __FLX_COLOR_H__
+#define __FLX_COLOR_H__
+
#include <gst/gst.h>
+G_BEGIN_DECLS
+
typedef enum {
FLX_COLORSPACE_RGB8,
FLX_COLORSPACE_RGB32,
@@ -42,3 +47,6 @@ void flx_set_palette_vector(FlxColorSpaceConverter *flxpal, guint start, guint n
void flx_set_color(FlxColorSpaceConverter *flxpal, guint colr, guint red, guint green,
guint blue, gint scale);
+G_END_DECLS
+
+#endif /* __FLX_COLOR_H__ */