diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2005-03-04 10:16:10 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2005-03-04 10:16:10 +0000 |
commit | 3a4d09d9e5f535634ba2503fbe1da45c39110ce0 (patch) | |
tree | d53cd96cabd5d0cf4db6081393daf58ea6496032 /gst-libs/gst/video/videosink.h | |
parent | e1975c599cfbe5f23e4bd602591e95838afb3c8c (diff) | |
download | gstreamer-plugins-bad-BRANCH-THREADED.tar.gz |
More work on subclassing the sinks from the basesink.BRANCH-THREADED
Original commit message from CVS:
More work on subclassing the sinks from the basesink.
First attempt at generic audiosink base objects.
Make oss DMA audiosink.
Diffstat (limited to 'gst-libs/gst/video/videosink.h')
-rw-r--r-- | gst-libs/gst/video/videosink.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gst-libs/gst/video/videosink.h b/gst-libs/gst/video/videosink.h index d1e3aa975..dc7b2805c 100644 --- a/gst-libs/gst/video/videosink.h +++ b/gst-libs/gst/video/videosink.h @@ -23,6 +23,7 @@ #define __GST_VIDEOSINK_H__ #include <gst/gst.h> +#include <gst/base/gstbasesink.h> #ifdef __cplusplus extern "C" { @@ -40,28 +41,24 @@ extern "C" { #define GST_VIDEOSINK_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VIDEOSINK, GstVideoSinkClass)) -#define GST_VIDEOSINK_PAD(obj) (GST_VIDEOSINK (obj)->sinkpad) +#define GST_VIDEOSINK_PAD GST_BASESINK_PAD +#define GST_VIDEOSINK_CLOCK GST_BASESINK_CLOCK #define GST_VIDEOSINK_WIDTH(obj) (GST_VIDEOSINK (obj)->width) #define GST_VIDEOSINK_HEIGHT(obj) (GST_VIDEOSINK (obj)->height) -#define GST_VIDEOSINK_CLOCK(obj) (GST_VIDEOSINK (obj)->clock) typedef struct _GstVideoSink GstVideoSink; typedef struct _GstVideoSinkClass GstVideoSinkClass; struct _GstVideoSink { - GstElement element; - - GstPad *sinkpad; + GstBaseSink element; gint width, height; - GstClock *clock; - gpointer _gst_reserved[GST_PADDING]; }; struct _GstVideoSinkClass { - GstElementClass parent_class; + GstBaseSinkClass parent_class; gpointer _gst_reserved[GST_PADDING]; }; |