summaryrefslogtreecommitdiffstats
path: root/ext/sdl/sdlvideosink.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-10-28 09:08:32 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-10-28 09:08:32 +0000
commit2b0095e84f53b871f821ef7cce12b276fb53c7c2 (patch)
tree313b26e0045e8723c91705bf6aa5a32f066186c6 /ext/sdl/sdlvideosink.h
parent1c0674323af59fdd334a64ad4d5618bf877bf593 (diff)
downloadgst-plugins-bad-2b0095e84f53b871f821ef7cce12b276fb53c7c2.tar.gz
gst-plugins-bad-2b0095e84f53b871f821ef7cce12b276fb53c7c2.tar.bz2
gst-plugins-bad-2b0095e84f53b871f821ef7cce12b276fb53c7c2.zip
Add XOverlay interface support to both sdlvideosink and xvideosink. They're fully interchangeable now.
Original commit message from CVS: Add XOverlay interface support to both sdlvideosink and xvideosink. They're fully interchangeable now.
Diffstat (limited to 'ext/sdl/sdlvideosink.h')
-rw-r--r--ext/sdl/sdlvideosink.h25
1 files changed, 11 insertions, 14 deletions
diff --git a/ext/sdl/sdlvideosink.h b/ext/sdl/sdlvideosink.h
index a9322e8f..96b2aecb 100644
--- a/ext/sdl/sdlvideosink.h
+++ b/ext/sdl/sdlvideosink.h
@@ -17,7 +17,6 @@
* Boston, MA 02111-1307, USA.
*/
-
#ifndef __GST_SDLVIDEOSINK_H__
#define __GST_SDLVIDEOSINK_H__
@@ -25,10 +24,7 @@
#include <SDL.h>
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+G_BEGIN_DECLS
#define GST_TYPE_SDLVIDEOSINK \
(gst_sdlvideosink_get_type())
@@ -53,16 +49,20 @@ typedef struct _GstSDLVideoSinkClass GstSDLVideoSinkClass;
struct _GstSDLVideoSink {
GstVideoSink videosink;
- gulong format;
- gint image_width, image_height; /* the size of the incoming YUV stream */
- gint window_id;
+ guint32 format;
+ gint width, height; /* the size of the incoming YUV stream */
+ XID xwindow_id;
+
+ gboolean init;
GstCaps *capslist;
- unsigned char *yuv[3];
SDL_Surface *screen;
- SDL_Overlay *yuv_overlay;
+ SDL_Overlay *overlay;
SDL_Rect rect;
+
+ GMutex *lock;
+ GstBufferPool *bufferpool;
};
struct _GstSDLVideoSinkClass {
@@ -72,9 +72,6 @@ struct _GstSDLVideoSinkClass {
GType gst_sdlsink_get_type(void);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
#endif /* __GST_SDLVIDEOSINK_H__ */