index a8e7cd0673e620c61ac9dd3564e48812f674f161..2c0e2812dd523e4b9364a6f44e1a392c91a77c15 100644 (file)
#include <gst/gst.h>
G_BEGIN_DECLS
-
-
#define GST_TYPE_FAKESINK \
(gst_fakesink_get_type())
#define GST_FAKESINK(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_FAKESINK))
#define GST_IS_FAKESINK_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FAKESINK))
-
-typedef enum {
+ typedef enum
+{
FAKESINK_STATE_ERROR_NONE = 0,
FAKESINK_STATE_ERROR_NULL_READY,
FAKESINK_STATE_ERROR_READY_PAUSED,
typedef struct _GstFakeSink GstFakeSink;
typedef struct _GstFakeSinkClass GstFakeSinkClass;
-struct _GstFakeSink {
- GstElement element;
+struct _GstFakeSink
+{
+ GstElement element;
- gboolean silent;
- gboolean dump;
- gboolean sync;
- gboolean signal_handoffs;
- GstClock *clock;
+ gboolean silent;
+ gboolean dump;
+ gboolean sync;
+ gboolean signal_handoffs;
+ GstClock *clock;
GstFakeSinkStateError state_error;
- gchar *last_message;
+ gchar *last_message;
};
-struct _GstFakeSinkClass {
+struct _GstFakeSinkClass
+{
GstElementClass parent_class;
/* signals */
- void (*handoff) (GstElement *element, GstBuffer *buf, GstPad *pad);
+ void (*handoff) (GstElement * element, GstBuffer * buf, GstPad * pad);
};
-GType gst_fakesink_get_type(void);
+GType gst_fakesink_get_type (void);
-gboolean gst_fakesink_factory_init (GstElementFactory *factory);
+gboolean gst_fakesink_factory_init (GstElementFactory * factory);
G_END_DECLS
-
#endif /* __GST_FAKESINK_H__ */