implement _destroy, and fix some bugs changing songs in the player doesn't work now, i don't know why yet

Original commit message from CVS:
implement _destroy, and fix some bugs

changing songs in the player doesn't work now, i don't know why yet
This commit is contained in:
Andy Wingo 2002-06-23 04:31:45 +00:00
parent d3e33a16ac
commit 16074b7263
2 changed files with 30 additions and 29 deletions

View file

@ -2,7 +2,7 @@
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
* 2000 Wim Taymans <wtay@chello.be>
*
* gstscheduler.c: Default scheduling code for most cases
* cothreads_compat.h: Compatibility macros between cothreads packages
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@ -99,12 +99,13 @@ typedef cothread cothread_context;
#define do_cothread_switch(to) G_STMT_START{ \
cothread *from = cothread_self (); \
if (from == (to)) { \
GST_DEBUG (GST_CAT_COTHREAD_SWITCH, "trying to switch to the same cothread (%p), not allowed", \
GST_DEBUG (GST_CAT_COTHREAD_SWITCH, \
"trying to switch to the same cothread (%p), not allowed", \
(to)); \
g_warning ("trying to switch to the same cothread, not allowed"); \
} else { \
GST_INFO (GST_CAT_COTHREAD_SWITCH, "switching from cothread %p to cothread %p", \
from, (to)); \
GST_INFO (GST_CAT_COTHREAD_SWITCH, \
"switching from cothread %p to cothread %p", from, (to)); \
cothread_switch (from, (to)); \
GST_INFO (GST_CAT_COTHREAD_SWITCH, "we're in cothread %p now", from); \
} \

View file

@ -245,7 +245,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
gst_plugin_set_longname (plugin, "A basic scheduler");
factory = gst_scheduler_factory_new (COTHREADS_NAME,
"A basic scheduler, it uses "COTHREADS_NAME" cothreads",
"A basic scheduler using "COTHREADS_NAME" cothreads",
gst_basic_scheduler_get_type());
if (factory != NULL) {