2005-07-05 Andy Wingo <wingo@pobox.com>
+ * ext/gnomevfs/gstgnomevfssrc.c:
+ * gst/sine/gstsinesrc.c:
+ * gst/tcp/gsttcpserversrc.c:
+ * gst/tcp/gsttcpclientsrc.c: s/BASESRC/BASE_SRC/.
+
* sys/v4l/: Port from 0.8.
* Many files: Null if we got it....
};
gnomevfssrc_type =
- g_type_register_static (GST_TYPE_BASESRC,
+ g_type_register_static (GST_TYPE_BASE_SRC,
"GstGnomeVFSSrc", &gnomevfssrc_info, 0);
g_type_add_interface_static (gnomevfssrc_type, GST_TYPE_URI_HANDLER,
&urihandler_info);
gobject_class = G_OBJECT_CLASS (klass);
gstelement_class = GST_ELEMENT_CLASS (klass);
- gstbasesrc_class = GST_BASESRC_CLASS (klass);
+ gstbasesrc_class = GST_BASE_SRC_CLASS (klass);
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
(GInstanceInitFunc) gst_sinesrc_init,
};
- sinesrc_type = g_type_register_static (GST_TYPE_BASESRC, "GstSineSrc",
+ sinesrc_type = g_type_register_static (GST_TYPE_BASE_SRC, "GstSineSrc",
&sinesrc_info, 0);
}
return sinesrc_type;
gstelement_class = (GstElementClass *) klass;
gstbasesrc_class = (GstBaseSrcClass *) klass;
- parent_class = g_type_class_ref (GST_TYPE_BASESRC);
+ parent_class = g_type_class_ref (GST_TYPE_BASE_SRC);
gobject_class->set_property = gst_sinesrc_set_property;
gobject_class->get_property = gst_sinesrc_get_property;
static void
gst_sinesrc_init (GstSineSrc * src)
{
- src->srcpad = GST_BASESRC (src)->srcpad;
+ src->srcpad = GST_BASE_SRC (src)->srcpad;
gst_pad_set_fixatecaps_function (src->srcpad, gst_sinesrc_src_fixate);
gst_pad_set_query_function (src->srcpad, gst_sinesrc_src_query);
this->caps = NULL;
this->curoffset = 0;
- gst_base_src_set_live (GST_BASESRC (this), TRUE);
+ gst_base_src_set_live (GST_BASE_SRC (this), TRUE);
GST_FLAG_UNSET (this, GST_TCPCLIENTSRC_OPEN);
}
sizeof (src->server_sin));
if (ret) {
- gst_tcpclientsrc_stop (GST_BASESRC (src));
+ gst_tcpclientsrc_stop (GST_BASE_SRC (src));
switch (errno) {
case ECONNREFUSED:
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ,
}
name_resolv:
{
- gst_tcpclientsrc_stop (GST_BASESRC (src));
+ gst_tcpclientsrc_stop (GST_BASE_SRC (src));
return FALSE;
}
no_caps:
{
- gst_tcpclientsrc_stop (GST_BASESRC (src));
+ gst_tcpclientsrc_stop (GST_BASE_SRC (src));
GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),
("Could not read caps through GDP"));
return FALSE;
GST_DEBUG_OBJECT (src, "Received caps through GDP: %s", string);
g_free (string);
- gst_pad_set_caps (GST_BASESRC_PAD (psrc), caps);
+ gst_pad_set_caps (GST_BASE_SRC_PAD (psrc), caps);
}
/* now receive the buffer header */