From 2c2efb06bbad48277de14eeea491621bb0fb7bb8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 26 Dec 2011 18:44:39 +0000 Subject: [PATCH] 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). --- plugins/elements/gstfilesrc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c index 6e207d5..9ed4406 100644 --- a/plugins/elements/gstfilesrc.c +++ b/plugins/elements/gstfilesrc.c @@ -130,8 +130,7 @@ enum enum { PROP_0, - PROP_LOCATION, - PROP_FD + PROP_LOCATION }; 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->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_param_spec_string ("location", "File Location", "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: g_value_set_string (value, src->filename); break; - case PROP_FD: - g_value_set_int (value, src->fd); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; -- 2.7.4