summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/video
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/video')
-rw-r--r--gst-libs/gst/video/gstvideosink.c37
-rw-r--r--gst-libs/gst/video/gstvideosink.h9
-rw-r--r--gst-libs/gst/video/videosink.h9
3 files changed, 2 insertions, 53 deletions
diff --git a/gst-libs/gst/video/gstvideosink.c b/gst-libs/gst/video/gstvideosink.c
index 4a3db86b..ca7cc51a 100644
--- a/gst-libs/gst/video/gstvideosink.c
+++ b/gst-libs/gst/video/gstvideosink.c
@@ -24,15 +24,7 @@
#include "gstvideosink.h"
-/* VideoSink signals and args */
-
-enum {
- HAVE_VIDEO_SIZE,
- LAST_SIGNAL
-};
-
static GstElementClass *parent_class = NULL;
-static guint gst_videosink_signals[LAST_SIGNAL] = { 0 };
/* Private methods */
@@ -66,41 +58,12 @@ gst_videosink_class_init (GstVideoSinkClass *klass)
gstelement_class = (GstElementClass*)klass;
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
-
- gst_videosink_signals[HAVE_VIDEO_SIZE] =
- g_signal_new ("have_video_size",
- G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GstVideoSinkClass, have_video_size),
- NULL, NULL,
- gst_marshal_VOID__INT_INT, G_TYPE_NONE, 2,
- G_TYPE_UINT, G_TYPE_UINT);
gstelement_class->set_clock = gst_videosink_set_clock;
}
/* Public methods */
-/**
- * gst_video_sink_got_video_size:
- * @videosink: a #GstVideoSink which received video geometry.
- * @width: a width as a #gint.
- * @height: a height as a #gint.
- *
- * This will fire an have_size signal and update the internal object's
- * geometry.
- *
- * This function should be used by video sink developpers.
- */
-void
-gst_video_sink_got_video_size (GstVideoSink *videosink, gint width, gint height)
-{
- g_return_if_fail (videosink != NULL);
- g_return_if_fail (GST_IS_VIDEOSINK (videosink));
-
- g_signal_emit (G_OBJECT (videosink), gst_videosink_signals[HAVE_VIDEO_SIZE],
- 0, width, height);
-}
-
GType
gst_videosink_get_type (void)
{
diff --git a/gst-libs/gst/video/gstvideosink.h b/gst-libs/gst/video/gstvideosink.h
index 6ba23fd4..129a47d6 100644
--- a/gst-libs/gst/video/gstvideosink.h
+++ b/gst-libs/gst/video/gstvideosink.h
@@ -61,19 +61,12 @@ struct _GstVideoSink {
struct _GstVideoSinkClass {
GstElementClass parent_class;
-
- /* signals */
- void (*have_video_size) (GstVideoSink *element, gint width, gint height);
-
+
gpointer _gst_reserved[GST_PADDING];
};
GType gst_videosink_get_type (void);
-/* public methods to fire signals */
-void gst_video_sink_got_video_size (GstVideoSink *videosink,
- gint width, gint height);
-
#ifdef __cplusplus
}
#endif /* __cplusplus */
diff --git a/gst-libs/gst/video/videosink.h b/gst-libs/gst/video/videosink.h
index 6ba23fd4..129a47d6 100644
--- a/gst-libs/gst/video/videosink.h
+++ b/gst-libs/gst/video/videosink.h
@@ -61,19 +61,12 @@ struct _GstVideoSink {
struct _GstVideoSinkClass {
GstElementClass parent_class;
-
- /* signals */
- void (*have_video_size) (GstVideoSink *element, gint width, gint height);
-
+
gpointer _gst_reserved[GST_PADDING];
};
GType gst_videosink_get_type (void);
-/* public methods to fire signals */
-void gst_video_sink_got_video_size (GstVideoSink *videosink,
- gint width, gint height);
-
#ifdef __cplusplus
}
#endif /* __cplusplus */