From a2b7df0911ac62009be05fe2e9b6a5d0714c3010 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 10 Feb 2003 20:11:14 +0000 Subject: [PATCH] More sensible name for the scheduler when compiled without cothreads Original commit message from CVS: More sensible name for the scheduler when compiled without cothreads --- gst/schedulers/gstoptimalscheduler.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/schedulers/gstoptimalscheduler.c b/gst/schedulers/gstoptimalscheduler.c index f50bfe7ae4..729e206377 100644 --- a/gst/schedulers/gstoptimalscheduler.c +++ b/gst/schedulers/gstoptimalscheduler.c @@ -308,9 +308,15 @@ plugin_init (GModule *module, GstPlugin *plugin) gst_plugin_set_longname (plugin, "An optimal scheduler"); +#ifdef USE_COTHREADS factory = gst_scheduler_factory_new ("opt"COTHREADS_NAME, "An optimal scheduler using "COTHREADS_NAME" cothreads", gst_opt_scheduler_get_type()); +#else + factory = gst_scheduler_factory_new ("opt", + "An optimal scheduler using no cothreads", + gst_opt_scheduler_get_type()); +#endif if (factory != NULL) { gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));