mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-06 08:09:56 +00:00
gst/: No unsafe task pausing please.
Original commit message from CVS: * gst/gstpad.c: (gst_pad_event_default): * gst/gstqueue.c: (gst_queue_loop): No unsafe task pausing please.
This commit is contained in:
parent
830a0368b4
commit
d56ab76d57
4 changed files with 12 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-06-23 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/gstpad.c: (gst_pad_event_default):
|
||||
* gst/gstqueue.c: (gst_queue_loop):
|
||||
No unsafe task pausing please.
|
||||
|
||||
2005-06-23 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/schedulers/threadscheduler.c:
|
||||
|
|
|
@ -2231,10 +2231,8 @@ gst_pad_event_default (GstPad * pad, GstEvent * event)
|
|||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_EOS:
|
||||
{
|
||||
if (GST_PAD_TASK (pad)) {
|
||||
GST_DEBUG_OBJECT (pad, "pausing task because of eos");
|
||||
gst_pad_pause_task (pad);
|
||||
}
|
||||
GST_DEBUG_OBJECT (pad, "pausing task because of eos");
|
||||
gst_pad_pause_task (pad);
|
||||
}
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -733,11 +733,11 @@ restart:
|
|||
result = gst_pad_push (pad, GST_BUFFER (data));
|
||||
GST_QUEUE_MUTEX_LOCK;
|
||||
if (result != GST_FLOW_OK) {
|
||||
gst_task_pause (GST_PAD_TASK (queue->srcpad));
|
||||
gst_pad_pause_task (queue->srcpad);
|
||||
}
|
||||
} else {
|
||||
if (GST_EVENT_TYPE (data) == GST_EVENT_EOS) {
|
||||
gst_task_pause (GST_PAD_TASK (queue->srcpad));
|
||||
gst_pad_pause_task (queue->srcpad);
|
||||
restart = FALSE;
|
||||
}
|
||||
GST_QUEUE_MUTEX_UNLOCK;
|
||||
|
|
|
@ -733,11 +733,11 @@ restart:
|
|||
result = gst_pad_push (pad, GST_BUFFER (data));
|
||||
GST_QUEUE_MUTEX_LOCK;
|
||||
if (result != GST_FLOW_OK) {
|
||||
gst_task_pause (GST_PAD_TASK (queue->srcpad));
|
||||
gst_pad_pause_task (queue->srcpad);
|
||||
}
|
||||
} else {
|
||||
if (GST_EVENT_TYPE (data) == GST_EVENT_EOS) {
|
||||
gst_task_pause (GST_PAD_TASK (queue->srcpad));
|
||||
gst_pad_pause_task (queue->srcpad);
|
||||
restart = FALSE;
|
||||
}
|
||||
GST_QUEUE_MUTEX_UNLOCK;
|
||||
|
|
Loading…
Reference in a new issue