mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 05:22:30 +00:00
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:
parent
feadd6a1f1
commit
c11e5d0f7d
4 changed files with 28 additions and 27 deletions
|
@ -4,13 +4,14 @@
|
||||||
GstCapsFilter
|
GstCapsFilter
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
GstCapsFilterClass
|
GstCapsFilterClass
|
||||||
GST_CAPSFILTER
|
GST_CAPS_FILTER
|
||||||
GST_IS_CAPSFILTER
|
GST_CAPS_FILTER_CAST
|
||||||
GST_TYPE_CAPSFILTER
|
GST_IS_CAPS_FILTER
|
||||||
GST_CAPSFILTER_CLASS
|
GST_CAPS_FILTER_CLASS
|
||||||
GST_IS_CAPSFILTER_CLASS
|
GST_IS_CAPS_FILTER_CLASS
|
||||||
|
GST_TYPE_CAPS_FILTER
|
||||||
<SUBSECTION Private>
|
<SUBSECTION Private>
|
||||||
gst_capsfilter_get_type
|
gst_caps_filter_get_type
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
<SECTION>
|
<SECTION>
|
||||||
|
|
|
@ -175,7 +175,7 @@ static void
|
||||||
gst_capsfilter_set_property (GObject * object, guint prop_id,
|
gst_capsfilter_set_property (GObject * object, guint prop_id,
|
||||||
const GValue * value, GParamSpec * pspec)
|
const GValue * value, GParamSpec * pspec)
|
||||||
{
|
{
|
||||||
GstCapsFilter *capsfilter = GST_CAPSFILTER (object);
|
GstCapsFilter *capsfilter = GST_CAPS_FILTER (object);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_FILTER_CAPS:{
|
case PROP_FILTER_CAPS:{
|
||||||
|
@ -226,7 +226,7 @@ static void
|
||||||
gst_capsfilter_get_property (GObject * object, guint prop_id, GValue * value,
|
gst_capsfilter_get_property (GObject * object, guint prop_id, GValue * value,
|
||||||
GParamSpec * pspec)
|
GParamSpec * pspec)
|
||||||
{
|
{
|
||||||
GstCapsFilter *capsfilter = GST_CAPSFILTER (object);
|
GstCapsFilter *capsfilter = GST_CAPS_FILTER (object);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_FILTER_CAPS:
|
case PROP_FILTER_CAPS:
|
||||||
|
@ -246,7 +246,7 @@ gst_capsfilter_get_property (GObject * object, guint prop_id, GValue * value,
|
||||||
static void
|
static void
|
||||||
gst_capsfilter_dispose (GObject * object)
|
gst_capsfilter_dispose (GObject * object)
|
||||||
{
|
{
|
||||||
GstCapsFilter *filter = GST_CAPSFILTER (object);
|
GstCapsFilter *filter = GST_CAPS_FILTER (object);
|
||||||
|
|
||||||
gst_caps_replace (&filter->filter_caps, NULL);
|
gst_caps_replace (&filter->filter_caps, NULL);
|
||||||
g_list_free_full (filter->pending_events, (GDestroyNotify) gst_event_unref);
|
g_list_free_full (filter->pending_events, (GDestroyNotify) gst_event_unref);
|
||||||
|
@ -259,7 +259,7 @@ static GstCaps *
|
||||||
gst_capsfilter_transform_caps (GstBaseTransform * base,
|
gst_capsfilter_transform_caps (GstBaseTransform * base,
|
||||||
GstPadDirection direction, GstCaps * caps, GstCaps * filter)
|
GstPadDirection direction, GstCaps * caps, GstCaps * filter)
|
||||||
{
|
{
|
||||||
GstCapsFilter *capsfilter = GST_CAPSFILTER (base);
|
GstCapsFilter *capsfilter = GST_CAPS_FILTER (base);
|
||||||
GstCaps *ret, *filter_caps, *tmp;
|
GstCaps *ret, *filter_caps, *tmp;
|
||||||
gboolean retried = FALSE;
|
gboolean retried = FALSE;
|
||||||
GstCapsFilterCapsChangeMode caps_change_mode;
|
GstCapsFilterCapsChangeMode caps_change_mode;
|
||||||
|
@ -314,7 +314,7 @@ static gboolean
|
||||||
gst_capsfilter_accept_caps (GstBaseTransform * base,
|
gst_capsfilter_accept_caps (GstBaseTransform * base,
|
||||||
GstPadDirection direction, GstCaps * caps)
|
GstPadDirection direction, GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstCapsFilter *capsfilter = GST_CAPSFILTER (base);
|
GstCapsFilter *capsfilter = GST_CAPS_FILTER (base);
|
||||||
GstCaps *filter_caps;
|
GstCaps *filter_caps;
|
||||||
gboolean ret;
|
gboolean ret;
|
||||||
|
|
||||||
|
@ -397,7 +397,7 @@ gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input,
|
||||||
GstBuffer ** buf)
|
GstBuffer ** buf)
|
||||||
{
|
{
|
||||||
GstFlowReturn ret = GST_FLOW_OK;
|
GstFlowReturn ret = GST_FLOW_OK;
|
||||||
GstCapsFilter *filter = GST_CAPSFILTER (trans);
|
GstCapsFilter *filter = GST_CAPS_FILTER (trans);
|
||||||
|
|
||||||
/* always return the input as output buffer */
|
/* always return the input as output buffer */
|
||||||
*buf = input;
|
*buf = input;
|
||||||
|
@ -473,7 +473,7 @@ gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input,
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_capsfilter_sink_event (GstBaseTransform * trans, GstEvent * event)
|
gst_capsfilter_sink_event (GstBaseTransform * trans, GstEvent * event)
|
||||||
{
|
{
|
||||||
GstCapsFilter *filter = GST_CAPSFILTER (trans);
|
GstCapsFilter *filter = GST_CAPS_FILTER (trans);
|
||||||
gboolean ret;
|
gboolean ret;
|
||||||
|
|
||||||
if (GST_EVENT_TYPE (event) == GST_EVENT_FLUSH_STOP) {
|
if (GST_EVENT_TYPE (event) == GST_EVENT_FLUSH_STOP) {
|
||||||
|
@ -554,7 +554,7 @@ done:
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_capsfilter_stop (GstBaseTransform * trans)
|
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);
|
g_list_free_full (filter->pending_events, (GDestroyNotify) gst_event_unref);
|
||||||
filter->pending_events = NULL;
|
filter->pending_events = NULL;
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef __GST_CAPSFILTER_H__
|
#ifndef __GST_CAPS_FILTER_H__
|
||||||
#define __GST_CAPSFILTER_H__
|
#define __GST_CAPS_FILTER_H__
|
||||||
|
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
@ -30,16 +30,16 @@
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_CAPSFILTER \
|
#define GST_TYPE_CAPS_FILTER \
|
||||||
(gst_capsfilter_get_type())
|
(gst_capsfilter_get_type())
|
||||||
#define GST_CAPSFILTER(obj) \
|
#define GST_CAPS_FILTER(obj) \
|
||||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CAPSFILTER,GstCapsFilter))
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CAPS_FILTER,GstCapsFilter))
|
||||||
#define GST_CAPSFILTER_CLASS(klass) \
|
#define GST_CAPS_FILTER_CLASS(klass) \
|
||||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CAPSFILTER,GstCapsFilterClass))
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CAPS_FILTER,GstCapsFilterClass))
|
||||||
#define GST_IS_CAPSFILTER(obj) \
|
#define GST_IS_CAPS_FILTER(obj) \
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CAPSFILTER))
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CAPS_FILTER))
|
||||||
#define GST_IS_CAPSFILTER_CLASS(klass) \
|
#define GST_IS_CAPS_FILTER_CLASS(klass) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CAPSFILTER))
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CAPS_FILTER))
|
||||||
|
|
||||||
typedef struct _GstCapsFilter GstCapsFilter;
|
typedef struct _GstCapsFilter GstCapsFilter;
|
||||||
typedef struct _GstCapsFilterClass GstCapsFilterClass;
|
typedef struct _GstCapsFilterClass GstCapsFilterClass;
|
||||||
|
@ -72,5 +72,5 @@ G_GNUC_INTERNAL GType gst_capsfilter_get_type (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_CAPSFILTER_H__ */
|
#endif /* __GST_CAPS_FILTER_H__ */
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ gst_fake_src_output_get_type (void)
|
||||||
|
|
||||||
if (!fakesrc_output_type) {
|
if (!fakesrc_output_type) {
|
||||||
fakesrc_output_type =
|
fakesrc_output_type =
|
||||||
g_enum_register_static ("GstFakeSrcOutput", fakesrc_output);
|
g_enum_register_static ("GstFakeSrcOutputType", fakesrc_output);
|
||||||
}
|
}
|
||||||
return fakesrc_output_type;
|
return fakesrc_output_type;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue