Commit 011fc35e authored by Thomas Vander Stichele's avatar Thomas Vander Stichele
Browse files

do proper cleanup/creation, fixes state changes

Original commit message from CVS:
do proper cleanup/creation, fixes state changes
parent 1eaefa7c
2005-08-26 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/effectv/gstquark.c: (gst_quarktv_init),
(gst_quarktv_change_state):
do proper cleanup/creation, fixes state changes
2005-08-25 Jan Schmidt <thaytan@mad.scientist.com>
 
* gst/level/gstlevel.c: (gst_level_message_new):
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment