Commit 75c95584 authored by Jan Schmidt's avatar Jan Schmidt
Browse files

gst/base/gstcollectpads.c: Broadcast the condition when shutting down, to make...

gst/base/gstcollectpads.c: Broadcast the condition when shutting down, to make sure we wake all threads up. Shut down...

Original commit message from CVS:
* gst/base/gstcollectpads.c: (gst_collectpads_finalize),
(gst_collectpads_stop):
Broadcast the condition when shutting down, to make sure we wake all
threads up. Shut down pads on finalize, for safety.
parent 4572dcaa
2005-08-01 Jan Schmidt <thaytan@mad.scientist.com>
* gst/base/gstcollectpads.c: (gst_collectpads_finalize),
(gst_collectpads_stop):
Broadcast the condition when shutting down, to make sure we wake all
threads up. Shut down pads on finalize, for safety.
2005-08-01 Jan Schmidt <thaytan@mad.scientist.com>
* gst/base/gstbasetransform.c: (gst_base_transform_init),
(gst_base_transform_handle_buffer),
......
......@@ -84,6 +84,7 @@ gst_collectpads_finalize (GObject * object)
{
GstCollectPads *pads = GST_COLLECTPADS (object);
gst_collectpads_stop (pads);
g_cond_free (pads->cond);
/* FIXME, free data */
......@@ -310,7 +311,7 @@ gst_collectpads_stop (GstCollectPads * pads)
GST_LOCK (pads);
pads->started = FALSE;
GST_COLLECTPADS_SIGNAL (pads);
GST_COLLECTPADS_BROADCAST (pads);
GST_UNLOCK (pads);
}
......
......@@ -84,6 +84,7 @@ gst_collectpads_finalize (GObject * object)
{
GstCollectPads *pads = GST_COLLECTPADS (object);
gst_collectpads_stop (pads);
g_cond_free (pads->cond);
/* FIXME, free data */
......@@ -310,7 +311,7 @@ gst_collectpads_stop (GstCollectPads * pads)
GST_LOCK (pads);
pads->started = FALSE;
GST_COLLECTPADS_SIGNAL (pads);
GST_COLLECTPADS_BROADCAST (pads);
GST_UNLOCK (pads);
}
......
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