Removing have_size as it is in GstVideoSink higher class.

Original commit message from CVS:
Removing have_size as it is in GstVideoSink higher class.
This commit is contained in:
Julien Moutte 2003-11-19 22:40:59 +00:00
parent 4653e15653
commit 03bedb18c8
2 changed files with 1 additions and 35 deletions

View file

@ -27,7 +27,6 @@
enum { enum {
HAVE_XWINDOW_ID, HAVE_XWINDOW_ID,
HAVE_SIZE,
LAST_SIGNAL LAST_SIGNAL
}; };
@ -70,14 +69,6 @@ gst_x_overlay_base_init (gpointer g_class)
if (! initialized) if (! initialized)
{ {
gst_x_overlay_signals[HAVE_SIZE] =
g_signal_new ("have_size",
GST_TYPE_X_OVERLAY, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstXOverlayClass, have_size),
NULL, NULL,
gst_marshal_VOID__INT_INT, G_TYPE_NONE, 2,
G_TYPE_UINT, G_TYPE_UINT);
gst_x_overlay_signals[HAVE_XWINDOW_ID] = gst_x_overlay_signals[HAVE_XWINDOW_ID] =
g_signal_new ("have_xwindow_id", g_signal_new ("have_xwindow_id",
GST_TYPE_X_OVERLAY, G_SIGNAL_RUN_LAST, GST_TYPE_X_OVERLAY, G_SIGNAL_RUN_LAST,
@ -127,24 +118,3 @@ gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, XID xwindow_id)
g_signal_emit (G_OBJECT (overlay), g_signal_emit (G_OBJECT (overlay),
gst_x_overlay_signals[HAVE_XWINDOW_ID], 0, xwindow_id); gst_x_overlay_signals[HAVE_XWINDOW_ID], 0, xwindow_id);
} }
/**
* gst_x_overlay_got_video_size:
* @overlay: a #GstXOverlay which received video geometry.
* @width: a width as a #gint.
* @height: a height as a #gint.
*
* This will fire an have_size signal.
*
* This function should be used by video overlay developpers.
*/
void
gst_x_overlay_got_video_size (GstXOverlay *overlay,
gint width, gint height)
{
g_return_if_fail (overlay != NULL);
g_return_if_fail (GST_IS_X_OVERLAY (overlay));
g_signal_emit (G_OBJECT (overlay), gst_x_overlay_signals[HAVE_SIZE],
0, width, height);
}

View file

@ -53,8 +53,6 @@ typedef struct _GstXOverlayClass {
/* signals */ /* signals */
void (*have_xwindow_id) (GstXOverlay *overlay, void (*have_xwindow_id) (GstXOverlay *overlay,
XID xwindow_id); XID xwindow_id);
void (*have_size) (GstXOverlay *overlay, gint width, gint height);
} GstXOverlayClass; } GstXOverlayClass;
GType gst_x_overlay_get_type (void); GType gst_x_overlay_get_type (void);
@ -64,8 +62,6 @@ void gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, XID xwindow_id);
/* public methods to fire signals */ /* public methods to fire signals */
void gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, XID xwindow_id); void gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, XID xwindow_id);
void gst_x_overlay_got_video_size (GstXOverlay *overlay,
gint width, gint height);
G_END_DECLS G_END_DECLS