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.
This commit is contained in:
Jan Schmidt 2005-08-01 21:17:01 +00:00
parent 4572dcaa86
commit 75c955843e
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,9 @@
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),

View file

@ -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);
}

View file

@ -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);
}