mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 13:18:52 +00:00
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:
parent
4653e15653
commit
03bedb18c8
2 changed files with 1 additions and 35 deletions
|
@ -27,13 +27,12 @@
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
HAVE_XWINDOW_ID,
|
HAVE_XWINDOW_ID,
|
||||||
HAVE_SIZE,
|
|
||||||
LAST_SIGNAL
|
LAST_SIGNAL
|
||||||
};
|
};
|
||||||
|
|
||||||
static guint gst_x_overlay_signals[LAST_SIGNAL] = { 0 };
|
static guint gst_x_overlay_signals[LAST_SIGNAL] = { 0 };
|
||||||
|
|
||||||
static void gst_x_overlay_base_init (gpointer g_class);
|
static void gst_x_overlay_base_init (gpointer g_class);
|
||||||
|
|
||||||
GType
|
GType
|
||||||
gst_x_overlay_get_type (void)
|
gst_x_overlay_get_type (void)
|
||||||
|
@ -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);
|
|
||||||
}
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue