mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
gst/base/gstbasesrc.c (gst_basesrc_set_property)
Original commit message from CVS: 2005-04-18 Andy Wingo <wingo@pobox.com> * gst/base/gstbasesrc.c (gst_basesrc_set_property) (gst_basesrc_get_property): BLOCKSIZE is a ULONG. Rename ARG_... to PROP_....
This commit is contained in:
parent
bff9d07034
commit
a8259f46f5
3 changed files with 20 additions and 14 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-04-18 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
|
* gst/base/gstbasesrc.c (gst_basesrc_set_property)
|
||||||
|
(gst_basesrc_get_property): BLOCKSIZE is a ULONG. Rename ARG_...
|
||||||
|
to PROP_....
|
||||||
|
|
||||||
2005-04-14 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
2005-04-14 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* docs/faq/using.xml:
|
* docs/faq/using.xml:
|
||||||
|
|
|
@ -46,8 +46,8 @@ enum
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
ARG_0,
|
PROP_0,
|
||||||
ARG_BLOCKSIZE,
|
PROP_BLOCKSIZE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static GstElementClass *parent_class = NULL;
|
static GstElementClass *parent_class = NULL;
|
||||||
|
@ -124,7 +124,7 @@ gst_basesrc_class_init (GstBaseSrcClass * klass)
|
||||||
gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_basesrc_set_property);
|
gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_basesrc_set_property);
|
||||||
gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_basesrc_get_property);
|
gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_basesrc_get_property);
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BLOCKSIZE,
|
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_BLOCKSIZE,
|
||||||
g_param_spec_ulong ("blocksize", "Block size",
|
g_param_spec_ulong ("blocksize", "Block size",
|
||||||
"Size in bytes to read per buffer", 1, G_MAXULONG, DEFAULT_BLOCKSIZE,
|
"Size in bytes to read per buffer", 1, G_MAXULONG, DEFAULT_BLOCKSIZE,
|
||||||
G_PARAM_READWRITE));
|
G_PARAM_READWRITE));
|
||||||
|
@ -399,8 +399,8 @@ gst_basesrc_set_property (GObject * object, guint prop_id, const GValue * value,
|
||||||
src = GST_BASESRC (object);
|
src = GST_BASESRC (object);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case ARG_BLOCKSIZE:
|
case PROP_BLOCKSIZE:
|
||||||
src->blocksize = g_value_get_int (value);
|
src->blocksize = g_value_get_ulong (value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
@ -417,8 +417,8 @@ gst_basesrc_get_property (GObject * object, guint prop_id, GValue * value,
|
||||||
src = GST_BASESRC (object);
|
src = GST_BASESRC (object);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case ARG_BLOCKSIZE:
|
case PROP_BLOCKSIZE:
|
||||||
g_value_set_int (value, src->blocksize);
|
g_value_set_ulong (value, src->blocksize);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
|
|
@ -46,8 +46,8 @@ enum
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
ARG_0,
|
PROP_0,
|
||||||
ARG_BLOCKSIZE,
|
PROP_BLOCKSIZE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static GstElementClass *parent_class = NULL;
|
static GstElementClass *parent_class = NULL;
|
||||||
|
@ -124,7 +124,7 @@ gst_basesrc_class_init (GstBaseSrcClass * klass)
|
||||||
gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_basesrc_set_property);
|
gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_basesrc_set_property);
|
||||||
gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_basesrc_get_property);
|
gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_basesrc_get_property);
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BLOCKSIZE,
|
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_BLOCKSIZE,
|
||||||
g_param_spec_ulong ("blocksize", "Block size",
|
g_param_spec_ulong ("blocksize", "Block size",
|
||||||
"Size in bytes to read per buffer", 1, G_MAXULONG, DEFAULT_BLOCKSIZE,
|
"Size in bytes to read per buffer", 1, G_MAXULONG, DEFAULT_BLOCKSIZE,
|
||||||
G_PARAM_READWRITE));
|
G_PARAM_READWRITE));
|
||||||
|
@ -399,8 +399,8 @@ gst_basesrc_set_property (GObject * object, guint prop_id, const GValue * value,
|
||||||
src = GST_BASESRC (object);
|
src = GST_BASESRC (object);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case ARG_BLOCKSIZE:
|
case PROP_BLOCKSIZE:
|
||||||
src->blocksize = g_value_get_int (value);
|
src->blocksize = g_value_get_ulong (value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
@ -417,8 +417,8 @@ gst_basesrc_get_property (GObject * object, guint prop_id, GValue * value,
|
||||||
src = GST_BASESRC (object);
|
src = GST_BASESRC (object);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case ARG_BLOCKSIZE:
|
case PROP_BLOCKSIZE:
|
||||||
g_value_set_int (value, src->blocksize);
|
g_value_set_ulong (value, src->blocksize);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
|
Loading…
Reference in a new issue