mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
Dispose wasn't a good idea..
Original commit message from CVS: Dispose wasn't a good idea..
This commit is contained in:
parent
14c7c3777b
commit
15b1a6ed38
1 changed files with 5 additions and 11 deletions
|
@ -90,7 +90,6 @@ static void gst_warptv_class_init (GstWarpTVClass * klass);
|
||||||
static void gst_warptv_init (GstWarpTV * filter);
|
static void gst_warptv_init (GstWarpTV * filter);
|
||||||
|
|
||||||
static void gst_warptv_initialize (GstWarpTV *filter);
|
static void gst_warptv_initialize (GstWarpTV *filter);
|
||||||
static void gst_warptv_dispose (GObject *object);
|
|
||||||
|
|
||||||
static void gst_warptv_set_property (GObject * object, guint prop_id,
|
static void gst_warptv_set_property (GObject * object, guint prop_id,
|
||||||
const GValue * value, GParamSpec * pspec);
|
const GValue * value, GParamSpec * pspec);
|
||||||
|
@ -136,7 +135,6 @@ gst_warptv_class_init (GstWarpTVClass * klass)
|
||||||
|
|
||||||
gobject_class->set_property = gst_warptv_set_property;
|
gobject_class->set_property = gst_warptv_set_property;
|
||||||
gobject_class->get_property = gst_warptv_get_property;
|
gobject_class->get_property = gst_warptv_get_property;
|
||||||
gobject_class->dispose = gst_warptv_dispose;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstPadConnectReturn
|
static GstPadConnectReturn
|
||||||
|
@ -173,6 +171,8 @@ gst_warptv_init (GstWarpTV * filter)
|
||||||
gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);
|
gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);
|
||||||
|
|
||||||
filter->tval = 0;
|
filter->tval = 0;
|
||||||
|
filter->disttable = NULL;
|
||||||
|
filter->offstable = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -230,6 +230,9 @@ initDistTable (GstWarpTV *filter)
|
||||||
static void
|
static void
|
||||||
gst_warptv_initialize (GstWarpTV *filter)
|
gst_warptv_initialize (GstWarpTV *filter)
|
||||||
{
|
{
|
||||||
|
g_free (filter->disttable);
|
||||||
|
g_free (filter->offstable);
|
||||||
|
|
||||||
filter->offstable = (guint32 *) g_malloc (filter->height * sizeof (guint32));
|
filter->offstable = (guint32 *) g_malloc (filter->height * sizeof (guint32));
|
||||||
filter->disttable = g_malloc (filter->width * filter->height * sizeof (guint32));
|
filter->disttable = g_malloc (filter->width * filter->height * sizeof (guint32));
|
||||||
|
|
||||||
|
@ -238,15 +241,6 @@ gst_warptv_initialize (GstWarpTV *filter)
|
||||||
initDistTable (filter);
|
initDistTable (filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_warptv_dispose (GObject *object)
|
|
||||||
{
|
|
||||||
GstWarpTV *filter = GST_WARPTV (object);
|
|
||||||
|
|
||||||
g_free (filter->disttable);
|
|
||||||
g_free (filter->offstable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_warptv_chain (GstPad * pad, GstBuffer * buf)
|
gst_warptv_chain (GstPad * pad, GstBuffer * buf)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue