summaryrefslogtreecommitdiffstats
path: root/gst/flx/gstflxdec.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/gstflxdec.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/gstflxdec.h')
-rw-r--r--gst/flx/gstflxdec.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/gst/flx/gstflxdec.h b/gst/flx/gstflxdec.h
index 0da91284..16e7b8eb 100644
--- a/gst/flx/gstflxdec.h
+++ b/gst/flx/gstflxdec.h
@@ -25,9 +25,7 @@
#include <gst/base/gstadapter.h>
#include "flx_color.h"
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
typedef enum {
GST_FLXDEC_READ_HEADER,
@@ -51,6 +49,7 @@ struct _GstFlxDec {
GstFlxDecState state;
glong frame_time;
gint64 next_time;
+ gint64 duration;
FlxColorSpaceConverter *converter;
@@ -78,10 +77,6 @@ struct _GstFlxDecClass {
/* Standard function returning type information. */
GType gst_flxdec_get_type(void);
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
#endif /* __GST_FLX_DECODER_H__ */