mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
filesrc: remove "fd" property
It's no longer useful, since we don't use mmap any more anyway, and we might use a different API for I/O in future (such as GIO).
This commit is contained in:
parent
95bd31443b
commit
2c2efb06bb
1 changed files with 1 additions and 9 deletions
|
@ -130,8 +130,7 @@ enum
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
PROP_0,
|
PROP_0,
|
||||||
PROP_LOCATION,
|
PROP_LOCATION
|
||||||
PROP_FD
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void gst_file_src_finalize (GObject * object);
|
static void gst_file_src_finalize (GObject * object);
|
||||||
|
@ -173,10 +172,6 @@ gst_file_src_class_init (GstFileSrcClass * klass)
|
||||||
gobject_class->set_property = gst_file_src_set_property;
|
gobject_class->set_property = gst_file_src_set_property;
|
||||||
gobject_class->get_property = gst_file_src_get_property;
|
gobject_class->get_property = gst_file_src_get_property;
|
||||||
|
|
||||||
g_object_class_install_property (gobject_class, PROP_FD,
|
|
||||||
g_param_spec_int ("fd", "File-descriptor",
|
|
||||||
"File-descriptor for the file being mmap()d", 0, G_MAXINT, 0,
|
|
||||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
|
||||||
g_object_class_install_property (gobject_class, PROP_LOCATION,
|
g_object_class_install_property (gobject_class, PROP_LOCATION,
|
||||||
g_param_spec_string ("location", "File Location",
|
g_param_spec_string ("location", "File Location",
|
||||||
"Location of the file to read", NULL,
|
"Location of the file to read", NULL,
|
||||||
|
@ -305,9 +300,6 @@ gst_file_src_get_property (GObject * object, guint prop_id, GValue * value,
|
||||||
case PROP_LOCATION:
|
case PROP_LOCATION:
|
||||||
g_value_set_string (value, src->filename);
|
g_value_set_string (value, src->filename);
|
||||||
break;
|
break;
|
||||||
case PROP_FD:
|
|
||||||
g_value_set_int (value, src->fd);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue