From: Wim T. <wt...@us...> - 2002-07-24 21:09:59
|
CVS Root: /cvsroot/gstreamer Module: gstreamer Changes by: wtay Date: Wed Jul 24 2002 14:09:58 PDT Log message: Don't try to pull on disabled pads in the scheduler Modified files: gst/schedulers : gstbasicscheduler.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/schedulers/gstbasicscheduler.c.diff?r1=1.49&r2=1.50 ====Begin Diffs==== Index: gstbasicscheduler.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/schedulers/gstbasicscheduler.c,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- gstbasicscheduler.c 2 Jul 2002 18:42:00 -0000 1.49 +++ gstbasicscheduler.c 24 Jul 2002 21:09:46 -0000 1.50 @@ -320,7 +320,7 @@ realpad = GST_REAL_PAD_CAST (pad); - if (GST_RPAD_DIRECTION (realpad) == GST_PAD_SINK) { + if (GST_RPAD_DIRECTION (realpad) == GST_PAD_SINK && GST_PAD_IS_USABLE (realpad)) { GstBuffer *buf; GST_DEBUG (GST_CAT_DATAFLOW, "pulling data from %s:%s", name, GST_PAD_NAME (pad)); @@ -376,7 +376,7 @@ realpad = GST_REAL_PAD_CAST (pads->data); pads = g_list_next (pads); - if (GST_RPAD_DIRECTION (realpad) == GST_PAD_SRC) { + if (GST_RPAD_DIRECTION (realpad) == GST_PAD_SRC && GST_PAD_IS_USABLE (realpad)) { GST_DEBUG (GST_CAT_DATAFLOW, "calling _getfunc for %s:%s", GST_DEBUG_PAD_NAME (realpad)); g_return_val_if_fail (GST_RPAD_GETFUNC (realpad) != NULL, 0); buf = GST_RPAD_GETFUNC (realpad) (GST_PAD_CAST (realpad)); |