From 5d94ef6f62e04c6355f7f1e6bf30f1417ab338ae Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 9 Sep 2002 23:24:29 +0000 Subject: [PATCH] removing warnings (approved by wtay) Original commit message from CVS: removing warnings (approved by wtay) --- gst/mpegstream/gstmpegdemux.c | 6 ++---- gst/mpegstream/gstmpegparse.c | 8 +++----- gst/mpegstream/gstmpegstream.c | 5 ++--- gst/mpegstream/gstrfc2250enc.c | 8 +++----- 4 files changed, 10 insertions(+), 17 deletions(-) diff --git a/gst/mpegstream/gstmpegdemux.c b/gst/mpegstream/gstmpegdemux.c index f9198ad9b4..de24f72ed4 100644 --- a/gst/mpegstream/gstmpegdemux.c +++ b/gst/mpegstream/gstmpegdemux.c @@ -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); diff --git a/gst/mpegstream/gstmpegparse.c b/gst/mpegstream/gstmpegparse.c index 2af666d9da..db2e5deed8 100644 --- a/gst/mpegstream/gstmpegparse.c +++ b/gst/mpegstream/gstmpegparse.c @@ -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)); diff --git a/gst/mpegstream/gstmpegstream.c b/gst/mpegstream/gstmpegstream.c index ae91575187..869704f8bb 100644 --- a/gst/mpegstream/gstmpegstream.c +++ b/gst/mpegstream/gstmpegstream.c @@ -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 diff --git a/gst/mpegstream/gstrfc2250enc.c b/gst/mpegstream/gstrfc2250enc.c index c9b83e87a0..c854e4b0da 100644 --- a/gst/mpegstream/gstrfc2250enc.c +++ b/gst/mpegstream/gstrfc2250enc.c @@ -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));