From: Thomas V. S. <tho...@us...> - 2002-09-09 23:28:20
|
CVS Root: /cvsroot/gstreamer Module: gst-plugins Changes by: thomasvs Date: Mon Sep 09 2002 16:28:18 PDT Log message: removing warnings as approved by wim Modified files: ext/a52dec : gsta52dec.c ext/alsa : gstalsa.c ext/audiofile : gstafparse.c gstafsrc.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ext/a52dec/gsta52dec.c.diff?r1=1.9&r2=1.10 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ext/alsa/gstalsa.c.diff?r1=1.19&r2=1.20 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ext/audiofile/gstafparse.c.diff?r1=1.9&r2=1.10 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ext/audiofile/gstafsrc.c.diff?r1=1.12&r2=1.13 ====Begin Diffs==== Index: gsta52dec.c =================================================================== RCS file: /cvsroot/gstreamer/gst-plugins/ext/a52dec/gsta52dec.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- gsta52dec.c 31 May 2002 08:24:26 -0000 1.9 +++ gsta52dec.c 9 Sep 2002 23:27:36 -0000 1.10 @@ -548,10 +548,8 @@ GstElementFactory *factory; /* this filter needs the bytestream package */ - if (!gst_library_load ("gstbytestream")) { - gst_info ("a52dec:: could not load support library: 'gstbytestream'\n"); + if (!gst_library_load ("gstbytestream")) return FALSE; - } /* create an elementfactory for the a52dec element */ factory = gst_element_factory_new ("a52dec", GST_TYPE_A52DEC, &gst_a52dec_details); Index: gstalsa.c =================================================================== RCS file: /cvsroot/gstreamer/gst-plugins/ext/alsa/gstalsa.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- gstalsa.c 16 Jul 2002 14:36:53 -0000 1.19 +++ gstalsa.c 9 Sep 2002 23:27:36 -0000 1.20 @@ -1463,21 +1463,23 @@ { GstElementFactory *factory; - if (!gst_library_load ("gstbytestream")) { - gst_info("alsa: could not load support library: 'gstbytestream'\n"); + if (!gst_library_load ("gstbytestream")) 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); - 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_pad_factory ()); + gst_element_factory_add_pad_template (factory, + gst_alsa_src_request_pad_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); 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_set_longname(plugin, "ALSA plugin library"); Index: gstafparse.c =================================================================== RCS file: /cvsroot/gstreamer/gst-plugins/ext/audiofile/gstafparse.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- gstafparse.c 8 Jun 2002 09:25:20 -0000 1.9 +++ gstafparse.c 9 Sep 2002 23:27:37 -0000 1.10 @@ -188,11 +188,11 @@ afparse = GST_AFPARSE(element); - afparse->vfile->closure = bs = gst_bytestream_new(afparse->sinkpad); + afparse->vfile->closure = bs = gst_bytestream_new (afparse->sinkpad); /* just stop if we cannot open the file */ if (!gst_afparse_open_file (afparse)){ - gst_bytestream_destroy((GstByteStream*)afparse->vfile->closure); + gst_bytestream_destroy ((GstByteStream *) afparse->vfile->closure); gst_pad_push (afparse->srcpad, GST_BUFFER(gst_event_new (GST_EVENT_EOS))); gst_element_set_eos (GST_ELEMENT (afparse)); return; @@ -206,7 +206,7 @@ if (afGetCompression != AF_COMPRESSION_NONE || afGetByteOrder(afparse->file, AF_DEFAULT_TRACK) != afGetVirtualByteOrder(afparse->file, AF_DEFAULT_TRACK) || s_format != v_format || - s_width != v_width){ + s_width != v_width) { bypass_afread = FALSE; } @@ -233,7 +233,8 @@ /* we need to check for an event. */ gst_bytestream_get_status (bs, &waiting, &event); if (event && GST_EVENT_TYPE(event) == GST_EVENT_EOS) { - gst_pad_push (afparse->srcpad, GST_BUFFER(gst_event_new (GST_EVENT_EOS))); + gst_pad_push (afparse->srcpad, + GST_BUFFER (gst_event_new (GST_EVENT_EOS))); gst_element_set_eos (GST_ELEMENT (afparse)); break; } @@ -279,13 +280,14 @@ gst_afparse_close_file (afparse); gst_buffer_pool_unref(bufpool); - gst_bytestream_destroy((GstByteStream*)afparse->vfile->closure); + gst_bytestream_destroy ((GstByteStream*) afparse->vfile->closure); } static void -gst_afparse_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) +gst_afparse_set_property (GObject *object, guint prop_id, + const GValue *value, GParamSpec *pspec) { GstAFParse *afparse; @@ -299,11 +301,11 @@ } static void -gst_afparse_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) +gst_afparse_get_property (GObject *object, guint prop_id, + GValue *value, GParamSpec *pspec) { GstAFParse *afparse; - /* it's not null if we got it, but it might not be ours */ g_return_if_fail (GST_IS_AFPARSE (object)); afparse = GST_AFPARSE (object); @@ -332,15 +334,9 @@ /* load audio support library */ if (!gst_library_load ("gstaudio")) - { - gst_info ("gstafparse/sink: could not load support library: 'gstaudio'\n"); return FALSE; - } if (!gst_library_load ("gstbytestream")) - { - gst_info ("gstafparse/sink: could not load support library: 'gstbytestream'\n"); return FALSE; - } return TRUE; } Index: gstafsrc.c =================================================================== RCS file: /cvsroot/gstreamer/gst-plugins/ext/audiofile/gstafsrc.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- gstafsrc.c 26 May 2002 21:59:20 -0000 1.12 +++ gstafsrc.c 9 Sep 2002 23:27:37 -0000 1.13 @@ -286,10 +286,7 @@ /* load audio support library */ if (!gst_library_load ("gstaudio")) - { - gst_info ("gstafsrc/sink: could not load support library: 'gstaudio'\n"); return FALSE; - } return TRUE; } |