mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
gst/schedulers/entryscheduler.c: (some functions, dunno which, prepareChangeLog doesn't work when cvs indents): don't...
Original commit message from CVS: * gst/schedulers/entryscheduler.c: (some functions, dunno which, prepareChangeLog doesn't work when cvs indents): don't throw an error when no element can be scheduled, there's too many weird reasons why it doesn't work. Return STOPPED instead. decoupled elemts' schedulability doesn't depend on bufpens.
This commit is contained in:
parent
cb6ac1a3f9
commit
9f11d29481
2 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-04-05 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* gst/schedulers/entryscheduler.c: (some functions, dunno which,
|
||||
prepareChangeLog doesn't work when cvs indents):
|
||||
don't throw an error when no element can be scheduled, there's too
|
||||
many weird reasons why it doesn't work. Return STOPPED instead.
|
||||
decoupled elemts' schedulability doesn't depend on bufpens.
|
||||
|
||||
2004-04-04 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* gst/schedulers/gstbasicscheduler.c:
|
||||
|
|
|
@ -551,7 +551,7 @@ can_schedule (Entry * entry)
|
|||
return FALSE;
|
||||
if (GST_FLAG_IS_SET (priv->element, GST_ELEMENT_DECOUPLED)) {
|
||||
g_assert (PAD_PRIVATE (priv->schedule_pad));
|
||||
return PAD_PRIVATE (priv->schedule_pad)->bufpen == NULL;
|
||||
return TRUE;
|
||||
}
|
||||
for (list = priv->element->pads; list; list = g_list_next (list)) {
|
||||
GstPad *pad = GST_PAD (list->data);
|
||||
|
@ -629,7 +629,7 @@ schedule_forward (Entry * entry)
|
|||
GstElement *element = ((CothreadPrivate *) entry)->element;
|
||||
|
||||
if (GST_FLAG_IS_SET (element, GST_ELEMENT_DECOUPLED))
|
||||
return FALSE;
|
||||
return NULL;
|
||||
for (list = element->pads; list; list = g_list_next (list)) {
|
||||
if (GST_PAD_IS_SINK (list->data))
|
||||
continue;
|
||||
|
@ -1087,14 +1087,14 @@ gst_entry_scheduler_iterate (GstScheduler * scheduler)
|
|||
gst_entry_scheduler_show (scheduler);
|
||||
#endif
|
||||
return GST_SCHEDULER_STATE_ERROR;
|
||||
#if 0
|
||||
} else if (GST_STATE (GST_SCHEDULER (sched)->parent) == GST_STATE_PLAYING &&
|
||||
ret == GST_SCHEDULER_STATE_STOPPED && scheduler->schedulers == NULL) {
|
||||
GST_ERROR_OBJECT (sched,
|
||||
"returning error because we contain running elements and we didn't do a thing");
|
||||
#if 0
|
||||
gst_entry_scheduler_show (scheduler);
|
||||
#endif
|
||||
return GST_SCHEDULER_STATE_ERROR;
|
||||
#endif
|
||||
} else if (ret == GST_SCHEDULER_STATE_STOPPED) {
|
||||
GST_INFO_OBJECT (sched, "done iterating returning STOPPED");
|
||||
return GST_SCHEDULER_STATE_STOPPED;
|
||||
|
|
Loading…
Reference in a new issue