diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2005-07-10 12:03:13 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2005-07-10 12:03:13 +0000 |
commit | 82596fea62777745f9ae2525bcbc639f45f36238 (patch) | |
tree | b1bc04ca818106bbe3d0b3040cd7011d8f823cf9 /libs | |
parent | 3127459e226ce16a9b8e2d58f47ccd9e7f026860 (diff) |
more macro splitting
Original commit message from CVS:
more macro splitting
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gst/base/gstbasesink.c | 48 | ||||
-rw-r--r-- | libs/gst/base/gstbasesink.h | 22 | ||||
-rw-r--r-- | libs/gst/base/gstbasesrc.h | 4 |
3 files changed, 37 insertions, 37 deletions
diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index 046bf99e4..ae7d15731 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -163,8 +163,8 @@ gst_base_sink_pad_getcaps (GstPad * pad) GstBaseSink *bsink; GstCaps *caps = NULL; - bsink = GST_BASESINK (GST_PAD_PARENT (pad)); - bclass = GST_BASESINK_GET_CLASS (bsink); + bsink = GST_BASE_SINK (GST_PAD_PARENT (pad)); + bclass = GST_BASE_SINK_GET_CLASS (bsink); if (bclass->get_caps) caps = bclass->get_caps (bsink); @@ -188,8 +188,8 @@ gst_base_sink_pad_setcaps (GstPad * pad, GstCaps * caps) GstBaseSink *bsink; gboolean res = FALSE; - bsink = GST_BASESINK (GST_PAD_PARENT (pad)); - bclass = GST_BASESINK_GET_CLASS (bsink); + bsink = GST_BASE_SINK (GST_PAD_PARENT (pad)); + bclass = GST_BASE_SINK_GET_CLASS (bsink); if (bclass->set_caps) res = bclass->set_caps (bsink, caps); @@ -205,8 +205,8 @@ gst_base_sink_pad_buffer_alloc (GstPad * pad, guint64 offset, guint size, GstBaseSink *bsink; GstFlowReturn result = GST_FLOW_OK; - bsink = GST_BASESINK (GST_PAD_PARENT (pad)); - bclass = GST_BASESINK_GET_CLASS (bsink); + bsink = GST_BASE_SINK (GST_PAD_PARENT (pad)); + bclass = GST_BASE_SINK_GET_CLASS (bsink); if (bclass->buffer_alloc) result = bclass->buffer_alloc (bsink, offset, size, caps, buf); @@ -247,7 +247,7 @@ gst_base_sink_finalize (GObject * object) { GstBaseSink *basesink; - basesink = GST_BASESINK (object); + basesink = GST_BASE_SINK (object); g_queue_free (basesink->preroll_queue); @@ -283,7 +283,7 @@ gst_base_sink_set_clock (GstElement * element, GstClock * clock) { GstBaseSink *sink; - sink = GST_BASESINK (element); + sink = GST_BASE_SINK (element); sink->clock = clock; } @@ -294,7 +294,7 @@ gst_base_sink_set_property (GObject * object, guint prop_id, { GstBaseSink *sink; - sink = GST_BASESINK (object); + sink = GST_BASE_SINK (object); switch (prop_id) { case PROP_HAS_LOOP: @@ -327,7 +327,7 @@ gst_base_sink_get_property (GObject * object, guint prop_id, GValue * value, { GstBaseSink *sink; - sink = GST_BASESINK (object); + sink = GST_BASE_SINK (object); GST_LOCK (sink); switch (prop_id) { @@ -485,7 +485,7 @@ gst_base_sink_handle_object (GstBaseSink * basesink, GstPad * pad, GstBaseSinkClass *bclass; GstFlowReturn pres; - bclass = GST_BASESINK_GET_CLASS (basesink); + bclass = GST_BASE_SINK_GET_CLASS (basesink); if (bclass->preroll) if ((pres = bclass->preroll (basesink, GST_BUFFER (obj))) != GST_FLOW_OK) @@ -618,9 +618,9 @@ gst_base_sink_event (GstPad * pad, GstEvent * event) gboolean result = TRUE; GstBaseSinkClass *bclass; - basesink = GST_BASESINK (GST_OBJECT_PARENT (pad)); + basesink = GST_BASE_SINK (GST_OBJECT_PARENT (pad)); - bclass = GST_BASESINK_GET_CLASS (basesink); + bclass = GST_BASE_SINK_GET_CLASS (basesink); GST_DEBUG ("event %p", event); @@ -729,7 +729,7 @@ gst_base_sink_do_sync (GstBaseSink * basesink, GstBuffer * buffer) GstClockTime start, end; GstBaseSinkClass *bclass; - bclass = GST_BASESINK_GET_CLASS (basesink); + bclass = GST_BASE_SINK_GET_CLASS (basesink); start = end = -1; if (bclass->get_times) bclass->get_times (basesink, buffer, &start, &end); @@ -802,7 +802,7 @@ gst_base_sink_handle_event (GstBaseSink * basesink, GstEvent * event) break; } - bclass = GST_BASESINK_GET_CLASS (basesink); + bclass = GST_BASE_SINK_GET_CLASS (basesink); if (bclass->event) ret = bclass->event (basesink, event); else @@ -844,7 +844,7 @@ gst_base_sink_handle_buffer (GstBaseSink * basesink, GstBuffer * buf) gst_base_sink_do_sync (basesink, buf); - bclass = GST_BASESINK_GET_CLASS (basesink); + bclass = GST_BASE_SINK_GET_CLASS (basesink); if (bclass->render) ret = bclass->render (basesink, buf); else @@ -862,7 +862,7 @@ gst_base_sink_chain (GstPad * pad, GstBuffer * buf) GstBaseSink *basesink; GstFlowReturn result; - basesink = GST_BASESINK (GST_OBJECT_PARENT (pad)); + basesink = GST_BASE_SINK (GST_OBJECT_PARENT (pad)); result = gst_base_sink_handle_object (basesink, pad, GST_MINI_OBJECT (buf)); @@ -878,7 +878,7 @@ gst_base_sink_loop (GstPad * pad) GstBuffer *buf = NULL; GstFlowReturn result; - basesink = GST_BASESINK (GST_OBJECT_PARENT (pad)); + basesink = GST_BASE_SINK (GST_OBJECT_PARENT (pad)); g_assert (basesink->pad_mode == GST_ACTIVATE_PULL); @@ -906,7 +906,7 @@ gst_base_sink_deactivate (GstBaseSink * basesink, GstPad * pad) gboolean result = FALSE; GstBaseSinkClass *bclass; - bclass = GST_BASESINK_GET_CLASS (basesink); + bclass = GST_BASE_SINK_GET_CLASS (basesink); /* step 1, unblock clock sync (if any) or any other blocking thing */ GST_PREROLL_LOCK (pad); @@ -937,7 +937,7 @@ gst_base_sink_activate_push (GstPad * pad, gboolean active) gboolean result = FALSE; GstBaseSink *basesink; - basesink = GST_BASESINK (GST_OBJECT_PARENT (pad)); + basesink = GST_BASE_SINK (GST_OBJECT_PARENT (pad)); if (active) { g_return_val_if_fail (basesink->has_chain, FALSE); @@ -957,7 +957,7 @@ gst_base_sink_activate_pull (GstPad * pad, gboolean active) gboolean result = FALSE; GstBaseSink *basesink; - basesink = GST_BASESINK (GST_OBJECT_PARENT (pad)); + basesink = GST_BASE_SINK (GST_OBJECT_PARENT (pad)); if (active) { /* if we have a scheduler we can start the task */ @@ -975,11 +975,11 @@ static GstElementStateReturn gst_base_sink_change_state (GstElement * element) { GstElementStateReturn ret = GST_STATE_SUCCESS; - GstBaseSink *basesink = GST_BASESINK (element); + GstBaseSink *basesink = GST_BASE_SINK (element); GstElementState transition = GST_STATE_TRANSITION (element); GstBaseSinkClass *bclass; - bclass = GST_BASESINK_GET_CLASS (basesink); + bclass = GST_BASE_SINK_GET_CLASS (basesink); switch (transition) { case GST_STATE_NULL_TO_READY: @@ -1028,7 +1028,7 @@ gst_base_sink_change_state (GstElement * element) { GstBaseSinkClass *bclass; - bclass = GST_BASESINK_GET_CLASS (basesink); + bclass = GST_BASE_SINK_GET_CLASS (basesink); GST_PREROLL_LOCK (basesink->sinkpad); GST_LOCK (basesink); diff --git a/libs/gst/base/gstbasesink.h b/libs/gst/base/gstbasesink.h index 336de2913..312d7c4b8 100644 --- a/libs/gst/base/gstbasesink.h +++ b/libs/gst/base/gstbasesink.h @@ -20,23 +20,23 @@ * Boston, MA 02111-1307, USA. */ -#ifndef __GST_BASESINK_H__ -#define __GST_BASESINK_H__ +#ifndef __GST_BASE_SINK_H__ +#define __GST_BASE_SINK_H__ #include <gst/gst.h> G_BEGIN_DECLS -#define GST_TYPE_BASESINK (gst_base_sink_get_type()) -#define GST_BASESINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_BASESINK,GstBaseSink)) -#define GST_BASESINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_BASESINK,GstBaseSinkClass)) -#define GST_BASESINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_BASESINK, GstBaseSinkClass)) -#define GST_IS_BASESINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_BASESINK)) -#define GST_IS_BASESINK_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_BASESINK)) +#define GST_TYPE_BASE_SINK (gst_base_sink_get_type()) +#define GST_BASE_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_BASE_SINK,GstBaseSink)) +#define GST_BASE_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_BASE_SINK,GstBaseSinkClass)) +#define GST_BASE_SINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_BASE_SINK, GstBaseSinkClass)) +#define GST_IS_BASE_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_BASE_SINK)) +#define GST_IS_BASE_SINK_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_BASE_SINK)) -#define GST_BASESINK_CLOCK(obj) (GST_BASESINK (obj)->clock) -#define GST_BASESINK_PAD(obj) (GST_BASESINK (obj)->sinkpad) +#define GST_BASE_SINK_CLOCK(obj) (GST_BASE_SINK (obj)->clock) +#define GST_BASE_SINK_PAD(obj) (GST_BASE_SINK (obj)->sinkpad) typedef struct _GstBaseSink GstBaseSink; typedef struct _GstBaseSinkClass GstBaseSinkClass; @@ -105,4 +105,4 @@ GType gst_base_sink_get_type(void); G_END_DECLS -#endif /* __GST_BASESINK_H__ */ +#endif /* __GST_BASE_SINK_H__ */ diff --git a/libs/gst/base/gstbasesrc.h b/libs/gst/base/gstbasesrc.h index a6d641d52..245e6e477 100644 --- a/libs/gst/base/gstbasesrc.h +++ b/libs/gst/base/gstbasesrc.h @@ -21,8 +21,8 @@ * Boston, MA 02111-1307, USA. */ -#ifndef __GST_BASESRC_H__ -#define __GST_BASESRC_H__ +#ifndef __GST_BASE_SRC_H__ +#define __GST_BASE_SRC_H__ #include <gst/gst.h> |