summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-04-06 09:37:21 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-04-06 09:37:21 +0000
commita559801c80c368e4bf0f8615f5d37e3fc3934c8a (patch)
treee0e34c60b9ca65e6283ddbdc5a47d024ac403493 /ext
parent57d1f628c8ccf54da2f2ecf647b4e8d882d183c0 (diff)
downloadgst-plugins-bad-a559801c80c368e4bf0f8615f5d37e3fc3934c8a.tar.gz
gst-plugins-bad-a559801c80c368e4bf0f8615f5d37e3fc3934c8a.tar.bz2
gst-plugins-bad-a559801c80c368e4bf0f8615f5d37e3fc3934c8a.zip
ext/neon/gstneonhttpsrc.c: Add back "uri" property and mark it as deprecated; undoes
Original commit message from CVS: * ext/neon/gstneonhttpsrc.c: (gst_neonhttp_src_class_init), (gst_neonhttp_src_set_property), (gst_neonhttp_src_get_property): Add back "uri" property and mark it as deprecated; undoes API/ABI breakage from 2006-02-24.
Diffstat (limited to 'ext')
-rw-r--r--ext/neon/gstneonhttpsrc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/neon/gstneonhttpsrc.c b/ext/neon/gstneonhttpsrc.c
index c2e5a5ac..9b05d299 100644
--- a/ext/neon/gstneonhttpsrc.c
+++ b/ext/neon/gstneonhttpsrc.c
@@ -46,6 +46,7 @@ enum
{
PROP_0,
PROP_LOCATION,
+ PROP_URI,
PROP_PROXY
};
@@ -128,6 +129,11 @@ gst_neonhttp_src_class_init (GstNeonhttpSrcClass * klass)
"\n\t\t\thttp:///file.txt - default host '" HTTP_DEFAULT_HOST "'",
"", G_PARAM_READWRITE));
+ g_object_class_install_property
+ (G_OBJECT_CLASS (klass), PROP_URI,
+ g_param_spec_string ("uri", "Uri",
+ "The location in form of a URI (deprecated; use location)",
+ "", G_PARAM_READWRITE));
g_object_class_install_property
(G_OBJECT_CLASS (klass), PROP_PROXY,
@@ -201,7 +207,7 @@ gst_neonhttp_src_finalize (GObject * gobject)
}
-int
+static int
request_dispatch (GstNeonhttpSrc * src, GstBuffer * outbuf, gboolean * eos)
{
int ret;
@@ -554,6 +560,7 @@ gst_neonhttp_src_set_property (GObject * object, guint prop_id,
}
break;
+ case PROP_URI:
case PROP_LOCATION:
{
if (!g_value_get_string (value)) {
@@ -602,6 +609,8 @@ gst_neonhttp_src_get_property (GObject * object, guint prop_id,
}
}
break;
+
+ case PROP_URI:
case PROP_LOCATION:
{
char *str;