docs/libs/gst-plugins-base-libs-sections.txt: Small docs fixes/updates.
authorTim-Philipp Müller <tim@centricular.net>
Fri, 15 Dec 2006 10:52:23 +0000 (10:52 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 15 Dec 2006 10:52:23 +0000 (10:52 +0000)
Original commit message from CVS:
* 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.

ChangeLog
docs/libs/gst-plugins-base-libs-sections.txt
gst-libs/gst/video/gstvideosink.h

index b4c58e5..e66452f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+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:
index d8671ae..8ca8689 100644 (file)
@@ -744,17 +744,17 @@ gst_riff_strh
 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>
@@ -992,7 +992,6 @@ gst_video_filter_get_type
 GstVideoSink
 GstVideoSinkClass
 GstVideoRectangle
-GST_VIDEO_SINK_CLOCK
 GST_VIDEO_SINK_HEIGHT
 GST_VIDEO_SINK_PAD
 GST_VIDEO_SINK_WIDTH
@@ -1000,6 +999,7 @@ gst_video_sink_center_rect
 <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
index 92db885..ca9f33c 100644 (file)
@@ -38,11 +38,27 @@ G_BEGIN_DECLS
   (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;