+2005-07-05 Andy Wingo <wingo@pobox.com>
+
+ * gst/elements/gstfilesrc.c:
+ * gst/elements/gstfakesrc.c:
+ * gst/base/gstpushsrc.c:
+ * gst/base/gstbasesrc.h:
+ * gst/base/gstbasesrc.c: s/BASESRC/BASE_SRC/g.
+
2005-07-05 Stefan Kost <ensonic@users.sf.net>
* Makefile.am:
</para>
-@GST_BASESRC_STARTED:
-@GST_BASESRC_FLAG_LAST:
+@GST_BASE_SRC_STARTED:
+@GST_BASE_SRC_FLAG_LAST:
<!-- ##### FUNCTION gst_base_src_is_live ##### -->
<para>
@live:
-<!-- ##### MACRO GST_BASESRC_PAD ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
basesrc->blocksize = DEFAULT_BLOCKSIZE;
basesrc->clock_id = NULL;
- GST_FLAG_UNSET (basesrc, GST_BASESRC_STARTED);
+ GST_FLAG_UNSET (basesrc, GST_BASE_SRC_STARTED);
}
void
gint64 i64;
GstBaseSrc *src;
- src = GST_BASESRC (GST_PAD_PARENT (pad));
+ src = GST_BASE_SRC (GST_PAD_PARENT (pad));
switch (GST_QUERY_TYPE (query)) {
case GST_QUERY_POSITION:
GstBaseSrcClass *bclass;
gboolean result;
- src = GST_BASESRC (GST_PAD_PARENT (pad));
- bclass = GST_BASESRC_GET_CLASS (src);
+ src = GST_BASE_SRC (GST_PAD_PARENT (pad));
+ bclass = GST_BASE_SRC_GET_CLASS (src);
if (bclass->event)
result = bclass->event (src, event);
{
GstBaseSrc *src;
- src = GST_BASESRC (object);
+ src = GST_BASE_SRC (object);
switch (prop_id) {
case PROP_BLOCKSIZE:
{
GstBaseSrc *src;
- src = GST_BASESRC (object);
+ src = GST_BASE_SRC (object);
switch (prop_id) {
case PROP_BLOCKSIZE:
GstBaseSrc *src;
GstBaseSrcClass *bclass;
- src = GST_BASESRC (GST_OBJECT_PARENT (pad));
- bclass = GST_BASESRC_GET_CLASS (src);
+ src = GST_BASE_SRC (GST_OBJECT_PARENT (pad));
+ bclass = GST_BASE_SRC_GET_CLASS (src);
GST_LIVE_LOCK (src);
if (src->is_live) {
}
GST_LIVE_UNLOCK (src);
- if (!GST_FLAG_IS_SET (src, GST_BASESRC_STARTED))
+ if (!GST_FLAG_IS_SET (src, GST_BASE_SRC_STARTED))
goto not_started;
if (!bclass->create)
{
GstBaseSrc *src;
- src = GST_BASESRC (GST_OBJECT_PARENT (pad));
+ src = GST_BASE_SRC (GST_OBJECT_PARENT (pad));
- if (!GST_FLAG_IS_SET (src, GST_BASESRC_STARTED)) {
+ if (!GST_FLAG_IS_SET (src, GST_BASE_SRC_STARTED)) {
gst_base_src_start (src);
gst_base_src_stop (src);
}
GstBuffer *buf = NULL;
GstFlowReturn ret;
- src = GST_BASESRC (GST_OBJECT_PARENT (pad));
+ src = GST_BASE_SRC (GST_OBJECT_PARENT (pad));
ret = gst_base_src_get_range (pad, src->offset, src->blocksize, &buf);
if (ret != GST_FLOW_OK)
GST_DEBUG ("unlock");
/* unblock whatever the subclass is doing */
- bclass = GST_BASESRC_GET_CLASS (basesrc);
+ bclass = GST_BASE_SRC_GET_CLASS (basesrc);
if (bclass->unlock)
result = bclass->unlock (basesrc);
GstBaseSrcClass *bclass;
gboolean result = FALSE;
- bclass = GST_BASESRC_GET_CLASS (basesrc);
+ bclass = GST_BASE_SRC_GET_CLASS (basesrc);
if (bclass->get_size)
result = bclass->get_size (basesrc, size);
{
GstBaseSrcClass *bclass;
- bclass = GST_BASESRC_GET_CLASS (basesrc);
+ bclass = GST_BASE_SRC_GET_CLASS (basesrc);
/* check if we can seek */
if (bclass->is_seekable)
GstBaseSrcClass *bclass;
gboolean result;
- if (GST_FLAG_IS_SET (basesrc, GST_BASESRC_STARTED))
+ if (GST_FLAG_IS_SET (basesrc, GST_BASE_SRC_STARTED))
return TRUE;
- bclass = GST_BASESRC_GET_CLASS (basesrc);
+ bclass = GST_BASE_SRC_GET_CLASS (basesrc);
if (bclass->start)
result = bclass->start (basesrc);
else
if (!result)
goto could_not_start;
- GST_FLAG_SET (basesrc, GST_BASESRC_STARTED);
+ GST_FLAG_SET (basesrc, GST_BASE_SRC_STARTED);
/* start in the beginning */
basesrc->offset = 0;
GstBaseSrcClass *bclass;
gboolean result = TRUE;
- if (!GST_FLAG_IS_SET (basesrc, GST_BASESRC_STARTED))
+ if (!GST_FLAG_IS_SET (basesrc, GST_BASE_SRC_STARTED))
return TRUE;
- bclass = GST_BASESRC_GET_CLASS (basesrc);
+ bclass = GST_BASE_SRC_GET_CLASS (basesrc);
if (bclass->stop)
result = bclass->stop (basesrc);
if (result)
- GST_FLAG_UNSET (basesrc, GST_BASESRC_STARTED);
+ GST_FLAG_UNSET (basesrc, GST_BASE_SRC_STARTED);
return result;
}
{
GstBaseSrc *basesrc;
- basesrc = GST_BASESRC (GST_OBJECT_PARENT (pad));
+ basesrc = GST_BASE_SRC (GST_OBJECT_PARENT (pad));
/* prepare subclass first */
if (active) {
{
GstBaseSrc *basesrc;
- basesrc = GST_BASESRC (GST_OBJECT_PARENT (pad));
+ basesrc = GST_BASE_SRC (GST_OBJECT_PARENT (pad));
/* prepare subclass first */
if (active) {
GstElementStateReturn presult;
GstElementState transition;
- basesrc = GST_BASESRC (element);
+ basesrc = GST_BASE_SRC (element);
transition = GST_STATE_TRANSITION (element);
G_BEGIN_DECLS
-#define GST_TYPE_BASESRC (gst_base_src_get_type())
-#define GST_BASESRC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_BASESRC,GstBaseSrc))
-#define GST_BASESRC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_BASESRC,GstBaseSrcClass))
-#define GST_BASESRC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_BASESRC, GstBaseSrcClass))
-#define GST_IS_BASESRC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_BASESRC))
-#define GST_IS_BASESRC_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_BASESRC))
+#define GST_TYPE_BASE_SRC (gst_base_src_get_type())
+#define GST_BASE_SRC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_BASE_SRC,GstBaseSrc))
+#define GST_BASE_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_BASE_SRC,GstBaseSrcClass))
+#define GST_BASE_SRC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_BASE_SRC, GstBaseSrcClass))
+#define GST_IS_BASE_SRC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_BASE_SRC))
+#define GST_IS_BASE_SRC_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_BASE_SRC))
typedef enum {
- GST_BASESRC_STARTED = GST_ELEMENT_FLAG_LAST,
+ GST_BASE_SRC_STARTED = GST_ELEMENT_FLAG_LAST,
- GST_BASESRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2
+ GST_BASE_SRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2
} GstBaseSrcFlags;
/* base class for random access sources
typedef struct _GstBaseSrc GstBaseSrc;
typedef struct _GstBaseSrcClass GstBaseSrcClass;
-#define GST_BASESRC_PAD(obj) (GST_BASESRC (obj)->srcpad)
+#define GST_BASE_SRC_PAD(obj) (GST_BASE_SRC (obj)->srcpad)
-#define GST_LIVE_GET_LOCK(elem) (GST_BASESRC(elem)->live_lock)
+#define GST_LIVE_GET_LOCK(elem) (GST_BASE_SRC(elem)->live_lock)
#define GST_LIVE_LOCK(elem) g_mutex_lock(GST_LIVE_GET_LOCK(elem))
#define GST_LIVE_TRYLOCK(elem) g_mutex_trylock(GST_LIVE_GET_LOCK(elem))
#define GST_LIVE_UNLOCK(elem) g_mutex_unlock(GST_LIVE_GET_LOCK(elem))
-#define GST_LIVE_GET_COND(elem) (GST_BASESRC(elem)->live_cond)
+#define GST_LIVE_GET_COND(elem) (GST_BASE_SRC(elem)->live_cond)
#define GST_LIVE_WAIT(elem) g_cond_wait (GST_LIVE_GET_COND (elem), GST_LIVE_GET_LOCK (elem))
#define GST_LIVE_TIMED_WAIT(elem, timeval) g_cond_timed_wait (GST_LIVE_GET_COND (elem), GST_LIVE_GET_LOCK (elem),\
timeval)
G_END_DECLS
-#endif /* __GST_BASESRC_H__ */
+#endif /* __GST_BASE_SRC_H__ */
(GInstanceInitFunc) gst_pushsrc_init,
};
- pushsrc_type = g_type_register_static (GST_TYPE_BASESRC,
+ pushsrc_type = g_type_register_static (GST_TYPE_BASE_SRC,
"GstPushSrc", &pushsrc_info, G_TYPE_FLAG_ABSTRACT);
}
return pushsrc_type;
gstelement_class = (GstElementClass *) klass;
gstbasesrc_class = (GstBaseSrcClass *) klass;
- parent_class = g_type_class_ref (GST_TYPE_BASESRC);
+ parent_class = g_type_class_ref (GST_TYPE_BASE_SRC);
gstbasesrc_class->create = GST_DEBUG_FUNCPTR (gst_pushsrc_create);
}
#define _do_init(bla) \
GST_DEBUG_CATEGORY_INIT (gst_fakesrc_debug, "fakesrc", 0, "fakesrc element");
-GST_BOILERPLATE_FULL (GstFakeSrc, gst_fakesrc, GstBaseSrc, GST_TYPE_BASESRC,
+GST_BOILERPLATE_FULL (GstFakeSrc, gst_fakesrc, GstBaseSrc, GST_TYPE_BASE_SRC,
_do_init);
static void gst_fakesrc_set_property (GObject * object, guint prop_id,
GstBaseSrc *basesrc;
src = GST_FAKESRC (object);
- basesrc = GST_BASESRC (object);
+ basesrc = GST_BASE_SRC (object);
switch (prop_id) {
case PROP_OUTPUT:
src->dump = g_value_get_boolean (value);
break;
case PROP_HAS_LOOP:
- g_return_if_fail (!GST_FLAG_IS_SET (object, GST_BASESRC_STARTED));
+ g_return_if_fail (!GST_FLAG_IS_SET (object, GST_BASE_SRC_STARTED));
src->has_loop = g_value_get_boolean (value);
break;
case PROP_HAS_GETRANGE:
- g_return_if_fail (!GST_FLAG_IS_SET (object, GST_BASESRC_STARTED));
+ g_return_if_fail (!GST_FLAG_IS_SET (object, GST_BASE_SRC_STARTED));
src->has_getrange = g_value_get_boolean (value);
break;
case PROP_IS_LIVE:
g_return_if_fail (GST_IS_FAKESRC (object));
src = GST_FAKESRC (object);
- basesrc = GST_BASESRC (object);
+ basesrc = GST_BASE_SRC (object);
switch (prop_id) {
case PROP_OUTPUT:
GST_DEBUG_CATEGORY_INIT (gst_filesrc_debug, "filesrc", 0, "filesrc element");
}
-GST_BOILERPLATE_FULL (GstFileSrc, gst_filesrc, GstBaseSrc, GST_TYPE_BASESRC,
+GST_BOILERPLATE_FULL (GstFileSrc, gst_filesrc, GstBaseSrc, GST_TYPE_BASE_SRC,
_do_init);
static void
basesrc->blocksize = DEFAULT_BLOCKSIZE;
basesrc->clock_id = NULL;
- GST_FLAG_UNSET (basesrc, GST_BASESRC_STARTED);
+ GST_FLAG_UNSET (basesrc, GST_BASE_SRC_STARTED);
}
void
gint64 i64;
GstBaseSrc *src;
- src = GST_BASESRC (GST_PAD_PARENT (pad));
+ src = GST_BASE_SRC (GST_PAD_PARENT (pad));
switch (GST_QUERY_TYPE (query)) {
case GST_QUERY_POSITION:
GstBaseSrcClass *bclass;
gboolean result;
- src = GST_BASESRC (GST_PAD_PARENT (pad));
- bclass = GST_BASESRC_GET_CLASS (src);
+ src = GST_BASE_SRC (GST_PAD_PARENT (pad));
+ bclass = GST_BASE_SRC_GET_CLASS (src);
if (bclass->event)
result = bclass->event (src, event);
{
GstBaseSrc *src;
- src = GST_BASESRC (object);
+ src = GST_BASE_SRC (object);
switch (prop_id) {
case PROP_BLOCKSIZE:
{
GstBaseSrc *src;
- src = GST_BASESRC (object);
+ src = GST_BASE_SRC (object);
switch (prop_id) {
case PROP_BLOCKSIZE:
GstBaseSrc *src;
GstBaseSrcClass *bclass;
- src = GST_BASESRC (GST_OBJECT_PARENT (pad));
- bclass = GST_BASESRC_GET_CLASS (src);
+ src = GST_BASE_SRC (GST_OBJECT_PARENT (pad));
+ bclass = GST_BASE_SRC_GET_CLASS (src);
GST_LIVE_LOCK (src);
if (src->is_live) {
}
GST_LIVE_UNLOCK (src);
- if (!GST_FLAG_IS_SET (src, GST_BASESRC_STARTED))
+ if (!GST_FLAG_IS_SET (src, GST_BASE_SRC_STARTED))
goto not_started;
if (!bclass->create)
{
GstBaseSrc *src;
- src = GST_BASESRC (GST_OBJECT_PARENT (pad));
+ src = GST_BASE_SRC (GST_OBJECT_PARENT (pad));
- if (!GST_FLAG_IS_SET (src, GST_BASESRC_STARTED)) {
+ if (!GST_FLAG_IS_SET (src, GST_BASE_SRC_STARTED)) {
gst_base_src_start (src);
gst_base_src_stop (src);
}
GstBuffer *buf = NULL;
GstFlowReturn ret;
- src = GST_BASESRC (GST_OBJECT_PARENT (pad));
+ src = GST_BASE_SRC (GST_OBJECT_PARENT (pad));
ret = gst_base_src_get_range (pad, src->offset, src->blocksize, &buf);
if (ret != GST_FLOW_OK)
GST_DEBUG ("unlock");
/* unblock whatever the subclass is doing */
- bclass = GST_BASESRC_GET_CLASS (basesrc);
+ bclass = GST_BASE_SRC_GET_CLASS (basesrc);
if (bclass->unlock)
result = bclass->unlock (basesrc);
GstBaseSrcClass *bclass;
gboolean result = FALSE;
- bclass = GST_BASESRC_GET_CLASS (basesrc);
+ bclass = GST_BASE_SRC_GET_CLASS (basesrc);
if (bclass->get_size)
result = bclass->get_size (basesrc, size);
{
GstBaseSrcClass *bclass;
- bclass = GST_BASESRC_GET_CLASS (basesrc);
+ bclass = GST_BASE_SRC_GET_CLASS (basesrc);
/* check if we can seek */
if (bclass->is_seekable)
GstBaseSrcClass *bclass;
gboolean result;
- if (GST_FLAG_IS_SET (basesrc, GST_BASESRC_STARTED))
+ if (GST_FLAG_IS_SET (basesrc, GST_BASE_SRC_STARTED))
return TRUE;
- bclass = GST_BASESRC_GET_CLASS (basesrc);
+ bclass = GST_BASE_SRC_GET_CLASS (basesrc);
if (bclass->start)
result = bclass->start (basesrc);
else
if (!result)
goto could_not_start;
- GST_FLAG_SET (basesrc, GST_BASESRC_STARTED);
+ GST_FLAG_SET (basesrc, GST_BASE_SRC_STARTED);
/* start in the beginning */
basesrc->offset = 0;
GstBaseSrcClass *bclass;
gboolean result = TRUE;
- if (!GST_FLAG_IS_SET (basesrc, GST_BASESRC_STARTED))
+ if (!GST_FLAG_IS_SET (basesrc, GST_BASE_SRC_STARTED))
return TRUE;
- bclass = GST_BASESRC_GET_CLASS (basesrc);
+ bclass = GST_BASE_SRC_GET_CLASS (basesrc);
if (bclass->stop)
result = bclass->stop (basesrc);
if (result)
- GST_FLAG_UNSET (basesrc, GST_BASESRC_STARTED);
+ GST_FLAG_UNSET (basesrc, GST_BASE_SRC_STARTED);
return result;
}
{
GstBaseSrc *basesrc;
- basesrc = GST_BASESRC (GST_OBJECT_PARENT (pad));
+ basesrc = GST_BASE_SRC (GST_OBJECT_PARENT (pad));
/* prepare subclass first */
if (active) {
{
GstBaseSrc *basesrc;
- basesrc = GST_BASESRC (GST_OBJECT_PARENT (pad));
+ basesrc = GST_BASE_SRC (GST_OBJECT_PARENT (pad));
/* prepare subclass first */
if (active) {
GstElementStateReturn presult;
GstElementState transition;
- basesrc = GST_BASESRC (element);
+ basesrc = GST_BASE_SRC (element);
transition = GST_STATE_TRANSITION (element);
G_BEGIN_DECLS
-#define GST_TYPE_BASESRC (gst_base_src_get_type())
-#define GST_BASESRC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_BASESRC,GstBaseSrc))
-#define GST_BASESRC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_BASESRC,GstBaseSrcClass))
-#define GST_BASESRC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_BASESRC, GstBaseSrcClass))
-#define GST_IS_BASESRC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_BASESRC))
-#define GST_IS_BASESRC_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_BASESRC))
+#define GST_TYPE_BASE_SRC (gst_base_src_get_type())
+#define GST_BASE_SRC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_BASE_SRC,GstBaseSrc))
+#define GST_BASE_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_BASE_SRC,GstBaseSrcClass))
+#define GST_BASE_SRC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_BASE_SRC, GstBaseSrcClass))
+#define GST_IS_BASE_SRC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_BASE_SRC))
+#define GST_IS_BASE_SRC_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_BASE_SRC))
typedef enum {
- GST_BASESRC_STARTED = GST_ELEMENT_FLAG_LAST,
+ GST_BASE_SRC_STARTED = GST_ELEMENT_FLAG_LAST,
- GST_BASESRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2
+ GST_BASE_SRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2
} GstBaseSrcFlags;
/* base class for random access sources
typedef struct _GstBaseSrc GstBaseSrc;
typedef struct _GstBaseSrcClass GstBaseSrcClass;
-#define GST_BASESRC_PAD(obj) (GST_BASESRC (obj)->srcpad)
+#define GST_BASE_SRC_PAD(obj) (GST_BASE_SRC (obj)->srcpad)
-#define GST_LIVE_GET_LOCK(elem) (GST_BASESRC(elem)->live_lock)
+#define GST_LIVE_GET_LOCK(elem) (GST_BASE_SRC(elem)->live_lock)
#define GST_LIVE_LOCK(elem) g_mutex_lock(GST_LIVE_GET_LOCK(elem))
#define GST_LIVE_TRYLOCK(elem) g_mutex_trylock(GST_LIVE_GET_LOCK(elem))
#define GST_LIVE_UNLOCK(elem) g_mutex_unlock(GST_LIVE_GET_LOCK(elem))
-#define GST_LIVE_GET_COND(elem) (GST_BASESRC(elem)->live_cond)
+#define GST_LIVE_GET_COND(elem) (GST_BASE_SRC(elem)->live_cond)
#define GST_LIVE_WAIT(elem) g_cond_wait (GST_LIVE_GET_COND (elem), GST_LIVE_GET_LOCK (elem))
#define GST_LIVE_TIMED_WAIT(elem, timeval) g_cond_timed_wait (GST_LIVE_GET_COND (elem), GST_LIVE_GET_LOCK (elem),\
timeval)
G_END_DECLS
-#endif /* __GST_BASESRC_H__ */
+#endif /* __GST_BASE_SRC_H__ */
(GInstanceInitFunc) gst_pushsrc_init,
};
- pushsrc_type = g_type_register_static (GST_TYPE_BASESRC,
+ pushsrc_type = g_type_register_static (GST_TYPE_BASE_SRC,
"GstPushSrc", &pushsrc_info, G_TYPE_FLAG_ABSTRACT);
}
return pushsrc_type;
gstelement_class = (GstElementClass *) klass;
gstbasesrc_class = (GstBaseSrcClass *) klass;
- parent_class = g_type_class_ref (GST_TYPE_BASESRC);
+ parent_class = g_type_class_ref (GST_TYPE_BASE_SRC);
gstbasesrc_class->create = GST_DEBUG_FUNCPTR (gst_pushsrc_create);
}
#define _do_init(bla) \
GST_DEBUG_CATEGORY_INIT (gst_fakesrc_debug, "fakesrc", 0, "fakesrc element");
-GST_BOILERPLATE_FULL (GstFakeSrc, gst_fakesrc, GstBaseSrc, GST_TYPE_BASESRC,
+GST_BOILERPLATE_FULL (GstFakeSrc, gst_fakesrc, GstBaseSrc, GST_TYPE_BASE_SRC,
_do_init);
static void gst_fakesrc_set_property (GObject * object, guint prop_id,
GstBaseSrc *basesrc;
src = GST_FAKESRC (object);
- basesrc = GST_BASESRC (object);
+ basesrc = GST_BASE_SRC (object);
switch (prop_id) {
case PROP_OUTPUT:
src->dump = g_value_get_boolean (value);
break;
case PROP_HAS_LOOP:
- g_return_if_fail (!GST_FLAG_IS_SET (object, GST_BASESRC_STARTED));
+ g_return_if_fail (!GST_FLAG_IS_SET (object, GST_BASE_SRC_STARTED));
src->has_loop = g_value_get_boolean (value);
break;
case PROP_HAS_GETRANGE:
- g_return_if_fail (!GST_FLAG_IS_SET (object, GST_BASESRC_STARTED));
+ g_return_if_fail (!GST_FLAG_IS_SET (object, GST_BASE_SRC_STARTED));
src->has_getrange = g_value_get_boolean (value);
break;
case PROP_IS_LIVE:
g_return_if_fail (GST_IS_FAKESRC (object));
src = GST_FAKESRC (object);
- basesrc = GST_BASESRC (object);
+ basesrc = GST_BASE_SRC (object);
switch (prop_id) {
case PROP_OUTPUT:
GST_DEBUG_CATEGORY_INIT (gst_filesrc_debug, "filesrc", 0, "filesrc element");
}
-GST_BOILERPLATE_FULL (GstFileSrc, gst_filesrc, GstBaseSrc, GST_TYPE_BASESRC,
+GST_BOILERPLATE_FULL (GstFileSrc, gst_filesrc, GstBaseSrc, GST_TYPE_BASE_SRC,
_do_init);
static void