+2006-12-15 Tim-Philipp Müller <tim at centricular dot net>
+
+ * docs/libs/gst-plugins-base-libs-sections.txt:
+ Small docs fixes/updates.
+
+ * gst-libs/gst/video/gstvideosink.h:
+ Remove nonfunctional GST_VIDEO_SINK_CLOCK macro which is a leftover
+ from the 0.9 days (GST_BASE_SINK_CLOCK, which it points to, was
+ removed from the base sink API between 0.9.6 and 0.9.7).
+ API: add GST_VIDEO_SINK_CAST and use it for the height/width
+ accessor macros, so we don't do a runtime GObject type check every
+ time we use them.
+
2006-12-15 Thomas Vander Stichele <thomas at apestaart dot org>
* Makefile.am:
GstBaseRTPAudioPayload
GstBaseRTPAudioPayloadClass
-gst_basertpaudiopayload_set_frame_based
-gst_basertpaudiopayload_set_frame_options
-gst_basertpaudiopayload_set_sample_based
-gst_basertpaudiopayload_set_sample_options
+gst_base_rtp_audio_payload_set_frame_based
+gst_base_rtp_audio_payload_set_frame_options
+gst_base_rtp_audio_payload_set_sample_based
+gst_base_rtp_audio_payload_set_sample_options
<SUBSECTION Standard>
GST_TYPE_BASE_RTP_AUDIO_PAYLOAD
GST_BASE_RTP_AUDIO_PAYLOAD
GST_BASE_RTP_AUDIO_PAYLOAD_CLASS
GST_IS_BASE_RTP_AUDIO_PAYLOAD
GST_IS_BASE_RTP_AUDIO_PAYLOAD_CLASS
-gst_basertpaudiopayload_get_type
+gst_base_rtp_audio_payload_get_type
</SECTION>
<SECTION>
GstVideoSink
GstVideoSinkClass
GstVideoRectangle
-GST_VIDEO_SINK_CLOCK
GST_VIDEO_SINK_HEIGHT
GST_VIDEO_SINK_PAD
GST_VIDEO_SINK_WIDTH
<SUBSECTION Standard>
GST_TYPE_VIDEO_SINK
GST_VIDEO_SINK
+GST_VIDEO_SINK_CAST
GST_VIDEO_SINK_CLASS
GST_VIDEO_SINK_GET_CLASS
GST_IS_VIDEO_SINK
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_VIDEO_SINK))
#define GST_VIDEO_SINK_GET_CLASS(klass) \
(G_TYPE_INSTANCE_GET_CLASS ((klass), GST_TYPE_VIDEO_SINK, GstVideoSinkClass))
-
-#define GST_VIDEO_SINK_PAD GST_BASE_SINK_PAD
-#define GST_VIDEO_SINK_CLOCK GST_BASE_SINK_CLOCK
-#define GST_VIDEO_SINK_WIDTH(obj) (GST_VIDEO_SINK (obj)->width)
-#define GST_VIDEO_SINK_HEIGHT(obj) (GST_VIDEO_SINK (obj)->height)
+
+/**
+ * GST_VIDEO_SINK_CAST:
+ * @obj: a #GstVideoSink or derived object
+ *
+ * Cast @obj to a #GstVideoSink without runtime type check.
+ *
+ * Since: 0.10.12
+ */
+#define GST_VIDEO_SINK_CAST(obj) ((GstVideoSink *) (obj))
+
+/**
+ * GST_VIDEO_SINK_PAD:
+ * @obj: a #GstVideoSink
+ *
+ * Get the sink #GstPad of @obj.
+ */
+#define GST_VIDEO_SINK_PAD(obj) GST_BASE_SINK_PAD(obj)
+
+#define GST_VIDEO_SINK_WIDTH(obj) (GST_VIDEO_SINK_CAST (obj)->width)
+#define GST_VIDEO_SINK_HEIGHT(obj) (GST_VIDEO_SINK_CAST (obj)->height)
typedef struct _GstVideoSink GstVideoSink;
typedef struct _GstVideoSinkClass GstVideoSinkClass;