[gst-devel] 'GST_IS_SCHEDULER' warning from rhythmbox

Jan Schmidt thaytan at mad.scientist.com
Mon Sep 8 21:35:06 CEST 2003


Rhythmbox emits a warning when changing songs:
(rhythmbox:32629): GStreamer-CRITICAL **: file gstscheduler.c: line 179
(gst_scheduler_pad_unlink): assertion `GST_IS_SCHEDULER (sched)' failed

The cause is that the bin (a thread) has no scheduler when gst_bin_dispose,
because gst_thread_dispose has the following:

  gst_object_swap ((GstObject **)&GST_ELEMENT_SCHED (thread), NULL);
                                                                                          
  G_OBJECT_CLASS (parent_class)->dispose (object);

This changed here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstthread.c.diff?r1=1.104&r2=1.105

Either the thread is doing the wrong thing in clearing the scheduler before
the parent->dispose, since it's needed to clear the schedulers on the
children, or the bin is doing the wrong thing when it clears the schedulers
on the children.

How should the disposal process for a bin actually work?

J.
-- 
Jan Schmidt                                  thaytan at mad.scientist.com

Pants Pants Pants Pants Pants Pants Pants Pants.
Lovely Pants, wonderful Pa-ants.
Lovely Pants, wonderful Pa-ants.
(Shut up! Bloody Vikings.)




More information about the gstreamer-devel mailing list