gst/schedulers/entryscheduler.c: remove unused variable, fix error inside Rb, fix compile warning in unreachable code

Original commit message from CVS:
* gst/schedulers/entryscheduler.c:
remove unused variable, fix error inside Rb, fix compile warning in
unreachable code
This commit is contained in:
Benjamin Otte 2004-04-03 20:52:02 +00:00
parent 93a0882595
commit e5ea553496
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2004-04-03 Benjamin Otte <otte@gnome.org>
* gst/schedulers/entryscheduler.c:
remove unused variable, fix error inside Rb, fix compile warning in
unreachable code
2004-04-03 Benjamin Otte <otte@gnome.org> 2004-04-03 Benjamin Otte <otte@gnome.org>
* gst/schedulers/entryscheduler.c: * gst/schedulers/entryscheduler.c:

View file

@ -132,8 +132,6 @@ struct _GstEntryScheduler
GList *schedule_possible; /* possible entry points */ GList *schedule_possible; /* possible entry points */
GList *waiting; /* elements waiting for the clock */ GList *waiting; /* elements waiting for the clock */
gboolean error; /* if an element threw an error */ gboolean error; /* if an element threw an error */
GList *decoupled_pads; /* all pads we manage that belong to decoupled elements */
}; };
struct _GstEntrySchedulerClass struct _GstEntrySchedulerClass
@ -887,7 +885,8 @@ gst_entry_scheduler_state_transition (GstScheduler * scheduler,
} }
} }
} }
if (element->sched_private != NULL) { if (element->sched_private != NULL
&& ELEMENT_PRIVATE (element)->thread != NULL) {
do_cothread_destroy (ELEMENT_PRIVATE (element)->thread); do_cothread_destroy (ELEMENT_PRIVATE (element)->thread);
ELEMENT_PRIVATE (element)->thread = NULL; ELEMENT_PRIVATE (element)->thread = NULL;
} }