older gccs crack here

Original commit message from CVS:
older gccs crack here
This commit is contained in:
Ronald S. Bultje 2003-02-05 17:09:50 +00:00
parent 7f3b5032b4
commit 637326bc8d
2 changed files with 4 additions and 2 deletions

View file

@ -546,9 +546,10 @@ gst_basic_scheduler_eventhandler_proxy (GstPad *srcpad, GstEvent *event)
}
if (flush) {
GST_INFO (GST_CAT_SCHEDULING, "event is flush");
GstData *data = GST_DATA (GST_RPAD_BUFPEN (srcpad));
GST_INFO (GST_CAT_SCHEDULING, "event is flush");
if (data) {
GST_INFO (GST_CAT_SCHEDULING, "need to clear some buffers");

View file

@ -951,9 +951,10 @@ gst_opt_scheduler_event_wrapper (GstPad *srcpad, GstEvent *event)
}
if (flush) {
GST_INFO (GST_CAT_SCHEDULING, "event is flush");
GList *buflist = GST_PAD_BUFLIST (srcpad);
GST_INFO (GST_CAT_SCHEDULING, "event is flush");
if (buflist) {
GST_INFO (GST_CAT_SCHEDULING, "need to clear some buffers");
g_list_foreach (buflist, (GFunc) clear_queued, NULL);