static void gst_iir_equalizer_finalize (GObject * object);
-static gboolean gst_iir_equalizer_setup (GstAudioFilter * filter,
- GstAudioRingBufferSpec * fmt);
-
G_DEFINE_TYPE_WITH_CODE(Gstaudioeq, gst_audioeq, GST_TYPE_BASE_TRANSFORM,
G_IMPLEMENT_INTERFACE(GST_TYPE_CHILD_PROXY, gst_iir_equalizer_child_proxy_interface_init));
return ret;
}
+#if 0
static void
gst_audioeq_base_init (gpointer gclass)
{
GST_DEBUG ("gst_audioeq_base_init");
}
+#endif
static void
gst_audioeq_class_init (GstaudioeqClass * klass)
audioeq->filter_action = DEFAULT_FILTER_ACTION;
memset(audioeq->custom_eq, 0x00, sizeof(gint) * CUSTOM_EQ_BAND_MAX);
audioeq->need_update_filter = TRUE;
- audioeq->equ.bands_lock = g_mutex_new ();
+
+ g_mutex_init(&audioeq->equ.bands_lock);
audioeq->equ.need_new_coefficients = TRUE;
gst_iir_equalizer_compute_frequencies (audioeq, DEFAULT_CUSTOM_EQ_NUM);
}
g_free (equ->bands);
g_free (equ->history);
- g_mutex_free (equ->bands_lock);
+ g_mutex_clear (&equ->bands_lock);
G_OBJECT_CLASS (gst_audioeq_parent_class)->finalize (object);
}
-#define BANDS_LOCK(equ) g_mutex_lock(equ->bands_lock)
-#define BANDS_UNLOCK(equ) g_mutex_unlock(equ->bands_lock)
+#define BANDS_LOCK(equ) g_mutex_lock(&equ->bands_lock)
+#define BANDS_UNLOCK(equ) g_mutex_unlock(&equ->bands_lock)
/* child object */
gst_iir_equalizer_init (GstIirEqualizer * eq, GstIirEqualizerClass * g_class)
{
GST_DEBUG ("gst_iir_equalizer_init");
- eq->bands_lock = g_mutex_new ();
+
+ g_mutex_init(&eq->bands_lock);
eq->need_new_coefficients = TRUE;
}
}
}
+#if 0
static gboolean
gst_iir_equalizer_setup (GstAudioFilter * audio, GstAudioRingBufferSpec * fmt)
{
alloc_history (equ);
return TRUE;
}
-
+#endif
static gboolean
plugin_init (GstPlugin * plugin)
/*< private >*/
- GMutex *bands_lock;
+ GMutex bands_lock;
GstIirEqualizerBand **bands;
/* properties */
// Gstreamer Base Functions //
////////////////////////////////////////////////////////
+#if 0
/**
**
** Description: The element details and pad templates are registered with the plugin
gst_audiotp_base_init(gpointer klass)
{
}
-
+#endif
/**
**
G_DEFINE_TYPE_WITH_CODE (GstDrmSrc, gst_drm_src, GST_TYPE_BASE_SRC,
G_IMPLEMENT_INTERFACE(GST_TYPE_URI_HANDLER, gst_drm_src_uri_handler_init));
+#if 0
/**
* This function does the following:
* 1. Sets the class details
static void gst_drm_src_base_init (gpointer g_class)
{
}
+#endif
+
/**
* This function does the following:
* 1. Installs the properties
{
struct stat stat_results;
GstDrmSrc *src = GST_DRM_SRC (basesrc);
- unsigned int offset;
// 1. Gets the filesize for drm file by using seek oprations
G_DEFINE_TYPE_WITH_CODE (GstPDPushSrc, gst_pd_pushsrc, GST_TYPE_BASE_SRC,
G_IMPLEMENT_INTERFACE(GST_TYPE_URI_HANDLER, gst_pd_pushsrc_uri_handler_init));
-
+#if 0
static void
gst_pd_pushsrc_base_init (gpointer g_class)
{
GST_LOG ("OUT");
}
-
+#endif
static void
gst_pd_pushsrc_class_init (GstPDPushSrcClass * klass)
{
gst_pd_pushsrc_init (GstPDPushSrc * src)
{
GST_LOG ("IN");
- GstBaseSrc *basesrc = GST_BASE_SRC (src);
src->filename = NULL;
src->fd = 0;
if (fstat (src->fd, &stat_results) < 0)
goto could_not_stat;
- GST_LOG_OBJECT (src, "offset + length = %"G_GUINT64_FORMAT " and filesize = %"G_GUINT64_FORMAT, offset + length, stat_results.st_size);
+ GST_LOG_OBJECT (src, "offset + length = %"G_GUINT64_FORMAT " and filesize = %"G_GUINT64_FORMAT, offset + length, (guint64)stat_results.st_size);
while ((offset + length) > stat_results.st_size)
{
{
GST_LOG ("IN");
- GstPDPushSrc *pdsrc;
GstFlowReturn ret;
- pdsrc = GST_PD_PUSHSRC_CAST (basesrc);
ret = gst_pd_pushsrc_create_read (basesrc, offset, length, buffer);
GST_LOG ("OUT");
{
PROP_0,
PROP_BLOCK_DATA
-
+
};
static gboolean gst_mytoggle_start (GstBaseTransform * trans);
static gboolean gst_mytoggle_stop (GstBaseTransform * trans);
+#if 0
static void
gst_mytoggle_base_init (gpointer g_class)
{
}
+#endif
static void
gst_mytoggle_finalize (GObject * object)
{
- GstMytoggle *mytoggle;
-
G_OBJECT_CLASS (gst_mytoggle_parent_class)->finalize (object);
}
g_object_class_install_property (gobject_class,
PROP_BLOCK_DATA, g_param_spec_boolean ("block_data",
"Data Block",
- "Data Block",
+ "Data Block",
DEFAULT_BLOCK_DATA, G_PARAM_READWRITE));
-
+
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_mytoggle_finalize);
gst_element_class_set_details_simple (gstelement_class,
gst_mytoggle_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
{
GstMytoggle *mytoggle = GST_MYTOGGLE (trans);
-
- if (mytoggle->block_data ==TRUE)
+
+ if (mytoggle->block_data ==TRUE)
return GST_BASE_TRANSFORM_FLOW_DROPPED;
return GST_FLOW_OK;
mytoggle = GST_MYTOGGLE (object);
switch (prop_id) {
-
+
case PROP_BLOCK_DATA:
mytoggle->block_data = g_value_get_boolean (value);
break;
toggle,
"Base transform plugin template",
plugin_init, VERSION, "LGPL", "Samsung Electronics Co", "http://www.samsung.com/")
-
+