From b6192470006a95006b9be5e299384a97d2855b36 Mon Sep 17 00:00:00 2001 From: Erik Walthinsen Date: Wed, 23 May 2001 19:49:56 +0000 Subject: [PATCH] fixed problem where mad wasn't an entry (it is now HACK HACK!!) and the scheduler wasn't catching the no entry case Original commit message from CVS: fixed problem where mad wasn't an entry (it is now HACK HACK!!) and the scheduler wasn't catching the no entry case --- gst/gstscheduler.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gst/gstscheduler.c b/gst/gstscheduler.c index 1652ebf015..c143e2f8f8 100644 --- a/gst/gstscheduler.c +++ b/gst/gstscheduler.c @@ -1315,11 +1315,13 @@ GST_DEBUG(GST_CAT_SCHEDULING,"there are %d elements in this chain\n",chain->num_ while (elements) { entry = GST_ELEMENT(elements->data); elements = g_list_next(elements); - if (GST_FLAG_IS_SET(entry,GST_ELEMENT_DECOUPLED)) + if (GST_FLAG_IS_SET(entry,GST_ELEMENT_DECOUPLED)) { GST_DEBUG(GST_CAT_SCHEDULING,"entry \"%s\" is DECOUPLED, skipping\n",GST_ELEMENT_NAME(entry)); - else if (GST_FLAG_IS_SET(entry,GST_ELEMENT_NO_ENTRY)) + entry = NULL; + } else if (GST_FLAG_IS_SET(entry,GST_ELEMENT_NO_ENTRY)) { GST_DEBUG(GST_CAT_SCHEDULING,"entry \"%s\" is not valid, skipping\n",GST_ELEMENT_NAME(entry)); - else + entry = NULL; + } else break; } if (entry) { @@ -1342,7 +1344,7 @@ GST_DEBUG(GST_CAT_SCHEDULING,"there are %d elements in this chain\n",chain->num_ } } else { - GST_INFO (GST_CAT_DATAFLOW,"no entry into chain!"); + GST_INFO (GST_CAT_DATAFLOW,"NO ENTRY INTO CHAIN!"); } } else { GST_INFO (GST_CAT_DATAFLOW,"no entry into chain!");