summaryrefslogtreecommitdiffstats
path: root/ext/sdl/sdlvideosink.h
diff options
context:
space:
mode:
authorJulien Moutte <julien@moutte.net>2003-09-14 21:09:41 +0000
committerJulien Moutte <julien@moutte.net>2003-09-14 21:09:41 +0000
commitcc8dee7f9d7ef0a4a50db2e44d61ec68acc42cf9 (patch)
tree56c2d636f1b1b6bfbc0f9332d9620fff5087a2c5 /ext/sdl/sdlvideosink.h
parent5919f1e35f2c113d527579fcb07cc20f7e05fc7a (diff)
downloadgst-plugins-bad-cc8dee7f9d7ef0a4a50db2e44d61ec68acc42cf9.tar.gz
gst-plugins-bad-cc8dee7f9d7ef0a4a50db2e44d61ec68acc42cf9.tar.bz2
gst-plugins-bad-cc8dee7f9d7ef0a4a50db2e44d61ec68acc42cf9.zip
Integrating the GstVideoSink parent class
Original commit message from CVS: Integrating the GstVideoSink parent class
Diffstat (limited to 'ext/sdl/sdlvideosink.h')
-rw-r--r--ext/sdl/sdlvideosink.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/ext/sdl/sdlvideosink.h b/ext/sdl/sdlvideosink.h
index fc991311..a9322e8f 100644
--- a/ext/sdl/sdlvideosink.h
+++ b/ext/sdl/sdlvideosink.h
@@ -21,7 +21,7 @@
#ifndef __GST_SDLVIDEOSINK_H__
#define __GST_SDLVIDEOSINK_H__
-#include <gst/gst.h>
+#include <gst/video/gstvideosink.h>
#include <SDL.h>
@@ -51,20 +51,12 @@ typedef struct _GstSDLVideoSink GstSDLVideoSink;
typedef struct _GstSDLVideoSinkClass GstSDLVideoSinkClass;
struct _GstSDLVideoSink {
- GstElement element;
-
- GstPad *sinkpad;
+ GstVideoSink videosink;
gulong format;
- gint window_width, window_height; /* the size of the SDL window */
gint image_width, image_height; /* the size of the incoming YUV stream */
gint window_id;
- gint frames_displayed;
- guint64 frame_time;
-
- GstClock *clock;
-
GstCaps *capslist;
unsigned char *yuv[3];
@@ -74,11 +66,8 @@ struct _GstSDLVideoSink {
};
struct _GstSDLVideoSinkClass {
- GstElementClass parent_class;
+ GstVideoSinkClass parent_class;
- /* signals */
- void (*frame_displayed) (GstElement *element);
- void (*have_size) (GstElement *element, guint width, guint height);
};
GType gst_sdlsink_get_type(void);