#include <gst/video/gstvideosink.h>
#include <gst/video/video.h>
-typedef struct _GstGtkSink GstGtkSink;
-typedef struct _GstGtkSinkClass GstGtkSinkClass;
-typedef struct _GstGtkSinkPrivate GstGtkSinkPrivate;
-
-#include <gtkgstwidget.h>
-
-G_BEGIN_DECLS
+#include "gstgtkbasesink.h"
-GType gst_gtk_sink_get_type (void);
#define GST_TYPE_GTK_SINK (gst_gtk_sink_get_type())
#define GST_GTK_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GTK_SINK,GstGtkSink))
#define GST_GTK_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GTK_SINK,GstGtkSinkClass))
#define GST_IS_GTK_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GTK_SINK))
#define GST_GTK_SINK_CAST(obj) ((GstGtkSink*)(obj))
+G_BEGIN_DECLS
+
+typedef struct _GstGtkSink GstGtkSink;
+typedef struct _GstGtkSinkClass GstGtkSinkClass;
+
+GType gst_gtk_sink_get_type (void);
+
/**
* GstGtkSink:
*
struct _GstGtkSink
{
/* <private> */
- GstVideoSink parent;
-
- GstVideoInfo v_info;
-
- GtkGstWidget *widget;
-
- /* properties */
- gboolean force_aspect_ratio;
- GBinding *bind_aspect_ratio;
-
- GstGtkSinkPrivate *priv;
+ GstGtkBaseSink parent;
};
/**
struct _GstGtkSinkClass
{
/* <private> */
- GstVideoSinkClass object_class;
+ GstGtkBaseSinkClass object_class;
};
-GstGtkSink * gst_gtk_sink_new (void);
-
G_END_DECLS
#endif /* __GST_GTK_SINK_H__ */