mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
removing warnings (approved by wtay)
Original commit message from CVS: removing warnings (approved by wtay)
This commit is contained in:
parent
572b022f55
commit
5d94ef6f62
4 changed files with 10 additions and 17 deletions
|
@ -855,14 +855,12 @@ gst_mpeg_demux_plugin_init (GModule *module, GstPlugin *plugin)
|
|||
GstElementFactory *factory;
|
||||
|
||||
/* this filter needs the bytestream package */
|
||||
if (!gst_library_load ("gstbytestream")) {
|
||||
gst_info ("mpegdemux: could not load support library: 'gstbytestream'\n");
|
||||
if (!gst_library_load ("gstbytestream"))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* create an elementfactory for the mpeg_demux element */
|
||||
factory = gst_element_factory_new ("mpegdemux", GST_TYPE_MPEG_DEMUX,
|
||||
&mpeg_demux_details);
|
||||
&mpeg_demux_details);
|
||||
g_return_val_if_fail (factory != NULL, FALSE);
|
||||
gst_element_factory_set_rank (factory, GST_ELEMENT_RANK_PRIMARY);
|
||||
|
||||
|
|
|
@ -636,14 +636,12 @@ gst_mpeg_parse_plugin_init (GModule *module, GstPlugin *plugin)
|
|||
GstElementFactory *factory;
|
||||
|
||||
/* this filter needs the bytestream package */
|
||||
if (!gst_library_load("gstbytestream")) {
|
||||
gst_info("mpeg_parse:: could not load support library: 'gstbytestream'\n");
|
||||
if (!gst_library_load ("gstbytestream"))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* create an elementfactory for the mpeg_parse element */
|
||||
factory = gst_element_factory_new("mpegparse",GST_TYPE_MPEG_PARSE,
|
||||
&mpeg_parse_details);
|
||||
factory = gst_element_factory_new ("mpegparse", GST_TYPE_MPEG_PARSE,
|
||||
&mpeg_parse_details);
|
||||
g_return_val_if_fail(factory != NULL, FALSE);
|
||||
|
||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (src_factory));
|
||||
|
|
|
@ -26,9 +26,8 @@ static gboolean
|
|||
plugin_init (GModule *module, GstPlugin *plugin)
|
||||
{
|
||||
/* mpegdemux needs the bytestream package */
|
||||
if (!gst_library_load ("gstbytestream")) {
|
||||
gst_info ("mpeg_demux:: could not load support library: 'gstbytestream'\n"); return FALSE;
|
||||
}
|
||||
if (!gst_library_load ("gstbytestream"))
|
||||
return FALSE;
|
||||
|
||||
/* short-circuit here; this is potentially dangerous since if the second
|
||||
* or third init fails then the whole plug-in will be placed on the register
|
||||
|
|
|
@ -324,14 +324,12 @@ gst_rfc2250_enc_plugin_init (GModule *module, GstPlugin *plugin)
|
|||
GstElementFactory *factory;
|
||||
|
||||
/* this filter needs the bytestream package */
|
||||
if (!gst_library_load("gstbytestream")) {
|
||||
gst_info("rfc2250_enc:: could not load support library: 'gstbytestream'\n");
|
||||
if (!gst_library_load("gstbytestream"))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* create an elementfactory for the rfc2250_enc element */
|
||||
factory = gst_element_factory_new("rfc2250enc",GST_TYPE_RFC2250_ENC,
|
||||
&rfc2250_enc_details);
|
||||
factory = gst_element_factory_new ("rfc2250enc", GST_TYPE_RFC2250_ENC,
|
||||
&rfc2250_enc_details);
|
||||
g_return_val_if_fail(factory != NULL, FALSE);
|
||||
|
||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (src_factory));
|
||||
|
|
Loading…
Reference in a new issue