Better add the check instead of crashing
authorWim Taymans <wim.taymans@gmail.com>
Sun, 16 Jun 2002 19:48:38 +0000 (19:48 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 16 Jun 2002 19:48:38 +0000 (19:48 +0000)
Original commit message from CVS:
Better add the check instead of crashing

gst/schedulers/gstfastscheduler.c

index 20626d5..2571b64 100644 (file)
@@ -955,8 +955,7 @@ gst_fast_scheduler_iterate (GstScheduler * sched)
       continue;
     }
 
-    /* if (chain->num_cothreaded > 1) { */
-    if (FALSE) {
+    if (chain->num_cothreaded > 1) { 
       g_warning ("this scheduler can only deal with 1 cothreaded element in a chain");
 
       state = GST_SCHEDULER_STATE_ERROR;