docs: another sweep canonicalizing the plugin docs sections file

Use underscores for capsfilter macros. Correct the type-name for fakesrc
if we ever implement the enum.
This commit is contained in:
Stefan Sauer 2015-07-03 12:37:54 +02:00
parent feadd6a1f1
commit c11e5d0f7d
4 changed files with 28 additions and 27 deletions

View file

@ -4,13 +4,14 @@
GstCapsFilter
<SUBSECTION Standard>
GstCapsFilterClass
GST_CAPSFILTER
GST_IS_CAPSFILTER
GST_TYPE_CAPSFILTER
GST_CAPSFILTER_CLASS
GST_IS_CAPSFILTER_CLASS
GST_CAPS_FILTER
GST_CAPS_FILTER_CAST
GST_IS_CAPS_FILTER
GST_CAPS_FILTER_CLASS
GST_IS_CAPS_FILTER_CLASS
GST_TYPE_CAPS_FILTER
<SUBSECTION Private>
gst_capsfilter_get_type
gst_caps_filter_get_type
</SECTION>
<SECTION>

View file

@ -175,7 +175,7 @@ static void
gst_capsfilter_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
GstCapsFilter *capsfilter = GST_CAPSFILTER (object);
GstCapsFilter *capsfilter = GST_CAPS_FILTER (object);
switch (prop_id) {
case PROP_FILTER_CAPS:{
@ -226,7 +226,7 @@ static void
gst_capsfilter_get_property (GObject * object, guint prop_id, GValue * value,
GParamSpec * pspec)
{
GstCapsFilter *capsfilter = GST_CAPSFILTER (object);
GstCapsFilter *capsfilter = GST_CAPS_FILTER (object);
switch (prop_id) {
case PROP_FILTER_CAPS:
@ -246,7 +246,7 @@ gst_capsfilter_get_property (GObject * object, guint prop_id, GValue * value,
static void
gst_capsfilter_dispose (GObject * object)
{
GstCapsFilter *filter = GST_CAPSFILTER (object);
GstCapsFilter *filter = GST_CAPS_FILTER (object);
gst_caps_replace (&filter->filter_caps, NULL);
g_list_free_full (filter->pending_events, (GDestroyNotify) gst_event_unref);
@ -259,7 +259,7 @@ static GstCaps *
gst_capsfilter_transform_caps (GstBaseTransform * base,
GstPadDirection direction, GstCaps * caps, GstCaps * filter)
{
GstCapsFilter *capsfilter = GST_CAPSFILTER (base);
GstCapsFilter *capsfilter = GST_CAPS_FILTER (base);
GstCaps *ret, *filter_caps, *tmp;
gboolean retried = FALSE;
GstCapsFilterCapsChangeMode caps_change_mode;
@ -314,7 +314,7 @@ static gboolean
gst_capsfilter_accept_caps (GstBaseTransform * base,
GstPadDirection direction, GstCaps * caps)
{
GstCapsFilter *capsfilter = GST_CAPSFILTER (base);
GstCapsFilter *capsfilter = GST_CAPS_FILTER (base);
GstCaps *filter_caps;
gboolean ret;
@ -397,7 +397,7 @@ gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input,
GstBuffer ** buf)
{
GstFlowReturn ret = GST_FLOW_OK;
GstCapsFilter *filter = GST_CAPSFILTER (trans);
GstCapsFilter *filter = GST_CAPS_FILTER (trans);
/* always return the input as output buffer */
*buf = input;
@ -473,7 +473,7 @@ gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input,
static gboolean
gst_capsfilter_sink_event (GstBaseTransform * trans, GstEvent * event)
{
GstCapsFilter *filter = GST_CAPSFILTER (trans);
GstCapsFilter *filter = GST_CAPS_FILTER (trans);
gboolean ret;
if (GST_EVENT_TYPE (event) == GST_EVENT_FLUSH_STOP) {
@ -554,7 +554,7 @@ done:
static gboolean
gst_capsfilter_stop (GstBaseTransform * trans)
{
GstCapsFilter *filter = GST_CAPSFILTER (trans);
GstCapsFilter *filter = GST_CAPS_FILTER (trans);
g_list_free_full (filter->pending_events, (GDestroyNotify) gst_event_unref);
filter->pending_events = NULL;

View file

@ -21,8 +21,8 @@
*/
#ifndef __GST_CAPSFILTER_H__
#define __GST_CAPSFILTER_H__
#ifndef __GST_CAPS_FILTER_H__
#define __GST_CAPS_FILTER_H__
#include <gst/gst.h>
@ -30,16 +30,16 @@
G_BEGIN_DECLS
#define GST_TYPE_CAPSFILTER \
#define GST_TYPE_CAPS_FILTER \
(gst_capsfilter_get_type())
#define GST_CAPSFILTER(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CAPSFILTER,GstCapsFilter))
#define GST_CAPSFILTER_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CAPSFILTER,GstCapsFilterClass))
#define GST_IS_CAPSFILTER(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CAPSFILTER))
#define GST_IS_CAPSFILTER_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CAPSFILTER))
#define GST_CAPS_FILTER(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CAPS_FILTER,GstCapsFilter))
#define GST_CAPS_FILTER_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CAPS_FILTER,GstCapsFilterClass))
#define GST_IS_CAPS_FILTER(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CAPS_FILTER))
#define GST_IS_CAPS_FILTER_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CAPS_FILTER))
typedef struct _GstCapsFilter GstCapsFilter;
typedef struct _GstCapsFilterClass GstCapsFilterClass;
@ -72,5 +72,5 @@ G_GNUC_INTERNAL GType gst_capsfilter_get_type (void);
G_END_DECLS
#endif /* __GST_CAPSFILTER_H__ */
#endif /* __GST_CAPS_FILTER_H__ */

View file

@ -131,7 +131,7 @@ gst_fake_src_output_get_type (void)
if (!fakesrc_output_type) {
fakesrc_output_type =
g_enum_register_static ("GstFakeSrcOutput", fakesrc_output);
g_enum_register_static ("GstFakeSrcOutputType", fakesrc_output);
}
return fakesrc_output_type;
}