-Subproject commit 2f0e1ecbfe7d27cf1b2215204958c95516db173d
+Subproject commit cd050468e0d9e0d1b9134eb3081e2ab3228f0c01
ARG_LOCATION,
ARG_BYTESPERREAD,
ARG_OFFSET,
+ ARG_FD,
};
"offset", ARG_OFFSET, G_PARAM_READABLE,
NULL);
+ g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FD,
+ g_param_spec_int ("fd", "fd", "An open file descriptor to read from",
+ 0, G_MAXINT, 0, G_PARAM_READWRITE));
+
gobject_class->set_property = gst_fdsrc_set_property;
gobject_class->get_property = gst_fdsrc_get_property;
}
src->fd = fd;
}
break;
+ case ARG_FD:
+ src->fd = g_value_get_int (value);
+ break;
case ARG_BYTESPERREAD:
src->bytes_per_read = g_value_get_int (value);
break;
case ARG_OFFSET:
g_value_set_int64 (value, src->curoffset);
break;
+ case ARG_FD:
+ g_value_set_int (value, src->fd);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
ARG_LOCATION,
ARG_BYTESPERREAD,
ARG_OFFSET,
+ ARG_FD,
};
"offset", ARG_OFFSET, G_PARAM_READABLE,
NULL);
+ g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FD,
+ g_param_spec_int ("fd", "fd", "An open file descriptor to read from",
+ 0, G_MAXINT, 0, G_PARAM_READWRITE));
+
gobject_class->set_property = gst_fdsrc_set_property;
gobject_class->get_property = gst_fdsrc_get_property;
}
src->fd = fd;
}
break;
+ case ARG_FD:
+ src->fd = g_value_get_int (value);
+ break;
case ARG_BYTESPERREAD:
src->bytes_per_read = g_value_get_int (value);
break;
case ARG_OFFSET:
g_value_set_int64 (value, src->curoffset);
break;
+ case ARG_FD:
+ g_value_set_int (value, src->fd);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;