elem_name);
g_free (elem_name);
- g_signal_emit (G_OBJECT (bin), gst_bin_signals[ELEMENT_ADDED], 0, element);
+ g_signal_emit (bin, gst_bin_signals[ELEMENT_ADDED], 0, element);
return TRUE;
GST_OBJECT_FLAG_UNSET (element, GST_ELEMENT_UNPARENTING);
GST_OBJECT_UNLOCK (element);
- g_signal_emit (G_OBJECT (bin), gst_bin_signals[ELEMENT_REMOVED], 0, element);
+ g_signal_emit (bin, gst_bin_signals[ELEMENT_REMOVED], 0, element);
/* element is really out of our control now */
gst_object_unref (element);
{
gboolean res;
- g_signal_emit (G_OBJECT (bin), gst_bin_signals[DO_LATENCY], 0, &res);
+ g_signal_emit (bin, gst_bin_signals[DO_LATENCY], 0, &res);
GST_DEBUG_OBJECT (bin, "latency returned %d", res);
return res;
iclass->add_entry (index, entry);
}
- g_signal_emit (G_OBJECT (index), gst_index_signals[ENTRY_ADDED], 0, entry);
+ g_signal_emit (index, gst_index_signals[ENTRY_ADDED], 0, entry);
}
/**
/* fire off a signal to each of the pads telling them
* that they've been unlinked */
- g_signal_emit (G_OBJECT (srcpad), gst_pad_signals[PAD_UNLINKED], 0, sinkpad);
- g_signal_emit (G_OBJECT (sinkpad), gst_pad_signals[PAD_UNLINKED], 0, srcpad);
+ g_signal_emit (srcpad, gst_pad_signals[PAD_UNLINKED], 0, sinkpad);
+ g_signal_emit (sinkpad, gst_pad_signals[PAD_UNLINKED], 0, srcpad);
GST_CAT_INFO (GST_CAT_ELEMENT_PADS, "unlinked %s:%s and %s:%s",
GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (sinkpad));
/* fire off a signal to each of the pads telling them
* that they've been linked */
- g_signal_emit (G_OBJECT (srcpad), gst_pad_signals[PAD_LINKED], 0, sinkpad);
- g_signal_emit (G_OBJECT (sinkpad), gst_pad_signals[PAD_LINKED], 0, srcpad);
+ g_signal_emit (srcpad, gst_pad_signals[PAD_LINKED], 0, sinkpad);
+ g_signal_emit (sinkpad, gst_pad_signals[PAD_LINKED], 0, srcpad);
GST_CAT_INFO (GST_CAT_PADS, "linked %s:%s and %s:%s, successful",
GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (sinkpad));
void
gst_pad_template_pad_created (GstPadTemplate * templ, GstPad * pad)
{
- g_signal_emit (G_OBJECT (templ),
- gst_pad_template_signals[TEMPL_PAD_CREATED], 0, pad);
+ g_signal_emit (templ, gst_pad_template_signals[TEMPL_PAD_CREATED], 0, pad);
}
static void
GstXML *xml = GST_XML (data);
/* FIXME check that this element was created from the same xmlDocPtr... */
- g_signal_emit (G_OBJECT (xml), gst_xml_signals[OBJECT_LOADED], 0, object,
- self);
+ g_signal_emit (xml, gst_xml_signals[OBJECT_LOADED], 0, object, self);
}
/**
data->parent = element;
data->name = g_strdup(value);
data->value_str = g_strdup(pos);
- data->signal_id = g_signal_connect(GST_OBJECT (element),"child-added", G_CALLBACK (gst_parse_new_child), data);
+ data->signal_id = g_signal_connect(element, "child-added", G_CALLBACK (gst_parse_new_child), data);
}
else {
SET_ERROR (graph->error, GST_PARSE_ERROR_NO_SUCH_PROPERTY, \
} else {
data->caps = NULL;
}
- data->signal_id = g_signal_connect (G_OBJECT (src), "pad-added",
+ data->signal_id = g_signal_connect (src, "pad-added",
G_CALLBACK (gst_parse_found_pad), data);
return TRUE;
}