summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-07-28 19:48:26 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-07-28 19:48:26 +0000
commitced0529b53ea74d45e3e2a27a70cc751f7c1f333 (patch)
tree6aab452e4141443beff0146191fb3e1909e5c261 /ext
parent7168a7b9c0ac0a9d6a7bd8a62ca8cc36fe4beee1 (diff)
avoid symbol conflicts
Original commit message from CVS: avoid symbol conflicts
Diffstat (limited to 'ext')
-rw-r--r--ext/flac/gstflac.c20
-rw-r--r--ext/flac/gstflacdec.c6
-rw-r--r--ext/flac/gstflacenc.c6
3 files changed, 16 insertions, 16 deletions
diff --git a/ext/flac/gstflac.c b/ext/flac/gstflac.c
index 6faa0357..f36815a5 100644
--- a/ext/flac/gstflac.c
+++ b/ext/flac/gstflac.c
@@ -26,8 +26,8 @@ extern GstElementDetails flacdec_details;
static GstCaps* flac_type_find (GstBuffer *buf, gpointer private);
-GstPadTemplate *dec_src_template, *dec_sink_template;
-GstPadTemplate *enc_src_template, *enc_sink_template;
+GstPadTemplate *gst_flacdec_src_template, *gst_flacdec_sink_template;
+GstPadTemplate *gst_flacenc_src_template, *gst_flacenc_sink_template;
static GstCaps*
flac_caps_factory (void)
@@ -101,16 +101,16 @@ plugin_init (GModule *module, GstPlugin *plugin)
flac_caps = flac_caps_factory ();
/* register sink pads */
- enc_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,
+ gst_flacenc_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,
GST_PAD_ALWAYS,
raw_caps, NULL);
- gst_element_factory_add_pad_template (enc, enc_sink_template);
+ gst_element_factory_add_pad_template (enc, gst_flacenc_sink_template);
/* register src pads */
- enc_src_template = gst_pad_template_new ("src", GST_PAD_SRC,
+ gst_flacenc_src_template = gst_pad_template_new ("src", GST_PAD_SRC,
GST_PAD_ALWAYS,
flac_caps, NULL);
- gst_element_factory_add_pad_template (enc, enc_src_template);
+ gst_element_factory_add_pad_template (enc, gst_flacenc_src_template);
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (enc));
@@ -121,16 +121,16 @@ plugin_init (GModule *module, GstPlugin *plugin)
gst_element_factory_set_rank (dec, GST_ELEMENT_RANK_PRIMARY);
/* register sink pads */
- dec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,
+ gst_flacdec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,
GST_PAD_ALWAYS,
flac_caps, NULL);
- gst_element_factory_add_pad_template (dec, dec_sink_template);
+ gst_element_factory_add_pad_template (dec, gst_flacdec_sink_template);
/* register src pads */
- dec_src_template = gst_pad_template_new ("src", GST_PAD_SRC,
+ gst_flacdec_src_template = gst_pad_template_new ("src", GST_PAD_SRC,
GST_PAD_ALWAYS,
raw_caps, NULL);
- gst_element_factory_add_pad_template (dec, dec_src_template);
+ gst_element_factory_add_pad_template (dec, gst_flacdec_src_template);
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (dec));
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c
index 8bc51a72..0df31a0e 100644
--- a/ext/flac/gstflacdec.c
+++ b/ext/flac/gstflacdec.c
@@ -24,7 +24,7 @@
#include "gstflacdec.h"
-extern GstPadTemplate *dec_src_template, *dec_sink_template;
+extern GstPadTemplate *gst_flacdec_src_template, *gst_flacdec_sink_template;
/* elementfactory information */
GstElementDetails flacdec_details = {
@@ -127,12 +127,12 @@ gst_flacdec_class_init (FlacDecClass *klass)
static void
gst_flacdec_init (FlacDec *flacdec)
{
- flacdec->sinkpad = gst_pad_new_from_template (dec_sink_template, "sink");
+ flacdec->sinkpad = gst_pad_new_from_template (gst_flacdec_sink_template, "sink");
gst_element_add_pad (GST_ELEMENT (flacdec), flacdec->sinkpad);
gst_pad_set_convert_function (flacdec->sinkpad, NULL);
gst_element_set_loop_function (GST_ELEMENT (flacdec), gst_flacdec_loop);
- flacdec->srcpad = gst_pad_new_from_template (dec_src_template, "src");
+ flacdec->srcpad = gst_pad_new_from_template (gst_flacdec_src_template, "src");
gst_element_add_pad (GST_ELEMENT (flacdec), flacdec->srcpad);
gst_pad_set_formats_function (flacdec->srcpad, gst_flacdec_get_src_formats);
gst_pad_set_convert_function (flacdec->srcpad, gst_flacdec_convert_src);
diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c
index 94fe60b7..3351e39b 100644
--- a/ext/flac/gstflacenc.c
+++ b/ext/flac/gstflacenc.c
@@ -23,7 +23,7 @@
#include <gstflacenc.h>
-extern GstPadTemplate *enc_src_template, *enc_sink_template;
+extern GstPadTemplate *gst_flacenc_src_template, *gst_flacenc_sink_template;
/* elementfactory information */
GstElementDetails flacenc_details = {
@@ -124,12 +124,12 @@ gst_flacenc_sinkconnect (GstPad *pad, GstCaps *caps)
static void
gst_flacenc_init (FlacEnc *flacenc)
{
- flacenc->sinkpad = gst_pad_new_from_template (enc_sink_template, "sink");
+ flacenc->sinkpad = gst_pad_new_from_template (gst_flacenc_sink_template, "sink");
gst_element_add_pad(GST_ELEMENT(flacenc),flacenc->sinkpad);
gst_pad_set_chain_function(flacenc->sinkpad,gst_flacenc_chain);
gst_pad_set_connect_function (flacenc->sinkpad, gst_flacenc_sinkconnect);
- flacenc->srcpad = gst_pad_new_from_template (enc_src_template, "src");
+ flacenc->srcpad = gst_pad_new_from_template (gst_flacenc_src_template, "src");
gst_element_add_pad(GST_ELEMENT(flacenc),flacenc->srcpad);
flacenc->first = TRUE;