debug: indent before renaming

This commit is contained in:
Stefan Kost 2009-04-15 15:43:04 +03:00
parent 787124dad6
commit 99fcc86ee4
8 changed files with 58 additions and 71 deletions

View file

@ -397,8 +397,8 @@ gst_fenced_buffer_finalize (GstFencedBuffer * buffer)
munmap (fenced_buffer->region, fenced_buffer->length); munmap (fenced_buffer->region, fenced_buffer->length);
} }
GST_MINI_OBJECT_CLASS (fenced_buffer_parent_class)-> GST_MINI_OBJECT_CLASS (fenced_buffer_parent_class)->finalize (GST_MINI_OBJECT
finalize (GST_MINI_OBJECT (buffer)); (buffer));
} }
static GstFencedBuffer * static GstFencedBuffer *

View file

@ -8,8 +8,9 @@
#include <gst/gst.h> #include <gst/gst.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C"
#endif /* __cplusplus */ {
#endif /* __cplusplus */
/* #define's don't like whitespacey bits */ /* #define's don't like whitespacey bits */
#define GST_TYPE_EFENCE \ #define GST_TYPE_EFENCE \
@ -23,27 +24,27 @@ extern "C" {
#define GST_IS_EFENCE_CLASS(klass) \ #define GST_IS_EFENCE_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_EFENCE)) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_EFENCE))
typedef struct _GstEFence GstEFence; typedef struct _GstEFence GstEFence;
typedef struct _GstEFenceClass GstEFenceClass; typedef struct _GstEFenceClass GstEFenceClass;
struct _GstEFence struct _GstEFence
{ {
GstElement element; GstElement element;
GstPad *sinkpad, *srcpad; GstPad *sinkpad, *srcpad;
gboolean fence_top; gboolean fence_top;
}; };
struct _GstEFenceClass struct _GstEFenceClass
{ {
GstElementClass parent_class; GstElementClass parent_class;
}; };
GType gst_gst_efence_get_type (void); GType gst_gst_efence_get_type (void);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* __GST_EFENCE_H__ */ #endif /* __GST_EFENCE_H__ */

View file

@ -24,7 +24,6 @@
#include <gst/video/gstvideofilter.h> #include <gst/video/gstvideofilter.h>
G_BEGIN_DECLS G_BEGIN_DECLS
#define GST_TYPE_NAVIGATIONTEST \ #define GST_TYPE_NAVIGATIONTEST \
(gst_navigationtest_get_type()) (gst_navigationtest_get_type())
#define GST_NAVIGATIONTEST(obj) \ #define GST_NAVIGATIONTEST(obj) \
@ -35,7 +34,6 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NAVIGATIONTEST)) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NAVIGATIONTEST))
#define GST_IS_NAVIGATIONTEST_CLASS(klass) \ #define GST_IS_NAVIGATIONTEST_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NAVIGATIONTEST)) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NAVIGATIONTEST))
typedef struct _GstNavigationtest GstNavigationtest; typedef struct _GstNavigationtest GstNavigationtest;
typedef struct _GstNavigationtestClass GstNavigationtestClass; typedef struct _GstNavigationtestClass GstNavigationtestClass;
@ -47,23 +45,24 @@ typedef struct
guint8 cy, cu, cv; guint8 cy, cu, cv;
} ButtonClick; } ButtonClick;
struct _GstNavigationtest { struct _GstNavigationtest
{
GstVideoFilter videofilter; GstVideoFilter videofilter;
gint width, height; gint width, height;
GValue framerate; GValue framerate;
gdouble x, y; gdouble x, y;
GSList *clicks; GSList *clicks;
}; };
struct _GstNavigationtestClass { struct _GstNavigationtestClass
{
GstVideoFilterClass parent_class; GstVideoFilterClass parent_class;
}; };
GType gst_navigationtest_get_type(void); GType gst_navigationtest_get_type (void);
G_END_DECLS G_END_DECLS
#endif /* __GST_NAVIGATIONTEST_H__ */ #endif /* __GST_NAVIGATIONTEST_H__ */

View file

@ -26,7 +26,6 @@
#include <gst/base/gstbasetransform.h> #include <gst/base/gstbasetransform.h>
G_BEGIN_DECLS G_BEGIN_DECLS
#define GST_TYPE_NAVSEEK \ #define GST_TYPE_NAVSEEK \
(gst_navseek_get_type()) (gst_navseek_get_type())
#define GST_NAVSEEK(obj) \ #define GST_NAVSEEK(obj) \
@ -37,26 +36,25 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NAVSEEK)) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NAVSEEK))
#define GST_IS_NAVSEEK_CLASS(klass) \ #define GST_IS_NAVSEEK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NAVSEEK)) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NAVSEEK))
typedef struct _GstNavSeek GstNavSeek; typedef struct _GstNavSeek GstNavSeek;
typedef struct _GstNavSeekClass GstNavSeekClass; typedef struct _GstNavSeekClass GstNavSeekClass;
struct _GstNavSeek { struct _GstNavSeek
GstBaseTransform basetransform; {
GstBaseTransform basetransform;
gdouble seek_offset; gdouble seek_offset;
gboolean loop; gboolean loop;
gboolean grab_seg_start; gboolean grab_seg_start;
gboolean grab_seg_end; gboolean grab_seg_end;
GstClockTime segment_start; GstClockTime segment_start;
GstClockTime segment_end; GstClockTime segment_end;
}; };
struct _GstNavSeekClass { struct _GstNavSeekClass
{
GstBaseTransformClass parent_class; GstBaseTransformClass parent_class;
}; };
G_END_DECLS G_END_DECLS
#endif /* __GST_NAVSEEK_H__ */ #endif /* __GST_NAVSEEK_H__ */

View file

@ -23,7 +23,6 @@
#include <gst/gstbin.h> #include <gst/gstbin.h>
G_BEGIN_DECLS G_BEGIN_DECLS
#define GST_TYPE_PUSH_FILE_SRC \ #define GST_TYPE_PUSH_FILE_SRC \
(gst_push_file_src_get_type()) (gst_push_file_src_get_type())
#define GST_PUSH_FILE_SRC(obj) \ #define GST_PUSH_FILE_SRC(obj) \
@ -34,7 +33,6 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PUSH_FILE_SRC)) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PUSH_FILE_SRC))
#define GST_IS_PUSH_FILE_SRC_CLASS(klass) \ #define GST_IS_PUSH_FILE_SRC_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PUSH_FILE_SRC)) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PUSH_FILE_SRC))
typedef struct _GstPushFileSrc GstPushFileSrc; typedef struct _GstPushFileSrc GstPushFileSrc;
typedef struct _GstPushFileSrcClass GstPushFileSrcClass; typedef struct _GstPushFileSrcClass GstPushFileSrcClass;
@ -42,9 +40,9 @@ struct _GstPushFileSrc
{ {
GstBin parent; GstBin parent;
/*< private >*/ /*< private > */
GstElement *filesrc; GstElement *filesrc;
GstPad *srcpad; GstPad *srcpad;
}; };
struct _GstPushFileSrcClass struct _GstPushFileSrcClass
@ -52,9 +50,7 @@ struct _GstPushFileSrcClass
GstBinClass parent_class; GstBinClass parent_class;
}; };
GType gst_push_file_src_get_type(void); GType gst_push_file_src_get_type (void);
G_END_DECLS G_END_DECLS
#endif /* __GST_PUSH_FILE_SRC_H__ */
#endif /* __GST_PUSH_FILE_SRC_H__*/

View file

@ -28,8 +28,6 @@
#include <gst/base/gstbasetransform.h> #include <gst/base/gstbasetransform.h>
G_BEGIN_DECLS G_BEGIN_DECLS
#define GST_TYPE_TAG_INJECT \ #define GST_TYPE_TAG_INJECT \
(gst_tag_inject_get_type()) (gst_tag_inject_get_type())
#define GST_TAG_INJECT(obj) \ #define GST_TAG_INJECT(obj) \
@ -40,7 +38,6 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TAG_INJECT)) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TAG_INJECT))
#define GST_IS_TAG_INJECT_CLASS(klass) \ #define GST_IS_TAG_INJECT_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TAG_INJECT)) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TAG_INJECT))
typedef struct _GstTagInject GstTagInject; typedef struct _GstTagInject GstTagInject;
typedef struct _GstTagInjectClass GstTagInjectClass; typedef struct _GstTagInjectClass GstTagInjectClass;
@ -49,20 +46,21 @@ typedef struct _GstTagInjectClass GstTagInjectClass;
* *
* Opaque #GstTagInject data structure * Opaque #GstTagInject data structure
*/ */
struct _GstTagInject { struct _GstTagInject
GstBaseTransform element; {
GstBaseTransform element;
/*< private >*/ /*< private > */
GstTagList *tags; GstTagList *tags;
gboolean tags_sent; gboolean tags_sent;
}; };
struct _GstTagInjectClass { struct _GstTagInjectClass
{
GstBaseTransformClass parent_class; GstBaseTransformClass parent_class;
}; };
GType gst_tag_inject_get_type(void); GType gst_tag_inject_get_type (void);
G_END_DECLS G_END_DECLS
#endif /* __GST_TAG_INJECT_H__ */ #endif /* __GST_TAG_INJECT_H__ */

View file

@ -26,7 +26,6 @@
#include <gst/base/gstbasetransform.h> #include <gst/base/gstbasetransform.h>
G_BEGIN_DECLS G_BEGIN_DECLS
#define GST_TYPE_PROGRESS_REPORT \ #define GST_TYPE_PROGRESS_REPORT \
(gst_progress_report_get_type()) (gst_progress_report_get_type())
#define GST_PROGRESS_REPORT(obj) \ #define GST_PROGRESS_REPORT(obj) \
@ -37,7 +36,6 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PROGRESS_REPORT)) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PROGRESS_REPORT))
#define GST_IS_PROGRESS_REPORT_CLASS(klass) \ #define GST_IS_PROGRESS_REPORT_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PROGRESS_REPORT)) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PROGRESS_REPORT))
typedef struct _GstProgressReport GstProgressReport; typedef struct _GstProgressReport GstProgressReport;
typedef struct _GstProgressReportClass GstProgressReportClass; typedef struct _GstProgressReportClass GstProgressReportClass;
@ -62,9 +60,7 @@ struct _GstProgressReportClass
GstBaseTransformClass parent_class; GstBaseTransformClass parent_class;
}; };
GType gst_progress_report_get_type(void); GType gst_progress_report_get_type (void);
G_END_DECLS G_END_DECLS
#endif /* __GST_PROGRESS_REPORT_H__ */
#endif /* __GST_PROGRESS_REPORT_H__*/

View file

@ -25,15 +25,14 @@
typedef struct _GstTestInfo GstTestInfo; typedef struct _GstTestInfo GstTestInfo;
struct _GstTestInfo { struct _GstTestInfo
GParamSpec * (* get_spec) (const GstTestInfo *info, gboolean compare_value); {
gpointer (* new) (const GstTestInfo *info); GParamSpec *(*get_spec) (const GstTestInfo * info, gboolean compare_value);
void (* add) (gpointer test, gpointer (*new) (const GstTestInfo * info);
GstBuffer *buffer); void (*add) (gpointer test, GstBuffer * buffer);
gboolean (* finish) (gpointer test, GValue *value); gboolean (*finish) (gpointer test, GValue * value);
void (* get_value) (gpointer test, void (*get_value) (gpointer test, GValue * value);
GValue *value); void (*free) (gpointer test);
void (* free) (gpointer test);
}; };
extern const GstTestInfo tests[]; extern const GstTestInfo tests[];