summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ext/audiofile/gstafparse.c24
-rw-r--r--ext/audiofile/gstafsrc.c3
-rw-r--r--ext/jack/gstjack.c4
-rw-r--r--ext/ladspa/gstladspa.c4
4 files changed, 12 insertions, 23 deletions
diff --git a/ext/audiofile/gstafparse.c b/ext/audiofile/gstafparse.c
index 6178f722..c1d55c3c 100644
--- a/ext/audiofile/gstafparse.c
+++ b/ext/audiofile/gstafparse.c
@@ -188,11 +188,11 @@ gst_afparse_loop(GstElement *element)
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 @@ gst_afparse_loop(GstElement *element)
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 @@ gst_afparse_loop(GstElement *element)
/* 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_loop(GstElement *element)
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 @@ gst_afparse_set_property (GObject *object, guint prop_id, const GValue *value, G
}
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 @@ gst_afparse_plugin_init (GModule *module, GstPlugin *plugin)
/* 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;
}
diff --git a/ext/audiofile/gstafsrc.c b/ext/audiofile/gstafsrc.c
index d42c6ebc..af9dfe64 100644
--- a/ext/audiofile/gstafsrc.c
+++ b/ext/audiofile/gstafsrc.c
@@ -286,10 +286,7 @@ gst_afsrc_plugin_init (GModule *module, GstPlugin *plugin)
/* load audio support library */
if (!gst_library_load ("gstaudio"))
- {
- gst_info ("gstafsrc/sink: could not load support library: 'gstaudio'\n");
return FALSE;
- }
return TRUE;
}
diff --git a/ext/jack/gstjack.c b/ext/jack/gstjack.c
index 14e50d5e..18d4ce43 100644
--- a/ext/jack/gstjack.c
+++ b/ext/jack/gstjack.c
@@ -487,10 +487,8 @@ plugin_init (GModule *module, GstPlugin *plugin)
{
GstElementFactory *factory;
- if (!gst_library_load ("gstbytestream")) {
- gst_info("jack: could not load support library: 'gstbytestream'\n");
+ if (!gst_library_load ("gstbytestream"))
return FALSE;
- }
factory = gst_element_factory_new ("jackbin", GST_TYPE_JACK_BIN, &gst_jack_bin_details);
g_return_val_if_fail (factory != NULL, FALSE);
diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c
index 87641161..7970c5d2 100644
--- a/ext/ladspa/gstladspa.c
+++ b/ext/ladspa/gstladspa.c
@@ -1163,10 +1163,8 @@ plugin_init (GModule *module, GstPlugin *plugin)
LADSPAPluginSearch(ladspa_describe_plugin);
- if (! gst_library_load ("gstbytestream")) {
- gst_info ("gstladspa: could not load support library: 'gstbytestream'\n");
+ if (! gst_library_load ("gstbytestream"))
return FALSE;
- }
/* initialize dparam support library */
gst_control_init(NULL,NULL);