Added a reference to typefind.

Original commit message from CVS:
Added a reference to typefind.
This commit is contained in:
Wim Taymans 2001-05-14 22:42:42 +00:00
parent 6faaf698e6
commit 0eb3cc9ca4

View file

@ -186,12 +186,15 @@ gst_typefind_chain (GstPad *pad, GstBuffer *buf)
{
int oldstate = GST_STATE(typefind);
gst_object_ref (GST_OBJECT (typefind));
gtk_signal_emit (GTK_OBJECT (typefind), gst_typefind_signals[HAVE_TYPE],
typefind->caps);
if (GST_STATE(typefind) != oldstate) {
gst_object_unref (GST_OBJECT (typefind));
GST_DEBUG(0, "state changed during signal, aborting\n");
cothread_switch(cothread_current_main());
}
gst_object_unref (GST_OBJECT (typefind));
}
gst_pad_set_caps (pad, caps);