removing warnings as approved by wim
Original commit message from CVS: removing warnings as approved by wim
This commit is contained in:
parent
a734880ad3
commit
2ddfd11493
@ -1463,21 +1463,23 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||||||
{
|
{
|
||||||
GstElementFactory *factory;
|
GstElementFactory *factory;
|
||||||
|
|
||||||
if (!gst_library_load ("gstbytestream")) {
|
if (!gst_library_load ("gstbytestream"))
|
||||||
gst_info("alsa: could not load support library: 'gstbytestream'\n");
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
|
||||||
|
|
||||||
factory = gst_element_factory_new ("alsasrc", GST_TYPE_ALSA_SRC, &gst_alsa_src_details);
|
factory = gst_element_factory_new ("alsasrc", GST_TYPE_ALSA_SRC,
|
||||||
|
&gst_alsa_src_details);
|
||||||
g_return_val_if_fail (factory != NULL, FALSE);
|
g_return_val_if_fail (factory != NULL, FALSE);
|
||||||
gst_element_factory_add_pad_template (factory, gst_alsa_src_pad_factory());
|
gst_element_factory_add_pad_template (factory, gst_alsa_src_pad_factory ());
|
||||||
gst_element_factory_add_pad_template (factory, gst_alsa_src_request_pad_factory());
|
gst_element_factory_add_pad_template (factory,
|
||||||
|
gst_alsa_src_request_pad_factory ());
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
||||||
|
|
||||||
factory = gst_element_factory_new ("alsasink", GST_TYPE_ALSA_SINK, &gst_alsa_sink_details);
|
factory = gst_element_factory_new ("alsasink", GST_TYPE_ALSA_SINK,
|
||||||
|
&gst_alsa_sink_details);
|
||||||
g_return_val_if_fail (factory != NULL, FALSE);
|
g_return_val_if_fail (factory != NULL, FALSE);
|
||||||
gst_element_factory_add_pad_template (factory, gst_alsa_sink_pad_factory());
|
gst_element_factory_add_pad_template (factory, gst_alsa_sink_pad_factory());
|
||||||
gst_element_factory_add_pad_template (factory, gst_alsa_sink_request_pad_factory());
|
gst_element_factory_add_pad_template (factory,
|
||||||
|
gst_alsa_sink_request_pad_factory());
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
||||||
|
|
||||||
gst_plugin_set_longname(plugin, "ALSA plugin library");
|
gst_plugin_set_longname(plugin, "ALSA plugin library");
|
||||||
|
@ -106,7 +106,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||||||
|
|
||||||
/* create an elementfactory for the vorbisenc element */
|
/* create an elementfactory for the vorbisenc element */
|
||||||
enc = gst_element_factory_new ("vorbisenc", GST_TYPE_VORBISENC,
|
enc = gst_element_factory_new ("vorbisenc", GST_TYPE_VORBISENC,
|
||||||
&vorbisenc_details);
|
&vorbisenc_details);
|
||||||
g_return_val_if_fail (enc != NULL, FALSE);
|
g_return_val_if_fail (enc != NULL, FALSE);
|
||||||
|
|
||||||
raw_caps = raw_caps_factory ();
|
raw_caps = raw_caps_factory ();
|
||||||
@ -115,41 +115,41 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||||||
|
|
||||||
/* register sink pads */
|
/* register sink pads */
|
||||||
gst_vorbisenc_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,
|
gst_vorbisenc_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
raw_caps, NULL);
|
raw_caps, NULL);
|
||||||
gst_element_factory_add_pad_template (enc, gst_vorbisenc_sink_template);
|
gst_element_factory_add_pad_template (enc, gst_vorbisenc_sink_template);
|
||||||
|
|
||||||
/* register src pads */
|
/* register src pads */
|
||||||
gst_vorbisenc_src_template = gst_pad_template_new ("src", GST_PAD_SRC,
|
gst_vorbisenc_src_template = gst_pad_template_new ("src", GST_PAD_SRC,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
vorbis_caps, NULL);
|
vorbis_caps, NULL);
|
||||||
gst_element_factory_add_pad_template (enc, gst_vorbisenc_src_template);
|
gst_element_factory_add_pad_template (enc, gst_vorbisenc_src_template);
|
||||||
|
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (enc));
|
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (enc));
|
||||||
|
|
||||||
/* create an elementfactory for the vorbisdec element */
|
/* create an elementfactory for the vorbisdec element */
|
||||||
dec = gst_element_factory_new("vorbisdec",GST_TYPE_VORBISDEC,
|
dec = gst_element_factory_new ("vorbisdec", GST_TYPE_VORBISDEC,
|
||||||
&vorbisdec_details);
|
&vorbisdec_details);
|
||||||
g_return_val_if_fail(dec != NULL, FALSE);
|
g_return_val_if_fail (dec != NULL, FALSE);
|
||||||
|
|
||||||
/* register sink pads */
|
/* register sink pads */
|
||||||
gst_vorbisdec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,
|
gst_vorbisdec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
vorbis_caps, NULL);
|
vorbis_caps, NULL);
|
||||||
gst_element_factory_add_pad_template (dec, gst_vorbisdec_sink_template);
|
gst_element_factory_add_pad_template (dec, gst_vorbisdec_sink_template);
|
||||||
|
|
||||||
raw_caps = gst_caps_prepend (raw_caps, raw_caps2);
|
raw_caps = gst_caps_prepend (raw_caps, raw_caps2);
|
||||||
/* register src pads */
|
/* register src pads */
|
||||||
gst_vorbisdec_src_template = gst_pad_template_new ("src", GST_PAD_SRC,
|
gst_vorbisdec_src_template = gst_pad_template_new ("src", GST_PAD_SRC,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
raw_caps, NULL);
|
raw_caps, NULL);
|
||||||
gst_element_factory_add_pad_template (dec, gst_vorbisdec_src_template);
|
gst_element_factory_add_pad_template (dec, gst_vorbisdec_src_template);
|
||||||
|
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (dec));
|
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (dec));
|
||||||
|
|
||||||
/* create an elementfactory for the vorbisfile element */
|
/* create an elementfactory for the vorbisfile element */
|
||||||
file = gst_element_factory_new("vorbisfile", vorbisfile_get_type(),
|
file = gst_element_factory_new ("vorbisfile", vorbisfile_get_type(),
|
||||||
&vorbisfile_details);
|
&vorbisfile_details);
|
||||||
g_return_val_if_fail(file != NULL, FALSE);
|
g_return_val_if_fail(file != NULL, FALSE);
|
||||||
gst_element_factory_set_rank (file, GST_ELEMENT_RANK_PRIMARY);
|
gst_element_factory_set_rank (file, GST_ELEMENT_RANK_PRIMARY);
|
||||||
|
|
||||||
@ -161,10 +161,8 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (file));
|
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (file));
|
||||||
|
|
||||||
/* this filter needs the bytestream package */
|
/* this filter needs the bytestream package */
|
||||||
if (!gst_library_load ("gstbytestream")) {
|
if (!gst_library_load ("gstbytestream"))
|
||||||
gst_info ("vorbis:: could not load support library: 'gstbytestream'\n");
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
|
||||||
|
|
||||||
type = gst_type_factory_new (&vorbisdefinition);
|
type = gst_type_factory_new (&vorbisdefinition);
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (type));
|
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (type));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user