mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
795bf6c53b
Use the object class and not the object in the init function. Set the vmethods. Add default returns.
62 lines
1.5 KiB
C
62 lines
1.5 KiB
C
/* vim: set filetype=c: */
|
|
% ClassName
|
|
GstCddaBaseSrc
|
|
% TYPE_CLASS_NAME
|
|
GST_TYPE_CDDA_BASE_SRC
|
|
% pads
|
|
srcpad-simple
|
|
% pkg-config
|
|
gstreamer-cdda-0.10
|
|
% includes
|
|
#include <gst/cdda/gstcddabasesrc.h>
|
|
% prototypes
|
|
static gboolean gst_replace_open (GstCddaBaseSrc * src, const gchar * device);
|
|
static void gst_replace_close (GstCddaBaseSrc * src);
|
|
static GstBuffer *gst_replace_read_sector (GstCddaBaseSrc * src, gint sector);
|
|
static gchar *gst_replace_get_default_device (GstCddaBaseSrc * src);
|
|
static gchar **gst_replace_probe_devices (GstCddaBaseSrc * src);
|
|
% declare-class
|
|
GstCddaBaseSrcClass *cddabase_src_class = GST_CDDA_BASE_SRC_CLASS (klass);
|
|
% set-methods
|
|
cddabase_src_class->open = GST_DEBUG_FUNCPTR (gst_replace_open);
|
|
cddabase_src_class->close = GST_DEBUG_FUNCPTR (gst_replace_close);
|
|
cddabase_src_class->read_sector = GST_DEBUG_FUNCPTR (gst_replace_read_sector);
|
|
cddabase_src_class->get_default_device = GST_DEBUG_FUNCPTR (gst_replace_get_default_device);
|
|
cddabase_src_class->probe_devices = GST_DEBUG_FUNCPTR (gst_replace_probe_devices);
|
|
% methods
|
|
|
|
|
|
static gboolean
|
|
gst_replace_open (GstCddaBaseSrc * src, const gchar * device)
|
|
{
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
static void
|
|
gst_replace_close (GstCddaBaseSrc * src)
|
|
{
|
|
|
|
}
|
|
|
|
static GstBuffer *
|
|
gst_replace_read_sector (GstCddaBaseSrc * src, gint sector)
|
|
{
|
|
|
|
return NULL;
|
|
}
|
|
|
|
static gchar *
|
|
gst_replace_get_default_device (GstCddaBaseSrc * src)
|
|
{
|
|
|
|
return NULL;
|
|
}
|
|
|
|
static gchar **
|
|
gst_replace_probe_devices (GstCddaBaseSrc * src)
|
|
{
|
|
|
|
return NULL;
|
|
}
|
|
% end
|