mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-05 22:12:34 +00:00
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:
parent
4572dcaa86
commit
75c955843e
3 changed files with 10 additions and 2 deletions
|
@ -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),
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue