From 011fc35e52c13d8ce213c1ec1389a7e1ad0b702f Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Fri, 26 Aug 2005 00:42:57 +0000 Subject: [PATCH] do proper cleanup/creation, fixes state changes Original commit message from CVS: do proper cleanup/creation, fixes state changes --- ChangeLog | 6 ++++++ gst/effectv/gstquark.c | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index edb8116287..1e2cb7f716 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-08-26 Thomas Vander Stichele + + * gst/effectv/gstquark.c: (gst_quarktv_init), + (gst_quarktv_change_state): + do proper cleanup/creation, fixes state changes + 2005-08-25 Jan Schmidt * gst/level/gstlevel.c: (gst_level_message_new): diff --git a/gst/effectv/gstquark.c b/gst/effectv/gstquark.c index 8094b82920..ad59519d4f 100644 --- a/gst/effectv/gstquark.c +++ b/gst/effectv/gstquark.c @@ -225,9 +225,6 @@ gst_quarktv_init (GstQuarkTV * filter) filter->planes = PLANES; filter->current_plane = filter->planes - 1; - filter->planetable = - (GstBuffer **) g_malloc (filter->planes * sizeof (GstBuffer *)); - memset (filter->planetable, 0, filter->planes * sizeof (GstBuffer *)); } static GstFlowReturn @@ -303,6 +300,13 @@ gst_quarktv_change_state (GstElement * element) filter->planetable = NULL; break; } + case GST_STATE_READY_TO_PAUSED: + { + filter->planetable = + (GstBuffer **) g_malloc (filter->planes * sizeof (GstBuffer *)); + memset (filter->planetable, 0, filter->planes * sizeof (GstBuffer *)); + break; + } default: break; } -- 2.34.1